Skip to content

Add support for P010/P012/P016 formats

Robert Mader requested to merge rmader/weston:p010-support into main

They are the 10/12/16bit equivalents of NV12 and at least P010 is widely supported for a while now, so let's support them.


How to test:

  • have a GPU that supports P010 with VA-API, such as recent AMD generations
  • have a 10bit encoded file, such as "Camp by Sony" from https://kodi.wiki/view/Samples
  • build gst with gstreamer/gstreamer!5275 (merged)
  • enter build env (./gst-env.py in the gstreamer root folder)
  • gst-launch-1.0 filesrc location=~/Videos/Camp_by_Sony.mp4 ! qtdemux ! h265parse ! vah265dec ! vapostproc ! waylandsink fullscreen=1
  • mpv --hwdec=vaapi --vo=dmabuf-wayland ~/Videos/Camp_by_Sony.mp4 --fs works as well (needs mpv from git)

See also

Edited by Robert Mader

Merge request reports

Loading