0 votes
by (160 points)

Hi,

I tried to save the video 1080P from USB IMX307 camera on Jetson Nano L4T R32.4.2. The command I used is:

gst-launch-1.0 -e -v v4l2src device=/dev/video1 io-mode=2 do-timestamp=true ! image/jpeg, width=1920, height=1080, framerate=30/1 ! jpegparse ! nvjpegdec ! 'video/x-raw(memory:NVMM)' ! nvvidconv ! "video/x-raw(memory:NVMM),format=(string)I420,width=1920,height=1080" ! nvvidconv ! 'video/x-raw(memory:NVMM),format=NV12' ! omxh264enc bitrate=8000000 ! h264parse ! qtmux ! filesink location=video_1080p.mkv

 The video is saved successfully but when playing the video file, it shows video with slow motion like dropped frame to 1-2FPS although the video file info shows 1920x1080@30FPS.

When I tried to set the save file to 720P like in below code, the video play back is normal, no drop frame problem.

gst-launch-1.0 -e -v v4l2src device=/dev/video1 io-mode=2 do-timestamp=true ! image/jpeg, width=1920, height=1080, framerate=30/1 ! jpegparse ! nvjpegdec ! 'video/x-raw(memory:NVMM)' ! nvvidconv ! "video/x-raw(memory:NVMM),format=(string)I420,width=1280,height=720" ! nvvidconv ! 'video/x-raw(memory:NVMM),format=NV12' ! omxh264enc bitrate=8000000 ! h264parse ! qtmux ! filesink location=video_720p.mkv

Can Veye double check the codes for 1080P above and provide any solution to this case?

1 Answer

0 votes
by (2.6k points)
edited by

Hi,
I checked it on jetson  nano.  It print this:

WARNING: from element /GstPipeline:pipeline0/GstNvOverlaySink-nvoverlaysink:nvoverlaysink-nvoverlaysink0: A lot of buffers are being dropped.

Additional debug info:

gstbasesink.c(2902): gst_base_sink_is_too_late (): /GstPipeline:pipeline0/GstNvOverlaySink-nvoverlaysink:nvoverlaysink-nvoverlaysink0:

There may be a timestamping problem, or this computer is too slow.

And I checked it on jetson xavier nx, your cmd works fine.

PS:  CS-MIPI-IMX307 support h.264  format itself, May be you can use the video directly from this camera module? 

Hope  will help~

by (160 points)
Thank you for your answer.

It works fine on xavier NX means the video is recorded with resolution 1080P can play back properly (no drop frame)? Have you tested with USB IMX307 or CSI IMX307 on xavier NX?
by (2.6k points)
yes,yes.
I checked your cmd on nx with USB imx307.
I wrote it wrong before, in the PS section.
PS:  CS-USB-IMX307 support h.264  format itself, May be you can use the video directly from this camera module?
欢迎来到 Veye Q&;A ,有什么不懂的可以尽管在这里提问,你将会收到社区其他成员的回答。
...