GNOME Bugzilla – Bug 786879
msdkh264dec corrupted very bad for video contains multiple SPS and multiple PPS
Last modified: 2018-11-03 14:12:40 UTC
We got 3 h264 video clips (each around 1.5GB) contain multiple SPS and multiple PPS plays with msdk plugin will cause video corrupted very bad. I chatted in GStreamer IRC before that original source of video highly coming from live stream video and the video tools transcode didn't handle well in mp4 file container. The customer directly downloads from web site done transcode to mp4 file container. They didn't provide us the link only video. Currently, we got the fix for this issue, but we are not sure the code fixed will lead to others issue or not. Can you guys provide a guide on how to make it become solid code fixed and maintain in gst-plugin-bad? Environment: Gstreamer framework 1.12.2 version command: gst-launch-1.0 filesrc location=/home/test/Video/NEXT.mp4 ! qtdemux ! h264parse ! msdkh264dec ! videoconvert ! autovideosink gst-play-1.0 /home/test/Video/NEXT.mp4 (with msdkh264dec with most higher ranking). Next_short.mp4 Video clip (make the video short to around 33.5MB): https://drive.google.com/drive/folders/0B_VpqpF5WpBdQ3g2NFhnZTRBLWM?usp=sharing
Created attachment 358558 [details] [review] H264parse only send 1 sps and 1 pps.
Sorry for the long delay. From the first look, the patch doesn't make sense to me. Both gst-vaapi and software decoder is working fine with the video sample too. (convert to byte-stream format with capsfitler so that you can mimic the same behavior as msdk pipeline) Does the stream contain multiple sps/pps or h264 inserting new one which is not in the stream? If the stream has multiple sps/pps and gst-msdk fails to decode it, you should file a bug against MediaSDK IMHO.
-- 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/603.