Resizing Issue with nvvidconv in Video Cropping Pipeline

Hi all,

I’m attempting to use nvvidconv to crop and save a video. While cropping works, the video is resized back to its original dimensions afterward, resulting in the saved video being elongated horizontally to 4608 x 2592. Could you kindly assist me with this issue?

I also tried the pipeline suggested below, but it didn’t work.

Here’s my pipeline:

"nvarguscamerasrc sensor-id=0 ! video/x-raw(memory:NVMM), width=(int)4608, height=(int)2592,format=(string)NV12, framerate=(fraction)14/1 ! tee name=t t. ! queue ! nvvidconv top = 0 bottom = 2592 left = 0 right = 4000 ! video/x-raw(memory:NVMM), width = 4000, height = 2592! nvv4l2h265enc ! h265parse ! matroskamux ! filesink location=test.mkv t. ! queue ! nvvidconv ! video/x-raw, format=(string)I420, width=640, height=480 ! appsink sync=0 ";

Hi,
The command should work:

$ gst-launch-1.0 nvarguscamerasrc sensor-id=0 ! 'video/x-raw(memory:NVMM), width=(int)4608, height=(int)2592,format=(string)NV12, framerate=(fraction)14/1' ! tee name=t t. ! queue ! nvvidconv top=0 bottom=2592 left=0 right=4000 ! 'video/x-raw(memory:NVMM), width=4000, height=2592' ! nvv4l2h265enc ! h265parse ! matroskamux ! filesink location=test.mkv

Please give it a try.

Hi DaneLLL,

The command still doesn’t work. In the window properties, it’s indicated that it’s saved as 4000x2592 size, but when I actually open the video to check, it’s still saved as 4608x2592.

Hi,
We run the command and the video file is saved as 4000x2592:

$ gst-launch-1.0 videotestsrc is-live=1 num-buffers=66 ! nvvidconv ! 'video/x-raw(memory:NVMM), width=(int)4608, height=(int)2592,format=(string)NV12, framerate=(fraction)14/1' ! tee name=t t. ! queue ! nvvidconv top=0 bottom=2592 left=0 right=4000 ! 'video/x-raw(memory:NVMM), width=4000, height=2592' ! nvv4l2h265enc ! h265parse ! matroskamux ! filesink location=test.mkv

Please give it a try.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.