2

I wrote an android app that sends a live video stream from the camera over a socket to my computer. Is it possible to use FFmpeg to decode the MPEG4 video stream and some how display what the camera is seeing in real time? I'm guessing I would have to create a bitmap from the latest information it had from the byte stream and display it on the computer at 20+ FPS.

How would I go about doing something like this? C++, C# or Java is fine. From my understanding FFmpeg is written in C++

4

1 回答 1

1

首先,您是想自己创建一个视频播放器,还是只想看您的视频流?因为当您已经拥有视频流时,几乎所有现代视频播放器都可以播放流媒体。尝试使用VLC(使用 FFmpeg)。在 VLC 中,只需单击“媒体”->“打开网络流...”并填写您的 URL。

其次,FFmpeg 是用 C (C99) 编写的。FFmpeg 本身只是一个转换媒体的工具。当您想创建自己的程序时,可以使用 FFmpeg 库(libavcodec、libavformat 等)。

于 2013-03-14T15:49:29.040 回答