2013/8/15 Екатерина <malu...@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). -- Andrey Utkin _______________________________________________ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user