[FFmpeg-user] how to convert one mp4 file into multiple files with different setting

Cley Faye cleyfaye at gmail.com
Sat Dec 17 12:21:45 EET 2016


2016-12-17 8:41 GMT+01:00 qw <applemax82 at 163.com>:

> I want to use ffmpeg to do the following complicated task:
>
>
> I have one mp4 file with one audio and one video stream. I want to convert
> the mp4 file into three encoding settings, and then save each output with
> one encoding setting into 3 files.
>
>
> How to do it by using single ffmpeg command?
>

​Every time you provide an output filename, all output settings are reset.
You could do something like this:

$ ffmpeg -i input.mp4 -c copy out1.mp4 -c:v h264 -c:a libvorbis out2.mp4 -c
copy -map 0:v out3.mp4

Each output will have the preceding options applied to them.


More information about the ffmpeg-user mailing list