[Libav-user] Decoding a network video stream

Carl Eugen Hoyos ceffmpeg at gmail.com
Wed Aug 14 10:25:30 EEST 2019


Am Di., 13. Aug. 2019 um 20:58 Uhr schrieb Sergiu Giurgiu
<sergiu.giurgiu at motiongestures.com>:

> I am using libav in a C++ application that acts as a web server. It (the
> app) provides a websocket endpoint to which a webm video is being
> streamed by the client, which is a normal browser that accesses the
> client's webcam. If I save the received data into a file, it can be
> successfully played by a media player.
> What I want to do with the data, however, is to extract/decode the video
> into frames, in a std::vector<cv::Mat> which then will be sent for
> further processing by some other library. What I was expecting to happen
> was for the frames that make up the video to be extracted on the fly, as
> I receive the data.

This is not possible for all input file formats as in some cases the
(beginning) of the file is only updated once the encoding has finished.

Carl Eugen


More information about the Libav-user mailing list