antimof / UxPlay

AirPlay Unix mirroring server
GNU General Public License v3.0
1.27k stars 177 forks source link

VAAPI decoding fails on Ubuntu Jammy #121

Closed jnnks closed 1 year ago

jnnks commented 1 year ago

Screen casting failed with the following error:

...
0:00:08.790436531 574922 0x7fef1c080240 ERROR       vaapivideomemory gstvaapivideomemory.c:254:map_vaapi_memory: failed to make image current
0:00:08.790463008 574922 0x7fef1c080240 ERROR                default video-frame.c:168:gst_video_frame_map_id: failed to map video frame plane 0
0:00:08.790471282 574922 0x7fef1c080240 WARN             xvimagesink xvimagesink.c:1038:gst_xv_image_sink_show_frame:<video_sink-actual-sink-xvimage> could not map image
...
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  20 (X_GetProperty)
  Resource id in failed request:  0x4600002
  Serial number of failed request:  2314
  Current serial number in output stream:  2314

Related: https://github.com/antimof/UxPlay/issues/49

jnnks commented 1 year ago

This is an error with VAAPI on Ubunti 22.04 as reported here: https://bugs.launchpad.net/ubuntu/+source/gstreamer-vaapi/+bug/1971463

Solution as suggested in the Ubuntu bugtracker is to apt remove gstreamer1.0-vaapi. UxPlay works after uninstalling the vaapi package.

Great software, let me know if I can help testing.