GNOME Bugzilla – Bug 752821
h264parse: broken/invalid nal, but avdec_h264 show video correctly
Last modified: 2016-10-18 10:37:14 UTC
Created attachment 308072 [details] test file Please try the following pipeline with tha attached file: gst-launch-1.0 filesrc location=/tmp/test.gdp ! gdpdepay ! avdec_h264 ! xvimagesink you'll see the video as expected, now try this one: gst-launch-1.0 filesrc location=/tmp/test.gdp ! gdpdepay ! h264parse ! avdec_h264 ! xvimagesink h264parse will drop every buffer with this error: h264parse gsth264parse.c:1197:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 6529 will be dropped h264parser seems wrong since avdec can handle the same h264 frames. h264parse is needed for example if you want to mux the frames in a file
this stream contain 28 bytes metadata before each frame, removing this metadata all is fine
Created attachment 337931 [details] Test stream illustrating the problem
I have exactly the same problem when using a h264 stream from a usb camera. See the attached file with the following pipeline: gst-launch-1.0 filesrc location=/tmp/test.gdp ! gdpdepay ! avdec_h264 ! xvimagesink h264parse is dropping every frame except of keyframes. Using the pipline: gst-launch-1.0 filesrc location=/tmp/test.gdp ! gdpdepay ! h264parse ! avdec_h264 ! xvimagesink Shows a smooth video. If the problem is with the metadata in the stream, can this be considered inside h264parse so that h264 cameras such as mine will work with it?