A Quick Guide to Using FFmpeg to Create Cross-Device Web Videos.
Fleeting- External reference: https://gist.github.com/jaydenseric/220c785d6289bcfd7366
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
Quality Example flag: -crf 20. 0 is lossless, 23 is default, and 51 is worst possible. 18-28 is a sane range
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
libvpx -qmin 0 -qmax 25
-crf 4 -b:v 1M
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)