[Libav-user] How to feed data to libav from ethernet streams with video&audio threads
andrey.krieger.utkin at gmail.com
Thu Aug 15 21:29:58 CEST 2013
2013/8/15 Екатерина <malutik at yandex.ru>:
> I guess how to collect video frame but don't know how to specify correct
> context( AVFormatContext) and
> write data to AVPacket structure (possibly using av_packet_from_data).
> Please suggest how to feed data to libav from ethernet streams to
> get file ***.avi which consists of video and audio threads.
See avformat_new_stream(). Call it for each elementary stream you
have, on the output file context. The rest depends on whether you
transcode data or remux it (i.e. just copy AVPackets you got).
More information about the Libav-user