Konubinix' opinionated web of thoughts

A Quick Guide to Using FFmpeg to Create Cross-Device Web Videos.

Fleeting

A quick guide to using FFmpeg to create cross-device web videos.

Scale video Example flag: -vf scale=1280:-2. -1 for the width or height will keep it in ratio to the other specified dimension. -2 will keep it in ratio to the other specified dimension, but, to ensure it is divisible by 2 (a requirement for certain encodings such as yuv420p) the width or height will be adjusted if necessary

https://gist.github.com/jaydenseric/220c785d6289bcfd7366

Quality Example flag: -crf 20. 0 is lossless, 23 is default, and 51 is worst possible. 18-28 is a sane range

https://gist.github.com/jaydenseric/220c785d6289bcfd7366

Fast start Flag: -movflags +faststart. Moves some data to the beginning of the file, allowing the video to be played before it is completely downloaded

https://gist.github.com/jaydenseric/220c785d6289bcfd7366

libvpx -qmin 0 -qmax 25

https://gist.github.com/jaydenseric/220c785d6289bcfd7366

-crf 4 -b:v 1M

https://gist.github.com/jaydenseric/220c785d6289bcfd7366

also recommend tweaking the scaling filter to use a better scaling algorithm. Use scale=1280:-2:flags=lanczos for slightly higher quality scaling at the cost of a minor bump in CPU. (negligible compared to encoding)

https://gist.github.com/jaydenseric/220c785d6289bcfd7366