Create animated GIF and WebP from videos using FFmpeg
Perhaps it's time to start a collection of ffmpeg commands for every situation, similar to bro pages [1]. I feel like I have to look at my old projects every time I need to use it. It took me a lot of trial and error to write an all-purpose ffmpeg command.<p>This is how I convert videos to 720p web-playable videos (if it's not already web-playable):<p><a href="https://github.com/nicbou/homeserver/blob/22c0a160f9df5f4c34cc7a0dc322d5461a73a28b/videoprocessing/src/jobs.py#L97" rel="nofollow">https://github.com/nicbou/homeserver/blob/22c0a160f9df5f4c34...</a><p>This is how I create hover previews like on modern streaming sites:<p><a href="https://github.com/nicbou/timeline/blob/9d9340930ed0213dffdd884bef17f65c73e86ffc/backend/source/timeline/file_utils.py#L31" rel="nofollow">https://github.com/nicbou/timeline/blob/9d9340930ed0213dffdd...</a><p>[1] <a href="http://bropages.org/tar" rel="nofollow">http://bropages.org/tar</a>