[FFmpeg-user] split 1 stereo channel to 8 mono channels

Tseveendorj O. tseveendorj at on-air.mn
Thu Mar 5 11:01:20 CET 2015


Hello,

I'm trying to split one stereo channel to eight mono channels. I don't know
it is possible. I tried below command but get error

[AVFilterGraph @ 0x95f120] No output pad can be associated to link label
'a3'.
Error configuring filters.

*Command*
sudo ffmpeg -i Untitled.avi -vcodec mpeg2video -filter_complex
"[0:1:a]channelsplit[a1][a2][a3][a4]" -map 0:v:0 -map "[a1]" -map "[a2]"
-map "[a3]" -map "[a4]" -c:v mpeg2video -c:a:1 pcm_s24le -b:a:1 1152k -ar:1
48000 -c:a:2 pcm_s24le -b:a:2 1152k -ar:2 48000  -c:a:3 pcm_s24le -b:a:3
1152k -ar:3 48000  -c:a:4 pcm_s24le -b:a:4 1152k -ar:4 48000 -flags
+ildct+ilme -vf colormatrix=bt601:bt709 -top 1 -r 25 -g 12 -bf 2 -pix_fmt
yuv422p -minrate 50000k -maxrate 50000k -b:v 50000k -vtag xd5e -f mxf
output.mxf

*Output*
sudo ffmpeg -i Untitled.avi -vcodec mpeg2video -filter_complex
"[0:1:a]channelsplit[a1][a2][a3][a4]" -map 0:v:0 -map "[a1]" -map "[a2]"
-map "[a3]" -map "[a4]" -c:v mpeg2video -c:a:1 pcm_s24le -b:a:1 1152k -ar:1
48000 -c:a:2 pcm_s24le -b:a:2 1152k -ar:2 48000  -c:a:3 pcm_s24le -b:a:3
1152k -ar:3 48000  -c:a:4 pcm_s24le -b:a:4 1152k -ar:4 48000 -flags
+ildct+ilme -vf colormatrix=bt601:bt709 -top 1 -r 25 -g 12 -bf 2 -pix_fmt
yuv422p -minrate 50000k -maxrate 50000k -b:v 50000k -vtag xd5e -f mxf
output.mxf
ffmpeg version 1.2.6-7:1.2.6-1~trusty1 Copyright (c) 2000-2014 the FFmpeg
developers
  built on Apr 26 2014 18:52:58 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
  configuration: --arch=amd64 --disable-stripping --enable-avresample
--enable-pthreads --enable-runtime-cpudetect
--extra-version='7:1.2.6-1~trusty1' --libdir=/usr/lib/x86_64-linux-gnu
--prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype
--enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame
--enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libopus
--enable-libpulse --enable-libschroedinger --enable-libspeex
--enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis
--enable-libvpx --enable-zlib --enable-gpl --enable-postproc
--enable-libcdio --enable-x11grab --enable-libx264
--shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
  libavutil      52. 18.100 / 52. 18.100
  libavcodec     54. 92.100 / 54. 92.100
  libavformat    54. 63.104 / 54. 63.104
  libavdevice    53.  5.103 / 53.  5.103
  libavfilter     3. 42.103 /  3. 42.103
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Input #0, avi, from 'Untitled.avi':
  Duration: 00:00:10.39, start: 0.000000, bitrate: 6639 kb/s
    Stream #0:0: Video: h264 (Main) (X264 / 0x34363258), yuv420p, 1280x720
[SAR 8001:8000 DAR 889:500], 23.98 fps, 23.98 tbr, 23.98 tbn, 47.95 tbc
    Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16p,
128 kb/s
[AVFilterGraph @ 0x95f120] No output pad can be associated to link label
'a3'.
Error configuring filters.


More information about the ffmpeg-user mailing list