GNOME Bugzilla – Bug 778010
vaapipostproc: doesn't scale according to src caps
Last modified: 2017-02-01 15:13:47 UTC
Test pipeline that doesn't work. gst-launch-1.0 videotestsrc ! video/x-raw,width=1920,height=1080 ! vaapipostproc ! video/x-raw,format=I420,width=800,height=600 ! xvimagesink Test pipeline that works. gst-launch-1.0 videotestsrc ! video/x-raw,width=1920,height=1080 ! vaapipostproc width=800 height=600 ! video/x-raw,format=I420 ! xvimagesink This is because it doesn't set GST_VAAPI_POSTPROC_FLAG_SIZE to postproc's flag in this case. Currently, only if width/height property is set by user, it does set.
Created attachment 344679 [details] [review] vaapipostproc: set GST_VAAPI_POSTPROC_FLAG_SIZE according to src caps A value of width/height property should be set to out caps, if negotiation had been going properly. So we can use srcpad_info when making decision of scaling.
Comment on attachment 344679 [details] [review] vaapipostproc: set GST_VAAPI_POSTPROC_FLAG_SIZE according to src caps lgtm
This also should go in branch 1.10 (sadly the fix came after the release)
commit 7f69f679b12a042d09fe22845cca5a26ae800856 Author: Hyunjun Ko <zzoon@igalia.com> Date: Wed Feb 1 14:32:45 2017 +0900 vaapipostproc: set GST_VAAPI_POSTPROC_FLAG_SIZE according to src caps A value of width/height property should be set to out caps, if negotiation had been going properly. So we can use srcpad_info when making decision of scaling. https://bugzilla.gnome.org/show_bug.cgi?id=778010