• Blank kms screen before starting gstreamer video on kmssink

    From Rainer Dorsch@21:1/5 to All on Sun Nov 10 14:10:01 2024
    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.

    Thanks
    Rainer

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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rainer Dorsch@21:1/5 to All on Sun Nov 10 21:10:01 2024
    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/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)