dev-blog

Perfect β€” that’s exactly what ffmpeg is good at πŸ‘ For NO audio, mid quality, and smooth / fast recording, use these settings.


ffmpeg \
-f v4l2 \
-input_format mjpeg \
-video_size 1280x720 \
-framerate 30 \
-i /dev/video0 \
-an \
-c:v libx264 \
-preset veryfast \
-crf 23 \
-pix_fmt yuv420p \
output.mp4

🎯 Why this works well

This setup is fast, stable, and won’t stutter on most systems.


πŸ”§ If you still see frame drops

Try one of these tweaks:

Lower CPU load more

-preset ultrafast

Lower FPS

-framerate 25

Lower resolution

-video_size 640x480

πŸ“ Output file size (approx)


βœ… TL;DR (best choice)

Use 720p + CRF 23 + veryfast preset + no audio

If you want, tell me:

I can tune it exactly so it never cuts frames πŸš€