Not able to see fps 30 in recorded ov5693 video jetson TX2

Hi,
I have recorded a video through ov5693 on Tx2 EVk but when i am opening the video file in VLC player i am not seeing its speed 30fps…what could be the issue i am seeing only 7fps but it has recorded with 30 fps

What’s the command to record the video file?

I am running below command to capture videos

gst-launch-1.0 nvarguscamerasrc sensor-id=2 num-buffers=100 ! ‘video/x-raw(memory:NVMM),width=1920, height=1080, framerate=30/1, format=NV12’ ! omxh264enc ! qtmux ! filesink location=inward.mp4 -e

or

gst-launch-1.0 nvarguscamerasrc sensor-id=2 ! ‘video/x-raw(memory:NVMM),width=1920, height=1080, framerate=30/1, format=NV12’ ! omxh264enc control-rate=2 bitrate=2000000 ! splitmuxsink max-files=3 send-keyframe-requests=true location=/home/ubuntu/videos/left_video%02d.mp4 max-size-time=30000000000 -e &

How about any others player?
I check with the windows file property show the frame rate are 30fps.

we checked the captured file property it is showing 7 fps??
do we have to add any thing for that?

That’s weird could you check below command?
v4l2-ctl --list-formats-ext
v4l2-ctl --stream-mmap --set-ctrl bypass_mode=0 --stream-count=100 -d /dev/video0

is there any gst-launch command to check fps rate of capture video?

It’s better to have v4l2-ctl to make sure the sensor output correct frame rate first.

====================
ioctl: VIDIOC_ENUM_FMT
Index : 0[ 408.730136] ov491_power_off: VVDN: power off Done

    Type        : Video Capture
    Pixel Format: 'UYVY'
    Name        : UYVY 4:2:2
            Size: Discrete 1920x1080
                    Interval: Discrete 0.033s (30.000 fps)

    Index       : 1
    Type        : Video Capture
    Pixel Format: 'NV16'
    Name        : Y/CbCr 4:2:2
            Size: Discrete 1920x1080
                    Interval: Discrete 0.033s (30.000 fps)

    Index       : 2
    Type        : Video Capture
    Pixel Format: 'UYVY'
    Name        : UYVY 4:2:2
            Size: Discrete 1920x1080
                    Interval: Discrete 0.033s (30.000 fps)

Anjali Dutt Upadhyay, Yesterday 6:42 PM

root@localhost:/home/ubuntu# v4l2-ctl --list-formats-ext -d /dev/video0
[ 556.753468] ov491 2-0024: ov491_power_on: VVDN: power on
[ 556.763010] ov491 2-0024: ov491_power_on: Power ON success
ioctl: VIDIOC_ENUM_FMT
Index : 0[ 556.773324] ov491_power_off: VVDN: power off Done

    Type        : Video Capture
    Pixel Format: 'UYVY'
    Name        : UYVY 4:2:2
            Size: Discrete 1920x1080
                    Interval: Discrete 0.033s (30.000 fps)

    Index       : 1
    Type        : Video Capture
    Pixel Format: 'NV16'
    Name        : Y/CbCr 4:2:2
            Size: Discrete 1920x1080
                    Interval: Discrete 0.033s (30.000 fps)

    Index       : 2
    Type        : Video Capture
    Pixel Format: 'UYVY'
    Name        : UYVY 4:2:2
            Size: Discrete 1920x1080
                    Interval: Discrete 0.033s (30.000 fps)

root@localhost:/home/ubuntu# v4l2-ctl --list-formats-ext -d /dev/video1
[ 558.607379] ov9732 2-0036: ov9732_power_on: VVDN: power on
[ 558.617058] ov9732 2-0036: ov9732_power_on: Power ON success
ioctl: VIDIOC_ENUM_FMT
Index [ 558.631685] ov9732 2-0036: ov9732_power_off: VVDN: power off
: 0
Type : Video Capture
Pixel Format: ‘BG10’
Name : 10-bit Bayer BGBG/GRGR
Size: Discrete 1280x720
Interval: Discrete 0.008s (120.000 fps)

root@localhost:/home/ubuntu# v4l2-ctl --list-formats-ext -d /dev/video2
[ 560.795043] ov9732 7-0036: ov9732_power_on: VVDN: power on
[ 560.804737] ov9732 7-0036: ov9732_power_on: Power ON success
ioctl: VIDIOC_ENUM_FMT
Index : 0[ 560.817445] ov9732 7-0036: ov9732_power_off: VVDN: power off

    Type        : Video Capture
    Pixel Format: 'BG10'
    Name        : 10-bit Bayer BGBG/GRGR
            Size: Discrete 1280x720
                    Interval: Discrete 0.008s (120.000 fps)

======================

These are the out put we have 4 cameras of different version ov9732,ov491 and ov2735…we are checking the file property it is coming 6fps.

can you help what could be the issue

Do you mean the v4l2-ctl get 6fps too?
If you have boost the nvcsi/vi clocks and have the system run as performance mode I think the problem could be the sensor output problem.

using v4l2-ctl we are seeing 30fps on console but using v4l-ctl we only capture
raw image and we convert it to png format but using gst-launch we are capturing video and it is coming 6fps when i see the properties of video files.

can you please tell what could be the issue

Try to boost the system as performance by nvpmodel and jeston_clocks.

can you share example how we will boost performance by nvpmodel and jeston_clocks

Run below command

sudo nvpmode -m 0
sudo jetson_clocks

sudo su
echo 1 > /sys/kernel/debug/bpmp/debug/clk/vi/mrq_rate_locked
echo 1 > /sys/kernel/debug/bpmp/debug/clk/isp/mrq_rate_locked
echo 1 > /sys/kernel/debug/bpmp/debug/clk/nvcsi/mrq_rate_locked
cat /sys/kernel/debug/bpmp/debug/clk/vi/max_rate |tee /sys/kernel/debug/bpmp/debug/clk/vi/rate
cat /sys/kernel/debug/bpmp/debug/clk/isp/max_rate | tee  /sys/kernel/debug/bpmp/debug/clk/isp/rate
cat /sys/kernel/debug/bpmp/debug/clk/nvcsi/max_rate | tee /sys/kernel/debug/bpmp/debug/clk/nvcsi/rate

I run all above given command but still in video file property it is showing 6 fps.
running below command to capture it

gst-launch-1.0 nvarguscamerasrc sensor-id=2 num-buffers=500 ! ‘video/x-raw(memory:NVMM),width=1920, height=1080, framerate=30/1, format=NV12’ ! omxh264enc ! qtmux ! filesink location=inward199.mp4 -e

can you please help what could be the issue

What’s the BSP version? Have you check with J4.4 or J4.4.1?

i have my own cutomized Tx2 board with 4GB varient.

we are using SDK32.4.3 and for your information i am using camera ov9732 and ov2735…so could be the issue with my driver or something else?

Come on the title confuse us.
Yes, I believe the driver should be the root cause. Have modify the driver to make all of the control function as dummy to make sure the driver implementation.

so if i see ov5693 and ov972 both has almost same register and we have taken ov5693 base code to do changes for ov9732…what could cause this fps speed is not working for ov9732,where we can see in the driver code or device tree?

Have a check the programing guide.