[Libav-user] [ERROR} Invalid argument returned on av_write_frame while muxing

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[Libav-user] [ERROR} Invalid argument returned on av_write_frame while muxing

Ameya Tambekar

I am custom muxing video (h.264)  and epoch timestamp (data stream) together using libav. The video and timestamp data is read from a camera and stored on to a <name>.ts file. So far this is working when done in a single instance of my custom TS muxer but it fails when I start recording two or more cameras in separate instances.

av_write_frame/av_write_interleaved_frame fails when I try and mux the first frame received from second camera giving error “Invalid argument”.

I tried flagging AVOutputFormat with following but in vein,

ofmt = tsFmtCtx->oformat;
ofmt->flags = ofmt->flags | AVFMT_NOTIMESTAMPS;
ofmt->flags = ofmt->flags | AVFMT_TS_NONSTRICT;  

Please help.

Libav-user mailing list
[hidden email]