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 769252 - [MPEG2][Decode] mpeg2 decode error.
[MPEG2][Decode] mpeg2 decode error.
Status: RESOLVED NOTABUG
Product: GStreamer
Classification: Platform
Component: gstreamer-vaapi
git master
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-07-28 01:51 UTC by Fei
Modified: 2016-07-29 06:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fail case (858.00 KB, video/mpeg)
2016-07-28 01:51 UTC, Fei
Details

Description Fei 2016-07-28 01:51:10 UTC
Created attachment 332251 [details]
fail case

1. Testing Steps:
========================================================================
gst-launch-1.0 filesrc location=/media/mpeg2/dvd_still_frame.vob ! mpegvideoparse  ! vaapidecode ! vaapisink sync=false

2. Testing Env:
========================================================================
gst_plugins_vaapi:   (master)024d5401955d4d7b1348ba5f68180719640aa93c
libva:               (master)f7e22630bd18ed80d22da20a9dc18487938b6c8a
Libva_intel_driver:  (master)e5544460dcb4b325df42e343953e6d5b57f8f544

3. Frequency of Occurence:
========================================================================
100%

4. Fail case:
========================================================================
  1)  dvd_still_frame.vob

4. Error log:
========================================================================
root@x-kbl01:~# gst-launch-1.0 filesrc location=/media/mpeg2/dvd_still_frame.vob ! mpegvideoparse  ! vaapidecode ! vaapisink sync=false
libva info: VA-API version 0.39.2
libva info: va_getDriverName() returns 0
libva info: Trying to open /opt/X11R7/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Got context from element 'pipeline0': gst.vaapi.Display=context, gst.vaapi.Display=(GstVaapiDisplay)NULL;
0:00:00.056551375  4548       0xe441e0 ERROR            vaapidecode gstvaapidecode.c:665:gst_vaapidecode_handle_frame: decode error 8
0:00:00.058423710  4548       0xe441e0 ERROR                  vaapi gstvaapidecoder_mpeg2.c:891:parse_picture: failed to parse picture header
0:00:00.058454300  4548       0xe441e0 ERROR            vaapidecode gstvaapidecode.c:665:gst_vaapidecode_handle_frame: decode error 8
ERROR: from element /GstPipeline:pipeline0/GstVaapiDecode:vaapidecode0: No valid frames decoded before end of stream
Additional debug info:
gstvideodecoder.c(1168): gst_video_decoder_sink_event_default (): /GstPipeline:pipeline0/GstVaapiDecode:vaapidecode0:
no valid frames found
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
root@x-kbl01:~#
Comment 1 Víctor Manuel Jáquez Leal 2016-07-28 09:56:36 UTC
the media is in a container, it should be demuxed (mpegsdemux), rather than just parsed (mpegvideoparse): 

gst-launch-1.0 filesrc location=~/patterns/bug769252.vob ! mpegpsdemux ! vaapimpeg2dec ! vaapisink
Comment 2 Fei 2016-07-29 06:24:39 UTC
@Victor, thanks. With your cmd, it plays well.