Re: [Libav-user] How to feed data to libav from ethernet streams with videoaudio threads

2013-08-16 Thread Екатерина
Hello, Andrey , Thanks for your reply See avformat_new_stream(). Call it for each elementary stream you have, on the output file context. I’ve already tried to do that with video thread only. But I receive an error while calling av_write_frame… av_write_frame (Unhandled exception at 0x76ff15de in

Re: [Libav-user] How to feed data to libav from ethernet streams with videoaudio threads

2013-08-16 Thread Andrey Utkin
2013/8/16 Екатерина malu...@yandex.ru: Where is a mistake? No guesses which mistake is fatal here (although you have spare avio_open() as i see). You have to use debugger to see what instruction produces failure. Or try forming minimal isolated code snippet (and media file) which reproduces your

[Libav-user] How to feed data to libav from ethernet streams with videoaudio threads

2013-08-15 Thread Екатерина
Hello,I'm working in Visual studio 2010I have two ethernet streams with H.264 payload and G.711 payload. I want to write payloads to file with avi extension using libav.I can put data from the payload to the file **0.h264 and then using libavfunction (avformat_open_input,

Re: [Libav-user] How to feed data to libav from ethernet streams with videoaudio threads

2013-08-15 Thread Andrey Utkin
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