ffmpeg cheat sheet

First of all, after using yt-dlp to download 2 webm files for a video, you can combine them without reencoding using the following command (See here), Just make sure both files are VP8 or VP9

ffmpeg -i ao.webm -i vo.webm -c:v copy -c:a copy output.webm

To extract the section from the file resulting from the first command above

ffmpeg -ss 00:02:39.000 -i output.webm -t 00:00:05.000 -c copy out.mp4

Converting a file you have downloaded using 1 or any other file into MP4 (H264), since some windows computers will not play a webm file !

ffmpeg -i source264.mp4 -c:v libx265 -crf 28 -preset fast -c:a aac -b:a 128k  -filter:v fps=25 out265.mp4

Leave a Reply

Your email address will not be published. Required fields are marked *