[ About | Licence | Contacts ]
Written by Oleksandr Gavenko (AKA gavenkoa), compiled on 2020-06-30 from rev 66c4bb01038a+.

ffmpeg

Docs

https://ffmpeg.org/documentation.html
Docs index.
http://ffmpeg.org/ffmpeg-all.html
Common options.
https://ffmpeg.org/faq.html
FAQ.
https://ffmpeg.org/ffmpeg.html
Syntax overview.

Probe file

mediainfo $FILE
ffprobe $FILE

Limiting bit rate

-maxrate should be accompanied with -bufsize option like:

-maxrate 800k -bufsize 1200k

otherwise you'll get warning:

> VBV maxrate specified, but no bufsize, ignored

-b:v RATE allows to specify average bitrate for video.

To specify video stream use syntax like:

-c:v:0 libx264 -b:v:0 2000k -maxrate:v:0 2200k -bufsize:v:0 3000k
https://trac.ffmpeg.org/wiki/Limiting%20the%20output%20bitrate
Limiting the output bitrate.
https://trac.ffmpeg.org/wiki/EncodingForStreamingSites
Encoding for streaming sites.

H.264

https://trac.ffmpeg.org/wiki/Encode/H.264

Adding a logo to a video

ffmpeg -i in.mp4 -i logo.png out.mp4
ffmpeg -i in.mp4 -i logo.png -filter_complex "overlay=x=10:y=20" out.mp4