can i change image view size ?

Hello.
I am porting the camera to TX2. YUV fmt Capture the image and output it to the screen using mplayer. The green pattern is output on the left part of the screen. The image x-size of the camera is 1824. If I output the command with x-size of 1824, the screen will be broken. However, if I set the x-size to 1920, I could see that the output was well. But I want x-size to be 1824 (or 1920, and I want to get rid of the green pattern). What should I do?

https://drive.google.com/open?id=13f6ZVnt0u0w6QEs4NG8lh2NkDdD7jhOH

capture cmd

v4l2-ctl --set-fmt-video=width=1824,height=940,pixelformat=yvyu --stream-mmap --stream-count=1 -d /dev/video0 --stream-to=ov491.raw

view cmd

mplayer ov491.raw -demuxer rawvideo -rawvideo w=1824:h=940:fps=30:format=uyvy

-> broken image
or

mplayer ov491.raw -demuxer rawvideo -rawvideo w=1920:h=940:fps=30:format=uyvy

-> goon but image left green patten

hello withmarine,

shown green patten is expected since your source resolution smaller than preview resolution.
looks like you dump the raw files and viewing that by 3rdparty application, could you please try below command to access camera sensor and preview the frame directly.

please note that below sample launch 1280x720 sensor mode, and scale the preview image to 640x480.
please modify the parameter to meet your requirement,

gst-launch-1.0 -v v4l2src device=/dev/video1 ! 'video/x-raw,framerate=30/1,width=1280,height=720' ! nvvidconv ! 'video/x-raw(memory:NVMM), width=640,height=480,format=(string)NV12' ! nvoverlaysink

JerryChang Thank you for your reply.
my format is not ‘NV12’ my sensor format is ‘YUYV’ but when i cheange format YUYV. it’s not work.

is not good?

gst-launch-1.0 -v v4l2src device=/dev/video0 ! 'video/x-raw,framerate=30/1,width=1824,height=940,format=(string)UYVY' ! nvvidconv ! 'video/x-raw(memory:NVMM), width=1824,height=940,format=(string)NV12' ! nvoverlaysink

hello withmarine,

please share your corrupt messages and also try to change the options to narrow down the issues.
for example, are you able to access the camera sensor by removing nvvidconv?
thanks

OK Thank you. jerrychang