Shotwell crashes on start with gstreamer0.10-vaapi

Bug #946742 reported by BlueCase
36
This bug affects 7 people
Affects Status Importance Assigned to Milestone
intel-vaapi-driver (Ubuntu)
Expired
Undecided
Unassigned
shotwell (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Hello,
i tried today to shotwell 0.11.92 with 12.04.
When gstreamer0.10-vaapi is installed shotwell crashes on every start.
After removing gstreamer vaapi package or no video is in the shotwell library available all working

Shotwell command line:
libva: VA-API version 0.32.0
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/dri/i965_drv_video.so
libva: va_openDriver() returns 0
segmentation fault (core dumped)

Vainfo:
libva: VA-API version 0.32.0
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/dri/i965_drv_video.so
libva: va_openDriver() returns 0
vainfo: VA-API version: 0.32 (libva 1.0.15)
vainfo: Driver version: Intel i965 driver - 1.0.15
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple : VAEntrypointVLD
      VAProfileMPEG2Main : VAEntrypointVLD
      VAProfileH264Baseline : VAEntrypointVLD
      VAProfileH264Main : VAEntrypointVLD
      VAProfileH264High : VAEntrypointVLD

cheers,
BlueCase

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: shotwell 0.11.92-0ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-17.27-generic 3.2.6
Uname: Linux 3.2.0-17-generic x86_64
ApportVersion: 1.94-0ubuntu1
Architecture: amd64
Date: Mon Mar 5 01:04:46 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120303)
ProcEnviron:
 TERM=xterm
 PATH=(custom, user)
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: shotwell
UpgradeStatus: Upgraded to precise on 2012-03-04 (0 days ago)

Revision history for this message
BlueCase (bluecase) wrote :
Changed in gstreamer-vaapi (Ubuntu):
assignee: nobody → Timo Aaltonen (tjaalton)
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Yeah, looks like a bug in intel-vaapi-driver.

Changed in shotwell (Ubuntu):
status: New → Invalid
affects: gstreamer-vaapi (Ubuntu) → intel-vaapi-driver (Ubuntu)
Changed in intel-vaapi-driver (Ubuntu):
status: New → Confirmed
Revision history for this message
BlueCase (bluecase) wrote :

Similar problem with Nautilus.
If you try to look at the properties of a Video File, nautilus crashes.

