ffmepg commands reminder

Convert video with x264 encoder

ffmpeg -i input -c:v libx264 -crf 23 -maxrate 1M -bufsize 2M output.mp4

0<crf<51 (default: 23) (lossless: 0)

To only change video bitrate/quality but keep audio :

ffmpeg -i input.avi -c:v libx264 -b:v 720k -crf 33 -c:a copy output.mkv

Easy way --> choose a preset

ffmpeg -i input.mp4 -c:v libx264 -preset superfast output.mp4

Optimize video for fast streaming :

ffmpeg -i INPUT.mp4 -c copy -movflags +faststart STREAMABLE_OUTPUT.mp4

Get video file informations

ffmpeg -i video.flv -hide_banner

Split video to images

ffmpeg -i video.flv image%d.jpg

Extract mp3 from video

ffmpeg -i video1.avi -vn -ar 44100 -ac 2 -ab 192 -f mp3 audio3.mp3

other links :

ffmpeg official website :

view raw ffmpeg commands.md hosted with ❤ by GitHub

Laissez un commentaire

Votre adresse de messagerie ne sera pas publiée.

Search
Generic filters
Exact matches only
Filter by Custom Post Type