d3dvideosink: Flurry picture when playing raw video
Image seems flurry when playing BGRA raw video in program, see attachment: the top part is using program and the bottom part is using gst-launch on terminal
Steps to reproduce this issue:
- raw file provided, with 1280x720x1 frame data, bgra-1280-720-1.raw also I have uploaded here: https://www.dropbox.com/s/braugpr6dx1y8uo/bgra-1280-720-1.raw?dl=0
- just build pipeline from command and play
GstElement* pipe = gst_parse_launch("filesrc
location=d:/bgra-1280-720-1.raw blocksize=3686400 !
video/x-raw,width=1280,height=720,format=BGRA,framerate=1/1 ! videoconvert !
imagefreeze ! autovideosink", NULL);
Thats all, to compare, just open a terminal and type the same command:
gst-launch-1.0 -v filesrc location=d:/bgra-1280-720-1.raw blocksize=3686400
! video/x-raw,width=1280,height=720,format=BGRA,framerate=1/1 ! videoconvert
! imagefreeze ! autovideosink
Tested on Windows 10 x64, Gstreamer 1.16 MinGW.
update: decode an PNG file can still reproduce it, is it an common issue #gst-launch-1.0 -v filesrc location=d:/bgra.png ! decodebin ! videoconvert ! imagefreeze ! autovideosink