author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Tue, 22 Dec 2020 11:23:56 +0200 | |
changeset 2480 | 0766b2899607 |
parent 2426 | b8ad0acb827d |
child 2491 | 47d29886013c |
permissions | -rw-r--r-- |
2424
2a62ec5e8506
Print supported options.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
1 |
|
2a62ec5e8506
Print supported options.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
2 |
======== |
2a62ec5e8506
Print supported options.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
3 |
ffmpeg |
2a62ec5e8506
Print supported options.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
4 |
======== |
2a62ec5e8506
Print supported options.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
5 |
.. contents:: |
2a62ec5e8506
Print supported options.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
6 |
:local: |
2a62ec5e8506
Print supported options.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
7 |
|
2425 | 8 |
Docs |
9 |
==== |
|
10 |
||
11 |
https://ffmpeg.org/documentation.html |
|
12 |
Docs index. |
|
13 |
http://ffmpeg.org/ffmpeg-all.html |
|
14 |
Common options. |
|
15 |
https://ffmpeg.org/faq.html |
|
16 |
FAQ. |
|
17 |
https://ffmpeg.org/ffmpeg.html |
|
18 |
Syntax overview. |
|
19 |
||
2424
2a62ec5e8506
Print supported options.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
20 |
Print supported options |
2a62ec5e8506
Print supported options.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
21 |
======================= |
2a62ec5e8506
Print supported options.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
22 |
|
2a62ec5e8506
Print supported options.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
23 |
Supported decoders/encoders:: |
2a62ec5e8506
Print supported options.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
24 |
|
2a62ec5e8506
Print supported options.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
25 |
ffmpeg -codecs |
2a62ec5e8506
Print supported options.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
26 |
|
2a62ec5e8506
Print supported options.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
27 |
Pixel formats:: |
2a62ec5e8506
Print supported options.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
28 |
|
2a62ec5e8506
Print supported options.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
29 |
ffmpeg -pix_fmts |
2a62ec5e8506
Print supported options.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
30 |
|
2426 | 31 |
Probe file |
32 |
========== |
|
33 |
:: |
|
34 |
||
35 |
mediainfo $FILE |
|
36 |
ffprobe $FILE |
|
37 |
||
2425 | 38 |
Limiting bit rate |
39 |
================= |
|
2424
2a62ec5e8506
Print supported options.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
40 |
|
2425 | 41 |
``-maxrate`` should be accompanied with ``-bufsize`` option like:: |
2424
2a62ec5e8506
Print supported options.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
42 |
|
2425 | 43 |
-maxrate 800k -bufsize 1200k |
44 |
||
45 |
otherwise you'll get warning: |
|
46 |
||
47 |
> VBV maxrate specified, but no bufsize, ignored |
|
48 |
||
49 |
``-b:v RATE`` allows to specify average bitrate for video. |
|
50 |
||
51 |
To specify video stream use syntax like:: |
|
52 |
||
53 |
-c:v:0 libx264 -b:v:0 2000k -maxrate:v:0 2200k -bufsize:v:0 3000k |
|
54 |
||
55 |
https://trac.ffmpeg.org/wiki/Limiting%20the%20output%20bitrate |
|
56 |
Limiting the output bitrate. |
|
57 |
https://trac.ffmpeg.org/wiki/EncodingForStreamingSites |
|
58 |
Encoding for streaming sites. |
|
59 |
||
60 |
H.264 |
|
61 |
===== |
|
62 |
||
63 |
https://trac.ffmpeg.org/wiki/Encode/H.264 |
|
2426 | 64 |
|
65 |
Adding a logo to a video |
|
66 |
======================== |
|
67 |
||
68 |
:: |
|
69 |
||
70 |
ffmpeg -i in.mp4 -i logo.png out.mp4 |
|
71 |
ffmpeg -i in.mp4 -i logo.png -filter_complex "overlay=x=10:y=20" out.mp4 |
|
72 |