<div><pre>Hello,<br /><br />I'm working in Visual studio 2010<br /><br />I have two ethernet streams with H.264 payload and G.711 payload.
<br />I want to write payloads to file with avi extension using libav.<br /><br />I can put data from the payload to the file **0.h264 and then using libav<br />function (avformat_open_input, avformat_find_stream_info...)write frames to file **0.avi. <br />I can also do the same thing with g711 and write in **1.avi<br /><br />I can get: Bandwidth information: AS:768 Media Attribute: rtpmap: 117 H264/90000... from Session Description Protocol.<br /><br />I  guess how to collect video frame but don't know how to specify correct context( AVFormatContext) and <br />write data to AVPacket structure (possibly using av_packet_from_data).<br />
Please suggest how to feed data to libav from ethernet streams to
get file ***.avi which consists of video and audio threads.</pre></div><div>š</div><div>-- <br />Thanks in advance, Ekaterina</div>