Am Sonntag, 10. November 2024, 13:36:21 CET schrieb Rainer Dorsch:
> Hello,
> 
> I run a gstreamer pipeline like
> 
> gst-launch-1.0 filesrc location=$filename ! matroskademux name=d ! queue !
> h264parse ! v4l2h264dec ! kmssink d. ! queue ! opusdec ! audioconvert !
> audioresample ! autoaudiosink
> 
> which uses the hardware decoder on the NXP i.MX6 SoC.
> 
> The problem I have is that for videos which do not match the aspect ratio of
> the screen (e.g. 1280x720 video on 1280x1080 screen) there is still console
> text visible on the portion of the screen which is not overlayed with the
> gstreamer video output.
> 
> Does anybody know how I can blank the kms screen in shell script, before the
> script starts gstreamer?
> 
> Any hint or idea is welcome.
> 

Just for reference, I found a solution, the videoscale plugin solves the 
problem:

matroskademux name=d ! queue ! h264parse ! v4l2h264dec ! videoscale ! video/x-
raw,width=1280,height=1024,pixel-aspect-ratio=1/1

Thanks
Rainer


-- 
Rainer Dorsch
http://bokomoko.de/


Reply via email to