熟悉多种视频标准,如h.264, MPEG-2/MPEG-4, AVS.
全部博文(47)
分类: 其他平台
2015-03-17 16:57:52
ffmpeg [global_options] {[input_file_options] -i input_file} ... {[output_file_options] output_file} ...
As a general rule, options are applied to the next specified file. Therefore, order is important, and you can have the same option on the command line multiple times.Each occurrence is then applied to the next input or output file.Exceptions from this rule are the global options (e.g. verbosity level), which should be specified first.
源文档<>
例如:
./ffmpeg-re -analyzeduration 10M-probesize10M -i rtmp://test/myapp/teststream -report -acodec libfaac -vcodec libx264 -profile:v high -level:v 40 -preset medium -r 30 -b:v 800k -profile:a aac_low -ar 48000 -ac 2 -s 200x200 -f flv rtmp://test/myapp/newstream
When used as an input option (before-i), limit thedurationof data read from the input file.
When used as an output option (before an output filename), stop writing the output after its duration reachesduration.
durationmay be a number in seconds, or inhh:mm:ss[.xxx]form.
-to and -t are mutually exclusive and -t has priority.
./ffmpeg -report -i test.ts -c copy -t 1 -vcodec libx264 -y out.ts
编码了25 frames
注释:test.ts的码率为25