Skip to content

Instantly share code, notes, and snippets.

@nullobject
Last active May 12, 2021 09:13
Show Gist options
  • Save nullobject/263de1a44fb4598e94ddcb0274c35c68 to your computer and use it in GitHub Desktop.
Save nullobject/263de1a44fb4598e94ddcb0274c35c68 to your computer and use it in GitHub Desktop.
Encode a HDMI capture
ffmpeg -y -f alsa -thread_queue_size 1024 -i hw:2 -f v4l2 -thread_queue_size 1024 -i /dev/video-hdmi-capture -c:v libx264 -pix_fmt yuv420p -r 60 -c:a aac -ac 2 -ar 48000 lol.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment