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

Podium B.V. mailinglist at podiumbv.nl
Mon Jan 27 11:31:28 CET 2014


On 26-01-14 18:07, Carl Eugen Hoyos wrote:
>> 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.
> Please test:
> $ ffmpeg -i input -map_channel 0.1.0 -map_channel 0.1.1 out1.wav
> -map_channel 0.1.2 -map_channel 0.1.3 out2.wav
>
> Carl Eugen

Your test does work perfect. Even with all 16 channels:

ffmpeg -i input.mov \
   -map_channel 0.1.0 -map_channel 0.1.1 out1.wav \
   -map_channel 0.1.2 -map_channel 0.1.3 out2.wav \
   -map_channel 0.1.4 -map_channel 0.1.5 out3.wav \
   -map_channel 0.1.6 -map_channel 0.1.7 out4.wav \
   -map_channel 0.1.8 -map_channel 0.1.9 out5.wav \
   -map_channel 0.1.10 -map_channel 0.1.11 out6.wav \
   -map_channel 0.1.12 -map_channel 0.1.13 out7.wav \
   -map_channel 0.1.14 -map_channel 0.1.15 out8.wav

But i did read online that "-map_channel" shouldn't be used anymore.
And FFmpeg also replied:

[pan @ 0x335b260] This syntax is deprecated. Use '|' to separate the 
list items.
[pan @ 0x335b260] Pure channel mapping detected: 0 1
-map_channel is forwarded to lavfi similarly to -af pan=0x3:c0=c2:c1=c3.

What would be the correct way for my problem ?

Kind regards


--- Full output ---

ffmpeg version 2.1.3-   http://johnvansickle.com/ffmpeg/ Copyright (c) 
2000-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 @ 0x33971c0] Stream #1: not enough frames to 
estimate rate; consider increasing probesize
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Capture0000.mov':
   Metadata:
     creation_time   : 2013-12-23 20:03:23
   Duration: 02:32:23.00, start: 0.000000, bitrate: 79112 kb/s
     Stream #0:0(eng): Video: prores (apch / 0x68637061), yuv422p10le, 
720x576, 60590 kb/s, SAR 59:54 DAR 295:216, 25 fps, 25 tbr, 2500 tbn, 
2500 tbc (default)
     Metadata:
       creation_time   : 2013-12-23 20:03:23
       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-12-23 20:03:23
       handler_name    : Apple Alias Data Handler
-map_channel is forwarded to lavfi similarly to -af pan=0x3:c0=c0:c1=c1.
[pan @ 0x335b260] This syntax is deprecated. Use '|' to separate the 
list items.
[pan @ 0x335b260] Pure channel mapping detected: 0 1
-map_channel is forwarded to lavfi similarly to -af pan=0x3:c0=c2:c1=c3.
[pan @ 0x335e060] This syntax is deprecated. Use '|' to separate the 
list items.
[pan @ 0x335e060] Pure channel mapping detected: 2 3
-map_channel is forwarded to lavfi similarly to -af pan=0x3:c0=c4:c1=c5.
[pan @ 0x33800c0] This syntax is deprecated. Use '|' to separate the 
list items.
[pan @ 0x33800c0] Pure channel mapping detected: 4 5
-map_channel is forwarded to lavfi similarly to -af pan=0x3:c0=c6:c1=c7.
[pan @ 0x3384f20] This syntax is deprecated. Use '|' to separate the 
list items.
[pan @ 0x3384f20] Pure channel mapping detected: 6 7
-map_channel is forwarded to lavfi similarly to -af pan=0x3:c0=c8:c1=c9.
[pan @ 0x3386e20] This syntax is deprecated. Use '|' to separate the 
list items.
[pan @ 0x3386e20] Pure channel mapping detected: 8 9
-map_channel is forwarded to lavfi similarly to -af pan=0x3:c0=c10:c1=c11.
[pan @ 0x338e720] This syntax is deprecated. Use '|' to separate the 
list items.
[pan @ 0x338e720] Pure channel mapping detected: 10 11
-map_channel is forwarded to lavfi similarly to -af pan=0x3:c0=c12:c1=c13.
[pan @ 0x336eb60] This syntax is deprecated. Use '|' to separate the 
list items.
[pan @ 0x336eb60] Pure channel mapping detected: 12 13
-map_channel is forwarded to lavfi similarly to -af pan=0x3:c0=c14:c1=c15.
[pan @ 0x3377be0] This syntax is deprecated. Use '|' to separate the 
list items.
[pan @ 0x3377be0] Pure channel mapping detected: 14 15
Output #0, wav, to 'out1.wav':
   Metadata:
     ISFT            : Lavf55.19.104
     Stream #0:0(eng): Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 
