一、命名格式
ffmpeg input(s) [codec options] output(s)
输入(input)
参数 -i Input.file/stream_url 输入可以为一个文件,也可以是一个视频流地址。
“-re” 选项标识以实时方式读取文件;这允许使用文件作为 "live” 数据源。
编码器(Codecs)
A huge array of options is available here, however we’ll only cover two things: Copying codecs and changing codecs to H264 for video and AAC for audio. H264/AAC 是最常用的编码器are the most common codecs at the moment there’s a good chance you already have these in your files, otherwise re-encoding them to H264/AAC with the default settings of ffmpeg will almost certainly give you what you want. If not feel free to check out the ffmpeg documentation here.
使用-c:v设置视频编码;
使用-c:a设置音频编码;
使用-c设置音频和视频编码。
Copying codecs (options)
The copying of