Nautilus Command Line output:
libva: VA-API version 0.32.0
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/dri/i965_drv_video.so
libva: va_openDriver() returns 0
nautilus: i965_avc_bsd.c:337: i965_avc_bsd_slice_state: Assertion `frame_idx < (sizeof(i965_h264_context->fsid_list) / sizeof((i965_h264_context->fsid_list)[0]))' failed.

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

the bug is fixed in intel-vaapi-driver git master, need to figure out which commit since 0.15 fixed it...

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package intel-vaapi-driver - 1.0.15-1ubuntu1

---------------
intel-vaapi-driver (1.0.15-1ubuntu1) precise; urgency=low

  * Add factor-out-typedefs.patch and fix-ref-idx-state.patch from upstream
    master, thanks Robert Hooker! (LP: #946742)
 -- Timo Aaltonen <email address hidden> Mon, 05 Mar 2012 13:53:27 +0200

Changed in intel-vaapi-driver (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
BlueCase (bluecase) wrote :

Thanks but it seems that this Bug is still valid. I updated my system (libva-intel-vaapi-driver 1.0.15-1ubuntu1) but shotwell still crash and nautilus shows no video information in the file properties (only audio information).

Revision history for this message
Roger (r-wiberg) wrote :

Yup, still valid. I've never even had intel-vaapi-driver installed since I'm using an Nvidia card with VDPAU. But VA-API is supposed to work with VDPAU as a backend using the vdpau-va-driver. And it does "sort of" work when using VLC and libav (still relatively high CPU usage), so I decided to try it with gstreamer codecs as well. But the I ran into this bug.

It appears the presence of gstreamer-vaapi is enough to trigger the bug.

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

ok then, reopening.

I can't reproduce it anymore though, so further ideas welcome.

Changed in intel-vaapi-driver (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
BlueCase (bluecase) wrote :
Download full text (9.3 KiB)

Hi,
perhaps this helps.
I tried to play directly with gstreamer (gst-launch-0.10 -v playbin ) a video.
Result, with vaapi only audio but no video output.

Here command line output:

Leitung wird auf PAUSIERT gesetzt ...
/GstPlayBin:playbin0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:src: caps = video/quicktime, variant=(string)iso
Leitung läuft vor …
/GstPlayBin:playbin0/GstDecodeBin:decodebin0/GstQTDemux:qtdemux0.GstPad:sink: caps = video/quicktime, variant=(string)iso
/GstPlayBin:playbin0/GstDecodeBin:decodebin0/GstQueue:queue0.GstPad:sink: caps = audio/mpeg, mpegversion=(int)4, framed=(boolean)true, stream-format=(string)raw, level=(string)2, base-profile=(string)lc, profile=(string)lc, codec_data=(buffer)1210, rate=(int)44100, channels=(int)2
/GstPlayBin:playbin0/GstDecodeBin:decodebin0/GstQueue:queue1.GstPad:sink: caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)3.1, profile=(string)high, codec_data=(buffer)0164001ffde1001a6764001fac248805005bb011000003000100000300308f1832a001000568ee32c8b0, width=(int)1280, height=(int)720, framerate=(fraction)24/1, pixel-aspect-ratio=(fraction)1/1
/GstPlayBin:playbin0/GstDecodeBin:decodebin0/GstQueue:queue1.GstPad:sink: caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)3.1, profile=(string)high, codec_data=(buffer)0164001ffde1001a6764001fac248805005bb011000003000100000300308f1832a001000568ee32c8b0, width=(int)1280, height=(int)720, framerate=(fraction)24/1, pixel-aspect-ratio=(fraction)1/1
/GstPlayBin:playbin0/GstDecodeBin:decodebin0/GstQueue:queue1.GstPad:src: caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)3.1, profile=(string)high, codec_data=(buffer)0164001ffde1001a6764001fac248805005bb011000003000100000300308f1832a001000568ee32c8b0, width=(int)1280, height=(int)720, framerate=(fraction)24/1, pixel-aspect-ratio=(fraction)1/1
/GstPlayBin:playbin0/GstDecodeBin:decodebin0/GstH264Parse:h264parse0.GstPad:sink: caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)3.1, profile=(string)high, codec_data=(buffer)0164001ffde1001a6764001fac248805005bb011000003000100000300308f1832a001000568ee32c8b0, width=(int)1280, height=(int)720, framerate=(fraction)24/1, pixel-aspect-ratio=(fraction)1/1
/GstPlayBin:playbin0/GstDecodeBin:decodebin0/GstAacParse:aacparse0.GstPad:sink: caps = audio/mpeg, mpegversion=(int)4, framed=(boolean)true, stream-format=(string)raw, level=(string)2, base-profile=(string)lc, profile=(string)lc, codec_data=(buffer)1210, rate=(int)44100, channels=(int)2
/GstPlayBin:playbin0/GstDecodeBin:decodebin0/GstFaad:faad0.GstPad:sink: caps = audio/mpeg, mpegversion=(int)4, framed=(boolean)true, stream-format=(string)raw, level=(string)2, base-profile=(string)lc, profile=(string)lc, codec_data=(buffer)1210, rate=(int)44100, channels=(int)2
/GstPlayBin:playbin0/GstDecodeBin:decodebin0.GstGhostPad:src0: caps = audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)16, depth=(int)16, rate=(int)44100, channels=(int)2
/GstPlayBin:playbin0/GstDecodeBin:decodebin0/GstFaad:faad0.GstPad:src: caps = audio/x-raw-int, endianness=(int)1234, signed=(...

Read more...

Revision history for this message
BlueCase (bluecase) wrote :

The problem seems to be following:
Missing Element: video/x-surface-Decoder

Revision history for this message
noname2 (noname2-deactivatedaccount) wrote :
Download full text (4.8 KiB)

well it gets better. h.264 avc still does not work but mpeg4 part2 does. although it takes 5 times more cpu cycles to play the video compared to normal rendering.

julius@r850:~$ gst-launch-0.10 -vv filesrc location='/media/1.5TB/Filme/Blood.Diamond.German.2006.AC3.5.1.HD2DVDRip.XviD-Ms89.avi' ! decodebin ! x264enc ! vaapidecode ! vaapisink
Setting pipeline to PAUSED ...
libva: VA-API version 0.32.0
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva: va_openDriver() returns 0
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:src: caps = video/x-msvideo
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstAviDemux:avidemux0.GstPad:sink: caps = video/x-msvideo
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstQueue:queue0.GstPad:sink: caps = video/x-xvid, framerate=(fraction)25/1, width=(int)720, height=(int)304
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstQueue:queue0.GstPad:src: caps = video/x-xvid, framerate=(fraction)25/1, width=(int)720, height=(int)304
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstQueue:queue0.GstPad:src: caps = video/x-xvid, framerate=(fraction)25/1, width=(int)720, height=(int)304
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstQueue:queue0.GstPad:src: caps = video/x-xvid, framerate=(fraction)25/1, width=(int)720, height=(int)304
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/ffdec_mpeg4:ffdec_mpeg40.GstPad:sink: caps = video/x-xvid, framerate=(fraction)25/1, width=(int)720, height=(int)304
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstAc3Parse:ac3parse0.GstPad:src: caps = audio/x-ac3, framed=(boolean)true, rate=(int)48000, channels=(int)6, alignment=(string)frame
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstA52Dec:a52dec0.GstPad:sink: caps = audio/x-ac3, framed=(boolean)true, rate=(int)48000, channels=(int)6, alignment=(string)frame
/GstPipeline:pipeline0/GstDecodeBin:decodebin0.GstGhostPad:src1: caps = audio/x-raw-float, endianness=(int)1234, width=(int)32, channels=(int)6, rate=(int)48000, channel-positions=(GstAudioChannelPosition)< GST_AUDIO_CHANNEL_POSITION_LFE, GST_AUDIO_CHANNEL_POSITION_FRONT_LEFT, GST_AUDIO_CHANNEL_POSITION_FRONT_CENTER, GST_AUDIO_CHANNEL_POSITION_FRONT_RIGHT, GST_AUDIO_CHANNEL_POSITION_REAR_LEFT, GST_AUDIO_CHANNEL_POSITION_REAR_RIGHT >
/GstPipeline:pipeline0/GstDecodeBin:decodebin0.GstGhostPad:src1: caps = audio/x-raw-float, endianness=(int)1234, width=(int)32, channels=(int)6, rate=(int)48000, channel-positions=(GstAudioChannelPosition)< GST_AUDIO_CHANNEL_POSITION_LFE, GST_AUDIO_CHANNEL_POSITION_FRONT_LEFT, GST_AUDIO_CHANNEL_POSITION_FRONT_CENTER, GST_AUDIO_CHANNEL_POSITION_FRONT_RIGHT, GST_AUDIO_CHANNEL_POSITION_REAR_LEFT, GST_AUDIO_CHANNEL_POSITION_REAR_RIGHT >
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstA52Dec:a52dec0.GstPad:src: caps = audio/x-raw-float, endianness=(int)1234, width=(int)32, channels=(int)6, rate=(int)48000, channel-positions=(GstAudioChannelPosition)< GST_AUDIO_CHANNEL_POSITION_LFE, GST_AUDIO_CHANNEL_POSITION_FRONT_LEFT, GST_AUDIO_CHANNEL_POSITION_FRONT_CENTER, GST_AUDIO_CHANNEL_POSITION_FRONT_RIGHT, GST_AUDIO_CHANNEL_POSITION_RE...

Read more...

Revision history for this message
Eric Miao (eric.y.miao) wrote :

I think playbin would not properly handle the VA elements. I tried, although on an AMD APU platform, with xvba-va-driver, and was able to play a mkv file with success. The command I used is as below:

  gst-launch-0.10 -v filesrc location=~/test.mkv ! matroskademux ! vaapidecode ! vaapisink

Revision history for this message
noname2 (noname2-deactivatedaccount) wrote :

nice gst-launch-0.10 -v filesrc location=~/test.mkv ! matroskademux ! vaapidecode ! vaapisink works for mkv on sandy bridge too.
but not everything is matroska

what shall i put in gstreamer-properties dialog to play all files with vaaapi?

Revision history for this message
Niccolò Belli (darkbasic) wrote :

It doesn't work with gm45 and gst-plugins-vaapi...

niko@laptop ~ $ gst-launch-0.10 -v filesrc location=test.mkv ! matroskademux ! vaapidecode ! vaapisinkImpostazione della pipeline a PAUSED ...
libva: libva version 0.32.0
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib64/va/drivers/i965_drv_video.so
libva: va_openDriver() returns 0
La pipeline è in PREROLLING ...
/GstPipeline:pipeline0/GstVaapiDecode:vaapidecode0.GstPad:src: caps = video/x-surface, width=(int)1920, height=(int)1080, framerate=(fraction)5000000/208333, pixel-aspect-ratio=(fraction)1/1, type=(string)vaapi, opengl=(boolean)true
/GstPipeline:pipeline0/GstVaapiDecode:vaapidecode0.GstPad:sink: caps = video/x-h264, level=(string)4.1, profile=(string)high, codec_data=(buffer)01640029ffe1001867640029acd940780227e584000cb73402625a023c60c65801008668e93b3ce5531cc305d2628d13080214868783a1c0d04e12142c0ac0da02fe10042ad35e9e850b748c778a1410088b172105449ca3050e204448b20a4d8a081827090809848541dc4290a43164215a201900cae8340f81e86f03300b6017002ac05981d61a07802a8400a902087404700bc010506e036404b811805902e07203e0087ff858f0, stream-format=(string)avc, alignment=(string)au, width=(int)1920, height=(int)1080, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)5000000/208333
gst-launch-0.10: i965_avc_bsd.c:337: i965_avc_bsd_slice_state: Assertion `frame_idx < (sizeof(i965_h264_context->fsid_list) / sizeof((i965_h264_context->fsid_list)[0]))' failed.
Annullato

It works flawlessly with mplayer -vo vaapi -va vaapi test.mkv

Beware that I'm using *Gentoo amd64*, not Ubuntu.

Changed in intel-vaapi-driver (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
madbiologist (me-again) wrote :

gstreamer-vaapi 0.5.3 adds support for GStreamer 1.0.x. Additionally, gstreamer-vaapi 0.5.3 brings a vaapidecode fix and fallback for software decoding if no hardware decoder is present.

Timo Aaltonen (tjaalton)
Changed in intel-vaapi-driver (Ubuntu):
assignee: Timo Aaltonen (tjaalton) → nobody
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for intel-vaapi-driver (Ubuntu) because there has been no activity for 60 days.]

Changed in intel-vaapi-driver (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.