[FFmpeg-user] Encode subtitles, 5.1 audio into MT2S format

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Apr 17 09:44:32 CEST 2012


Sampath Subasinghe <susiriss <at> gmail.com> writes:

> ffmpeg  -i input.mp4 -vcodec copy -acodec aac -i subtitle.srt 
> -f mpegts out.mt2s

This command line tells ffmpeg to open an input file subtitle.srt 
with video codec copy and audiocodec aac, and to encode to a file 
called out.mt2s with the default codecs for mpegts, those are 
mpeg2video and mp2 audio.

> input.mp4 already has h264 video and 5.1 audio. 
> Then I get this error.

> [mp2 @ 0x17bdc20] encoding 6 channel(s) is not allowed in mp2

(Complete, uncut console output missing.)
Please let us know if anything is unclear about this message.

AC-3 does support 5.1, don't forget that FFmpeg's aac encoder 
is experimental and should produce worse quality than ac-3.

Carl Eugen



More information about the ffmpeg-user mailing list