Diff of /java/help/ffmpeg_1 [000000] .. [65b66c]  Maximize  Restore

Switch to unified view

a b/java/help/ffmpeg_1
1
3. Invocation
2
3.1 Syntax
3
4
The generic syntax is:
5
6
ffmpeg [[infile options][`-i' infile]]... 
7
           {[outfile options] outfile}...
8
9
As a general rule, options are applied to the next 
10
specified file. Therefore, order is important, and 
11
you can have the same option on the command line multiple 
12
times. Each occurrence is then applied to the next input 
13
or output file.
14
15
* To set the video bitrate of the output file to 64kbit/s:
16
17
ffmpeg -i input.avi -b 64k output.avi
18
19
* To force the frame rate of the input and output file to 24 fps:
20
21
ffmpeg -r 24 -i input.avi output.avi
22
23
* To force the frame rate of the output file to 24 fps:
24
25
ffmpeg -i input.avi -r 24 output.avi
26
27
* To force the frame rate of input file to 1 fps and the 
28
output file to 24 fps:
29
30
ffmpeg -r 1 -i input.avi -r 24 output.avi
31
32
The format option may be needed for raw input files.
33
34
By default, FFmpeg tries to convert as losslessly as 
35
possible: It uses the same audio and video parameters 
36
for the outputs as the one specified for the inputs.
37
3.2 Main options
38
39
`-L'
40
    Show license. 
41
`-h'
42
    Show help. 
43
`-version'
44
    Show version. 
45
`-formats'
46
    Show available formats, codecs, protocols, ... 
47
`-f fmt'
48
    Force format. 
49
`-i filename'
50
    input filename 
51
`-y'
52
    Overwrite output files. 
53
`-t duration'
54
    Restrict the transcoded/captured video sequence to 
55
    the duration specified in seconds. hh:mm:ss[.xxx] 
56
    syntax is also supported. 
57
`-fs limit_size'
58
    Set the file size limit. 
59
`-ss position'
60
    Seek to given time position in seconds. 
61
    hh:mm:ss[.xxx] syntax is also supported. 
62
`-itsoffset offset'
63
    Set the input time offset in seconds. 
64
    [-]hh:mm:ss[.xxx] syntax is also supported. This 
65
    option affects all the input files that follow it. 
66
    The offset is added to the timestamps of the input 
67
    files. Specifying a positive offset means that the 
68
    corresponding streams are delayed by 'offset' seconds. 
69
`-title string'
70
    Set the title. 
71
`-timestamp time'
72
    Set the timestamp. 
73
`-author string'
74
    Set the author. 
75
`-copyright string'
76
    Set the copyright. 
77
`-comment string'
78
    Set the comment. 
79
`-album string'
80
    Set the album. 
81
`-track number'
82
    Set the track. 
83
`-year number'
84
    Set the year. 
85
`-v verbose'
86
    Control amount of logging. 
87
`-target type'
88
    Specify target file type ("vcd", "svcd", "dvd", "dv", 
89
    "dv50", "pal-vcd", "ntsc-svcd", ... ). All the format 
90
    options (bitrate, codecs, buffer sizes) are then set 
91
    automatically. You can just type:
92
93
ffmpeg -i myfile.avi -target vcd /tmp/vcd.mpg
94
95
    Nevertheless you can specify additional options as 
96
    long as you know they do not conflict with the standard, 
97
    as in:
98
99
ffmpeg -i myfile.avi -target vcd -bf 2 /tmp/vcd.mpg
100
101
`-dframes number'
102
    Set the number of data frames to record. 
103
`-scodec codec'
104
    Force subtitle codec ('copy' to copy stream). 
105
`-newsubtitle'
106
    Add a new subtitle stream to the current output stream. 
107
`-slang code'
108
    Set the ISO 639 language code (3 letters) of the current 
109
    subtitle stream. 
110

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks