[FFmpeg-user] Syntax problem: split (16) audio channels into (8) different stereo streams

Podium B.V. mailinglist at podiumbv.nl
Fri Jan 24 15:51:13 CET 2014


Hi all,

I'm certain ffmpeg can preform the task, but I can't find the solution 
for my problem.
My source mov container (see ffprobe output below) contains 1 video 
stream, 1 audio stream with 16! channels and 1 data stream. And I want 
to transform this input to 1 video stream and 8 stereo audio streams. 
(or as VLC put it: 8 stereo audio tracks)

My problem started already with the audio stream with 16 channels.
( see bug report: https://trac.ffmpeg.org/ticket/2899 )

With the following command I manged a perfect render to 1 audio stereo 
stream:

.ffmpeg \
   -i /input.mov \
   -map 0:0 -map 0:1 \
   -filter:v "yadif=0:-1:0" \
   -codec:v libx264 -profile:v high422 -level 4.1 -preset veryslow \
   -b:v 10M -pix_fmt yuv422p \
   -filter:a "aformat=channel_layouts=0xFFFF, pan=stereo:c0=c0:c1:c1" \
   -codec:a aac -strict -2 -ac 2 \
   -b:a 192k -ar 480000 \
   /output.mp4

But can somebody give me some directions how to get an extra stereo 
stream with channel 3 and 4 ?

I tried much different syntaxes involving the commands: 
"-filter_complex" and "channelsplit", but I do not understand them in 
combination with the "aformat=channel_layouts=0xFFFF".

At the moment I use ffmpeg-2.1.3-64bit-static from 
http://johnvansickle.com/ffmpeg/

Kind regards,
Ed

--- ffprobe output ---

ffprobe version 2.1.3-   http://johnvansickle.com/ffmpeg/ Copyright (c) 
2007-2013 the FFmpeg developers
   built on Jan 22 2014 19:50:14 with gcc 4.8 (Debian 4.8.2-14)
   configuration: --enable-gpl --enable-version3 --disable-shared 
--disable-debug --enable-runtime-cpudetect --enable-libmp3lame 
--enable-libx264 --enable-libspeex --enable-libvorbis --enable-libvpx 
--enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb 
--enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc 
--enable-gray --enable-libopenjpeg --disable-ffserver
   libavutil      52. 48.101 / 52. 48.101
   libavcodec     55. 39.101 / 55. 39.101
   libavformat    55. 19.104 / 55. 19.104
   libavdevice    55.  5.100 / 55.  5.100
   libavfilter     3. 90.100 /  3. 90.100
   libswscale      2.  5.101 /  2.  5.101
   libswresample   0. 17.104 /  0. 17.104
   libpostproc    52.  3.100 / 52.  3.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x2ffcd40] Stream #1: not enough frames to 
estimate rate; consider increasing probesize
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Capture0001.mov':
   Metadata:
     creation_time   : 2013-01-09 15:40:43
   Duration: 00:10:00.22, start: 0.000000, bitrate: 201910 kb/s
     Stream #0:0(eng): Video: prores (apch / 0x68637061), yuv422p10le, 
1280x720, 183394 kb/s, SAR 1:1 DAR 16:9, 50 fps, 50 tbr, 5k tbn, 5k tbc 
(default)
     Metadata:
       creation_time   : 2013-01-09 15:40:43
       handler_name    : Apple Alias Data Handler
     Stream #0:1(eng): Audio: pcm_s24le (lpcm / 0x6D63706C), 48000 Hz, 
16 channels, s32, 18432 kb/s (default)
     Metadata:
       creation_time   : 2013-01-09 15:40:43
       handler_name    : Apple Alias Data Handler




More information about the ffmpeg-user mailing list