[Libav-user] Encoding Frames to stream

Norman Wiersch nwiersch at pironet-ndh.com
Wed Jan 18 18:20:38 EET 2017


Hello,

I'm trying to extend the AForge.NET Library (AForge.Video.FFMPEG) with a method which takes frames as input,
puts them togehter to a video stream and writes the video data into a MemoryStream. There is a class
(VideoFileWriter) wich almost does the same, the only difference is, that the data is written to a file.
This is done by calling avio_open, writing frames via av_interleaved_write_frame and closing everything when finished.

The Question now is: is there something similiar like avio_open, which writes encoded data into a buffer
instead of a file? I tried it by using avio_open_dyn_buf and closing via avio_close_dyn_buf right after writing
a frame and reopining, but this does not work (as already described in https://trac.ffmpeg.org/ticket/520).


Kind regards,
Norman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20170118/76327100/attachment.html>


More information about the Libav-user mailing list