After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 752821 - h264parse: broken/invalid nal, but avdec_h264 show video correctly
h264parse: broken/invalid nal, but avdec_h264 show video correctly
Status: RESOLVED INVALID
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal major
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-07-24 11:09 UTC by Nicola
Modified: 2016-10-18 10:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
test file (1.36 MB, application/octet-stream)
2015-07-24 11:09 UTC, Nicola
Details
Test stream illustrating the problem (1.52 MB, application/octet-stream)
2016-10-18 10:35 UTC, bj
Details

Description Nicola 2015-07-24 11:09:45 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
Comment 1 Nicola 2015-07-24 12:09:53 UTC
this stream contain 28 bytes metadata before each frame, removing this metadata all is fine
Comment 2 bj 2016-10-18 10:35:24 UTC
Created attachment 337931 [details]
Test stream illustrating the problem
Comment 3 bj 2016-10-18 10:37:14 UTC
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?