Hi,
I need to make the window size of my gstreamer video smaller than full screen.
I need to view two cameras on the same HDMI screen (1920x1080). (for the left camera and the right camera)
my original video resolution is 720x480.
how may I change the width and the height of the window?
I am using apalis-imx8, ixora carrier board, with OS multimedia image. BSP5.
this command is working fine but with full screen window:
gst-launch-1.0 rtspsrc location=rtsp://172.22.0.195:554/h264 latency=150 ! decodebin ! autovideosink
I have used this command:
gst-launch-1.0 rtspsrc location=rtsp://172.22.0.195:554/h264 latency=150 ! decodebin ! videoscale ! video/x-raw,width=720,height=480 ! autovideosink
but it showed me window like this:
Solved! Go to Solution.
Hi Rama
for gstreamer resize one can look at sect.7.3.17 Video conversion i.MX Linux User’s Guide
Best regards
igor
Hi Rama
for gstreamer resize one can look at sect.7.3.17 Video conversion i.MX Linux User’s Guide
Best regards
igor
hi @igorpadykov ,
it worked.
gst-launch-1.0 rtspsrc location=rtsp://172.22.0.195:554/h264 latency=150 ! decodebin ! imxvideoconvert_g2d ! video/x-raw, width=500, height=500 ! ximagesink
also I made it also for two videos composition.
gst-launch-1.0 imxcompositor_g2d name=comp \
sink_0::xpos=0 sink_0::ypos=0 sink_0::width=700 sink_0::height=500 \
sink_1::xpos=800 sink_1::ypos=0 sink_1::width=700 sink_1::height=500 ! \
video/x-raw,format=RGB16 ! waylandsink \
rtspsrc location=rtsp://172.22.0.195:554/h264 latency=150 ! decodebin ! imxvideoconvert_g2d ! video/x-raw,width=640,height=480 ! comp.sink_0 \
rtspsrc location=rtsp://172.22.0.195:554/h264 latency=150 ! decodebin ! imxvideoconvert_g2d ! video/x-raw,width=640,height=480 ! comp.sink_1