You are not logged in.

#1 2020-10-16 15:09:34

icar
Member
From: Catalunya
Registered: 2020-07-31
Posts: 451

gstreamer-vaapi hard crashes the computer

It's an 3700U. I installed gstreamer-vaapi and all the packages in https://wiki.archlinux.org/index.php/GS … stallation
Also, I'm using Wayland with Gnome (so, Mutter). When I try to play some video content with GStreamer (for example, Totem or Epiphany) it plays for a couple of seconds, then lags hard and my screen goes black. The only way to recover it is forcibly rebooting the computer or letting the battery drain out.

I've been investigating a bit and I found https://www.reddit.com/r/gnome/comments … and_totem/ with a Gnome Developer answering. So I contacted him via private message explaining my situation. He ended up telling me that
"those particular changes landed over a year ago so they should be in WebKitGTK 2.26 for sure". My WebKitGTK version is 2.30.1-1 so this shouldn't be a problem. Something's wrong here.

The output of
$ gst-inspect-1.0 vaapi

Plugin Details:
  Name                     vaapi
  Description              VA-API based elements
  Filename                 /usr/lib/gstreamer-1.0/libgstvaapi.so
  Version                  1.18.0
  License                  LGPL
  Source module            gstreamer-vaapi
  Source release date      2020-09-08
  Binary package           gstreamer-vaapi
  Origin URL               https://www.archlinux.org/

  vaapih265enc: VA-API H265 encoder
  vaapih264enc: VA-API H264 encoder
  vaapisink: VA-API sink
  vaapidecodebin: VA-API Decode Bin
  vaapipostproc: VA-API video postprocessing
  vaapih265dec: VA-API H265 decoder
  vaapivp9dec: VA-API VP9 decoder
  vaapivc1dec: VA-API VC1 decoder
  vaapih264dec: VA-API H264 decoder
  vaapimpeg2dec: VA-API MPEG2 decoder
  vaapijpegdec: VA-API JPEG decoder

  11 features:
  +-- 11 elements

I don't know which log to look for for these kind of crashes.

Do any of you have any ideas?

Offline

#2 2020-10-16 15:23:50

progandy
Member
Registered: 2012-05-17
Posts: 5,193

Re: gstreamer-vaapi hard crashes the computer

Does it crash if you use gstreamer directly?

gst-launch-1.0 -v filesrc location=/path/to/video.mp4 ! qtdemux name=demux  demux.audio_0 ! queue ! decodebin ! audioconvert ! audioresample ! autoaudiosink  demux.video_0 ! queue ! vaapidecodebin ! vaapisink

Last edited by progandy (2020-10-16 15:29:26)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#3 2020-10-16 17:19:19

icar
Member
From: Catalunya
Registered: 2020-07-31
Posts: 451

Re: gstreamer-vaapi hard crashes the computer

progandy wrote:

Does it crash if you use gstreamer directly?

gst-launch-1.0 -v filesrc location=/path/to/video.mp4 ! qtdemux name=demux  demux.audio_0 ! queue ! decodebin ! audioconvert ! audioresample ! autoaudiosink  demux.video_0 ! queue ! vaapidecodebin ! vaapisink

It crashes but at least it doesn't crash the whole system, only the window. Here is the output. It ends with the window created with -apparently- the first frame hanging and a dialog box appears noticing that it is not responding - and click Force quit.

Offline

Board footer

Powered by FluxBB