GNOME Bugzilla – Bug 755205
mp4mux generate bad file for raw video
Last modified: 2016-05-22 19:37:33 UTC
Created attachment 311608 [details] raw h264 stream I have raw stream and I wat to pack into MP4 (or FLV) containter. Failed: ====== gst-launch-1.0 -v filesrc location=stream.h264 ! queue ! video/x-h264,width=640,height=480,framerate=67/12 ! h264parse ! mp4mux ! filesink location=stream.mp4 gst-launch-1.0 -v filesrc location=stream.h264 ! queue ! video/x-h264,width=640,height=480,framerate=67/12 ! h264parse ! flvmux ! filesink location=stream.flv Success: ======= gst-launch-1.0 -v filesrc location=stream.h264 ! queue ! video/x-h264,width=640,height=480,framerate=67/12 ! h264parse ! avimux ! filesink location=stream.avi gst-launch-1.0 -v filesrc location=stream.h264 ! queue ! video/x-h264,width=640,height=480,framerate=67/12 ! h264parse ! avmux_mp4 ! filesink location=stream.mp4
Thanks for the bug report, I'm a bit confused though. The stream you have attached is not a 'raw h264 stream', it is an FLV file (gst-typefind-1.0 stream.h264 => video/x-flv). Your pipeline fails for me with "ERROR: from element ... h264parse0: No valid frames found before end of stream", which is entirely expected in this case, and happens with any muxer for me. What GStreamer version are you using?
Closing this bug report as no further information has been provided. Please feel free to reopen this bug report if you can provide the information that was asked for in a previous comment. Thanks!