mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 07:31:22 +01:00
How to obtain real-time streaming video of sensor video in real-time (node:/dev/video11) #92
Labels
No labels
bug
enhancement
help wanted
invalid
pull-request
question
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: starred/ffmpeg-rockchip#92
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@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.