Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.
Hüseyin BIYIK edited this page Jul 7, 2023 · 17 revisions

To transcode to h264

ffmpeg -i input.mp4 -c:v h264 out.mp4

To transcode to h265/hevc

ffmpeg -i input.mp4 -c:v hevc out.mp4

To capture screen with kmsgrab

sudo ffmpeg -device /dev/dri/card0 -framerate 60 -f kmsgrab -i - -c:v h264 out.mp4

To capture webcam (/dev/video1 is the v4l2 device)

ffmpeg -f v4l2 -i /dev/video1 -framerate 60 -video_size 1920x1080 -c:v h264 out.mp4

To capture Hdmi-in with rk3588

ffmpeg -f v4l2 -i /dev/video0 -framerate 60 -video_size 1920x1080 -c:v h264 out.mp4

Clone this wiki locally