vaapi encoding with radeon and NV12 color format
ChristophHaag opened this issue · 1 comments
ChristophHaag commented
I believe radeon only really supports NV12 right now. vaapipostproc format=i420
is actually segfaulting gstreamer for me. With vaapipostproc format=nv12
it also segfaults, so that whole vaapipostproc color conversion doesn't seem to work.
What does work is replacing vaapipostproc with videoconvert. Here is a pipeline that works on radeon for me:
gst-launch-1.0 -e ximagesrc display-name=:0 use-damage=0 startx=0 starty=0 endx=1919 endy=1079 ! multiqueue ! video/x-raw,format=BGRx,framerate=60/1 ! videoconvert ! video/x-raw,format=NV12,framerate=60/1 ! multiqueue ! vaapih264enc ! h264parse ! multiqueue ! matroskamux name=muxer pulsesrc device-name=alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor ! audio/x-raw,channels=2 ! multiqueue ! opusenc ! multiqueue ! muxer. muxer. ! progressreport name=Rec_time ! filesink location=output.mkv
This is not really a bug report, just a heads up what you need to change if you want to support vaapi encoding on radeon too.
pontostroy commented
@ChristophHaag yes, i know, but vaapi encoding on gcn 1 is still does not work correctly, low fps and image corruption. but anyway thanks for feedback, i added radeon vaapi support