GNOME Bugzilla – Bug 776582
h264parse: keyframes marked as delta unit
Last modified: 2018-11-03 14:02:44 UTC
Created attachment 342575 [details] file that show the issue Please try this pipeline and observe the output gst-launch-1.0 -v filesrc location= test.gdp ! gdpdepay ! fakesink silent=false you can see that all keyframes are correctly marked as such, for example: 42672 bytes, dts: none, pts: 0:00:01.667941354, duration: none, offset: -1, offset_end: -1, flags: 00000000 42667 bytes, dts: none, pts: 0:00:03.267941354, duration: none, offset: -1, offset_end: -1, flags: 00000000 now try to add h264parse: gst-launch-1.0 -v filesrc location= test.gdp ! gdpdepay ! h264parse ! video/x-h264,stream-format=avc,alignment=au ! fakesink silent=false 42672 bytes, dts: 0:00:01.401274664, pts: 0:00:01.667941354, duration: 0:00:00.033333333, offset: 91068, offset_end: -1, flags: 00002000 delta-unit 42667 bytes, dts: 0:00:02.734607984, pts: 0:00:03.267941354, duration: 0:00:00.033333333, offset: 182136, offset_end: -1, flags: 00002000 delta-unit keyframes are now marked as delta-unit!
Created attachment 342611 [details] [review] proposed fix with the test file sps parsing fails and a fallback sps is used but since the parser state is not updated we have the reported issue. I think that if sps parsing fails parser state and header should be updated anyway since an sps is received
probably the same should be done few lines below when pps parsing fails and we use fallback pps but I don't have a file/stream that trigger this error
Created attachment 342618 [details] [review] alternative patch this method works too, we don't store the sps when parsing fails but we do all the other things
no opinions? I'm using the first patch since some weeks with no issues
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/503.