[FFmpeg-user] MPEGTS with multiple audio streams containing discrete audio channels to AC3

Casey Nielson caseyn at grumpy.com
Mon Aug 18 18:19:26 CEST 2014


On Aug 14, 2014, at 10:29 AM, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:

> Casey Nielson <caseyn <at> grumpy.com> writes:
> 
>> ffmpeg -i mpegts_test.ts -strict experimental 
>> -filter_complex "[0:1][0:2][0:3]amerge=inputs=6[aout]" 
>> -map "[aout]" -c:v libx264 -crf 20 -c:a ac3 -b:a 384k 
>> -t 30 output.mp4
> 
> Complete, uncut console output missing.
> 
> (Without reading the fine documentation: Shouldn't 
> this be inputs=3?)
> 
> Carl Eugen
> 
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user

Sorry, uncut output included. The question was meant as a more general usage question initially. In order to create a single AC3 stream from discrete audio channels is it appropriate to use -map_channel or a filter_complex?

Here is the output from ffprobe.

bogus at tst001:~$ ffprobe -i test.ts 
ffprobe version 2.3.1 Copyright (c) 2007-2014 the FFmpeg developers
  built on Aug 12 2014 14:33:26 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
  configuration: --prefix=/home/bogus/src --extra-cflags=-I/home/bogus/src/include --extra-ldflags=-L/home/bogus/src/lib --bindir=/usr/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree
  libavutil      52. 92.100 / 52. 92.100
  libavcodec     55. 69.100 / 55. 69.100
  libavformat    55. 48.100 / 55. 48.100
  libavdevice    55. 13.102 / 55. 13.102
  libavfilter     4. 11.100 /  4. 11.100
  libswscale      2.  6.100 /  2.  6.100
  libswresample   0. 19.100 /  0. 19.100
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mpegts, from 'test.ts':
  Duration: 00:01:59.99, start: 1.400000, bitrate: 94644 kb/s
  Program 1 
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: mpeg2video (4:2:2) ([2][0][0][0] / 0x0002), yuv422p(tv), 1920x1080 [SAR 1:1 DAR 16:9], max. 80000 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
    Stream #0:1[0x101]: Audio: s302m (BSSD / 0x44535342), 48000 Hz, stereo, s16, 1920 kb/s
    Stream #0:2[0x102]: Audio: s302m (BSSD / 0x44535342), 48000 Hz, stereo, s16, 1920 kb/s
    Stream #0:3[0x103]: Audio: s302m (BSSD / 0x44535342), 48000 Hz, stereo, s16, 1920 kb/s
    Stream #0:4[0x104]: Audio: s302m (BSSD / 0x44535342), 48000 Hz, stereo, s16, 1920 kb/s


More information about the ffmpeg-user mailing list