How to obtain real-time streaming video of sensor video in real-time (node:/dev/video11) #92

Closed
opened 2025-12-23 10:32:54 +01:00 by backuprepo · 1 comment
Owner

Originally created by @bendanzhu520 on GitHub (Aug 23, 2024).

Hi @nyanmisaka
I am currently using the RK3588EVB development board for testing, using the command you provided:/ ffmpeg -f lavfi -i testsrc2=s=3840x2160,format=nv12 -c:v hevc_rkmpp -b:v 15M -minrate 10M -maxrate 20M -profile:v main -level 5.1 -g:v 100 -vframes 5000 -y /tmp/tmp.mp4
Save as MP4 video normal OK
I tried the following command:
./ffmpeg -f v4l2 -input_format nv12 -video_size 3840x2160 -framerate 30 -i /dev/video11 -c:v hevc_rkmpp -b:v 15M -minrate 10M -maxrate 20M -profile:v main -level 5.1 -g:v 100 -vframes 5000 -y /tmp/tmp.mp4
Print information: frame=4 fps=0.1 q=-0.0 Lsize=1552kB time=00:01:30.00 bitrate=141.3kbits/s dup=0 drop=1134 speed=2.37x
Discard many frames
For example, if I want to retrieve the video stream from the sensor and the node is/dev/video11, what is the command to retrieve the real-time video stream normally
thank you

Originally created by @bendanzhu520 on GitHub (Aug 23, 2024). Hi @nyanmisaka I am currently using the RK3588EVB development board for testing, using the command you provided:/ ffmpeg -f lavfi -i testsrc2=s=3840x2160,format=nv12 -c:v hevc_rkmpp -b:v 15M -minrate 10M -maxrate 20M -profile:v main -level 5.1 -g:v 100 -vframes 5000 -y /tmp/tmp.mp4 Save as MP4 video normal OK I tried the following command: ./ffmpeg -f v4l2 -input_format nv12 -video_size 3840x2160 -framerate 30 -i /dev/video11 -c:v hevc_rkmpp -b:v 15M -minrate 10M -maxrate 20M -profile:v main -level 5.1 -g:v 100 -vframes 5000 -y /tmp/tmp.mp4 Print information: frame=4 fps=0.1 q=-0.0 Lsize=1552kB time=00:01:30.00 bitrate=141.3kbits/s dup=0 drop=1134 speed=2.37x Discard many frames For example, if I want to retrieve the video stream from the sensor and the node is/dev/video11, what is the command to retrieve the real-time video stream normally thank you
backuprepo 2025-12-23 10:32:54 +01:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@nyanmisaka commented on GitHub (Oct 28, 2024):

I'm not familiar with V4L2 input but your command looks OK. Please verify your command in the software encoder libx264 before trying the RKMPP hardware encoder.

@nyanmisaka commented on GitHub (Oct 28, 2024): I'm not familiar with V4L2 input but your command looks OK. Please verify your command in the software encoder libx264 before trying the RKMPP hardware encoder.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: starred/ffmpeg-rockchip#92
No description provided.