Jetson nano recorded file FPS issue

Hi,

I am encoding 2 video streams using the below command

gst-launch-1.0 -e mp4mux name=mux ! filesink location=feed1mp1080HS.mp4 v4l2src device=/dev/video1 ! tee name=t1 t1. ! queue ! video/x-raw, width=1920, height=1080, framerate=30/1 ! nvvidconv ! queue ! nvv4l2h264enc maxperf-enable=1 bitrate=4000000 profile=4 ! queue ! h264parse ! queue ! mux.video_0 audiomixer name=mixer ! audioconvert ! voaacenc ! aacparse ! mux.audio_0 pulsesrc device=“alsa_input.usb-VXIS_Inc_ezcap_U3_capture-02.analog-stereo” ! queue ! audio/x-raw,width=16,depth=16,rate=44100,channel=1 ! queue ! mixer.sink_0 pulsesrc device=“alsa_input.usb-C-Media_Electronics_Inc._USB_Advanced_Audio_Device-00.analog-stereo” ! queue ! audio/x-raw,width=16,depth=16,rate=44100,channel=1 ! queue ! mixer.sink_1 t1. ! queue ! video/x-raw, width=1920, height=1080, framerate=30/1 ! nvvidconv ! queue ! “video/x-raw(memory:NVMM),width=959,height=540,framerate=30/1,format=NV12” ! queue ! nvoverlaysink overlay-x=0 overlay-y=270 overlay-w=959 overlay-h=540 overlay=1 v4l2src device=/dev/video2 ! tee name=t2 t2. ! queue ! video/x-raw, width=1920, height=1080, framerate=30/1 ! nvvidconv ! queue ! nvv4l2h264enc maxperf-enable=1 bitrate=4000000 profile=4 ! queue ! h264parse ! queue ! mp4mux ! filesink location=feed2mp1080HS.mp4 t2. ! queue ! video/x-raw, width=1920, height=1080, framerate=30/1 ! nvvidconv ! queue ! “video/x-raw(memory:NVMM),width=960,height=540,framerate=30/1,format=NV12” ! queue ! nvoverlaysink overlay-x=960 overlay-y=270 overlay-w=960 overlay-h=540 overlay=2

Even though the fps in ubuntu is shown as 30, When checked the files in windows in VLC player the FPS shown is 29.97FPS.

Is there a method to get exact 30FPS in the save files.

Thank You

When I check video Properties with right click

When I check video Properties from VLC

Sometimes I’ve got the same issue. I think this can be cause of software issues
https://forum.videolan.org/viewtopic.php?t=102107#p344916

1 Like

Hi,
It seems like your source runs in NTSC mode:
NTSC - Wikipedia

The framerate is generally either 29.97 or 59.94. You may check if you can configure the source to PAL mode.
PAL - Wikipedia

1 Like

@DaneLLL @mehmetdeniz . Thanks for the information will look into it.