GNOME Bugzilla – Bug 769252
[MPEG2][Decode] mpeg2 decode error.
Last modified: 2016-07-29 06:24:39 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:~#
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
@Victor, thanks. With your cmd, it plays well.