Hz, stereo, s16, 1536 kb/s (default)
     Metadata:
       creation_time   : 2013-12-23 20:03:23
       handler_name    : Apple Alias Data Handler
Output #1, wav, to 'out2.wav':
   Metadata:
     ISFT            : Lavf55.19.104
     Stream #1:0(eng): Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 
Hz, stereo, s16, 1536 kb/s (default)
     Metadata:
       creation_time   : 2013-12-23 20:03:23
       handler_name    : Apple Alias Data Handler
Output #2, wav, to 'out3.wav':
   Metadata:
     ISFT            : Lavf55.19.104
     Stream #2:0(eng): Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 
Hz, stereo, s16, 1536 kb/s (default)
     Metadata:
       creation_time   : 2013-12-23 20:03:23
       handler_name    : Apple Alias Data Handler
Output #3, wav, to 'out4.wav':
   Metadata:
     ISFT            : Lavf55.19.104
     Stream #3:0(eng): Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 
Hz, stereo, s16, 1536 kb/s (default)
     Metadata:
       creation_time   : 2013-12-23 20:03:23
       handler_name    : Apple Alias Data Handler
Output #4, wav, to 'out5.wav':
   Metadata:
     ISFT            : Lavf55.19.104
     Stream #4:0(eng): Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 
Hz, stereo, s16, 1536 kb/s (default)
     Metadata:
       creation_time   : 2013-12-23 20:03:23
       handler_name    : Apple Alias Data Handler
Output #5, wav, to 'out6.wav':
   Metadata:
     ISFT            : Lavf55.19.104
     Stream #5:0(eng): Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 
Hz, stereo, s16, 1536 kb/s (default)
     Metadata:
       creation_time   : 2013-12-23 20:03:23
       handler_name    : Apple Alias Data Handler
Output #6, wav, to 'out7.wav':
   Metadata:
     ISFT            : Lavf55.19.104
     Stream #6:0(eng): Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 
Hz, stereo, s16, 1536 kb/s (default)
     Metadata:
       creation_time   : 2013-12-23 20:03:23
       handler_name    : Apple Alias Data Handler
Output #7, wav, to 'out8.wav':
   Metadata:
     ISFT            : Lavf55.19.104
     Stream #7:0(eng): Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 
Hz, stereo, s16, 1536 kb/s (default)
     Metadata:
       creation_time   : 2013-12-23 20:03:23
       handler_name    : Apple Alias Data Handler
Stream mapping:
   Stream #0:1 -> #0:0 (pcm_s24le -> pcm_s16le)
   Stream #0:1 -> #1:0 (pcm_s24le -> pcm_s16le)
   Stream #0:1 -> #2:0 (pcm_s24le -> pcm_s16le)
   Stream #0:1 -> #3:0 (pcm_s24le -> pcm_s16le)
   Stream #0:1 -> #4:0 (pcm_s24le -> pcm_s16le)
   Stream #0:1 -> #5:0 (pcm_s24le -> pcm_s16le)
   Stream #0:1 -> #6:0 (pcm_s24le -> pcm_s16le)
   Stream #0:1 -> #7:0 (pcm_s24le -> pcm_s16le)
Press [q] to stop, [?] for help
size= 1714313kB time=02:32:23.00 bitrate=1536.0kbits/s
video:0kB audio:13714500kB subtitle:0 global headers:0kB muxing overhead 
-87.499999%




More information about the ffmpeg-user mailing list