Video Capturing and Encoding
The topic provides examples for capturing a video and encoding it to be an H.265 file.
The examples require the following plug-in(s).
- hevc_omx
The following code block shows the example in different scenarios.
- Capture from USB camera and encoding:
ffmpeg -f v4l2 -t 10 -r 30 -s 1920*1080 -i /dev/video4 -vcodec hevc_omx -vb 5000k -pix_fmt yuv420p ff_uvc_h265_1080p_420_30.h265
- Capture from IMX219 sensor and encoding:
ffmpeg -f v4l2 -t 20 -r 30 -s 1920*1080 -i /dev/video1 -vcodec hevc_omx -vb 5000k ff_219_1080p_30.h265