[FFmpeg-user] [Parsed_amerge_145 @ 0x283dba0] Too many channels (max 32)

Eugene Dzhurinsky jdevelop at gmail.com
Thu Oct 23 22:07:55 CEST 2014


Hello!

I'm trying to merge 27 audio files into the single one. The command line is:


ffmpeg -y -i d1544954e748a6447a8d22ce.mp3 -i d1544954e748a6447a8d22ce.mp3 -i d6544954e37ef008993e45e3.mp3 -i d7544954609cf87b2747bfac.mp3 -i da54495442d9c0a51a42ae9c.mp3 -i db544954aaaacf02f738639e.mp3 -i dc5449540c61844f04fa37c8.mp3 -i dd5449547bb7c732cb19df05.mp3 -i df5449547dc820f5fc6763f3.mp3 -i e054495497d9ee06ea99ca66.mp3 -i e15449540c531e78287981e3.mp3 -i e2544954aef18681daf6a826.mp3 -i e5544954ab6f9e0744ef1f06.mp3 -i e754495446ea63cc013228d7.mp3 -i e8544954307c0a0c21c0566a.mp3 -i e95449543c288f18bcf64fbb.mp3 -i ea544954bedc1f246ffec3ba.mp3 -i ec5449545519c045a59dba84.mp3 -i ed5449549deef0419d9fa7c4.mp3 -i ee544954696a466e6327cf37.mp3 -i f0544954d4e98fb4ca487c07.mp3 -i f154495476e9c39bdc95f812.mp3 -i f2544954e41c34d3e29c2e6c.mp3 -i f454495482c151aea8761dda.mp3 -i f5544954796af4a171f11b57.mp3 -i f754495448788e35e6123679.mp3 -i f754495448788e35e6123679.mp3 -i f85449545e646dea98e5dd19.mp3 -filter_complex "[0]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,129.00,129.20),0.15000*(t - 129.00) + 0.03,1)':eval=frame,volume='if(between(t,129.20,181.50),-0.00057*(t - 129.20) + 0.06,1)':eval=frame,volume='if(between(t,181.50,181.60),0.40000*(t - 181.50) + 0.03,1)':eval=frame,volume='if(between(t,181.60,183.50),-0.03684*(t - 181.60) + 0.07,1)':eval=frame,volume='if(between(t,183.50,188.00),0.00000*(t - 183.50) + 0.00,1)':eval=frame,atrim=0.00:56.00,adelay=129000|129000|129000|129000,apad[0:o];[1]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,0.00,134.00),0.00000*(t - 0.00) + 0.06,1)':eval=frame,atrim=0.00:134.00,apad[1:o];[2]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,2.80,3.30),1.90000*(t - 2.80) + 0.05,1)':eval=frame,volume='if(between(t,3.30,4.00),0.00000*(t - 3.30) + 1.00,1)':eval=frame,atrim=0.00:1.20,adelay=2800|2800|2800|2800,apad[2:o];[3]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,4.70,5.30),1.58333*(t - 4.70) + 0.05,1)':eval=frame,volume='if(between(t,5.30,14.00),0.00000*(t - 5.30) + 1.00,1)':eval=frame,atrim=0.00:9.30,adelay=4700|4700|4700|4700,apad[3:o];[4]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,14.10,25.00),0.00000*(t - 14.10) + 1.00,1)':eval=frame,atrim=0.00:10.90,adelay=14100|14100|14100|14100,apad[4:o];[5]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,25.80,33.00),0.00000*(t - 25.80) + 1.00,1)':eval=frame,atrim=0.00:7.20,adelay=25800|25800|25800|25800,apad[5:o];[6]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,33.80,40.00),0.00000*(t - 33.80) + 1.00,1)':eval=frame,atrim=0.00:6.20,adelay=33800|33800|33800|33800,apad[6:o];[7]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,40.00,45.00),0.00000*(t - 40.00) + 1.00,1)':eval=frame,atrim=0.00:5.00,adelay=40000|40000|40000|40000,apad[7:o];[8]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,45.50,49.50),0.00000*(t - 45.50) + 1.00,1)':eval=frame,atrim=0.00:4.00,adelay=45500|45500|45500|45500,apad[8:o];[9]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,50.50,58.50),0.00000*(t - 50.50) + 1.00,1)':eval=frame,atrim=0.00:8.00,adelay=50500|50500|50500|50500,apad[9:o];[10]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,58.00,61.00),0.00000*(t - 58.00) + 1.00,1)':eval=frame,atrim=0.00:3.00,adelay=58000|58000|58000|58000,apad[10:o];[11]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,61.50,65.50),0.00000*(t - 61.50) + 1.00,1)':eval=frame,atrim=0.00:4.00,adelay=61500|61500|61500|61500,apad[11:o];[12]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,65.50,75.50),0.00000*(t - 65.50) + 1.00,1)':eval=frame,atrim=0.00:10.00,adelay=65500|65500|65500|65500,apad[12:o];[13]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,76.00,80.00),0.00000*(t - 76.00) + 1.00,1)':eval=frame,atrim=0.00:4.00,adelay=76000|76000|76000|76000,apad[13:o];[14]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,81.00,85.00),0.00000*(t - 81.00) + 1.00,1)':eval=frame,atrim=0.00:4.00,adelay=81000|81000|81000|81000,apad[14:o];[15]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,88.00,91.00),0.00000*(t - 88.00) + 1.00,1)':eval=frame,atrim=0.00:3.00,adelay=88000|88000|88000|88000,apad[15:o];[16]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,99.00,111.00),0.00000*(t - 99.00) + 1.00,1)':eval=frame,atrim=0.00:12.00,adelay=99000|99000|99000|99000,apad[16:o];[17]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,111.00,119.00),0.00000*(t - 111.00) + 1.00,1)':eval=frame,atrim=0.00:8.00,adelay=111000|111000|111000|111000,apad[17:o];[18]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,120.00,131.00),0.00000*(t - 120.00) + 1.00,1)':eval=frame,atrim=0.00:11.00,adelay=120000|120000|120000|120000,apad[18:o];[19]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,121.00,133.00),0.00000*(t - 121.00) + 1.00,1)':eval=frame,atrim=0.00:12.00,adelay=121000|121000|121000|121000,apad[19:o];[20]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,134.00,142.00),0.00000*(t - 134.00) + 1.00,1)':eval=frame,atrim=0.00:8.00,adelay=134000|134000|134000|134000,apad[20:o];[21]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,142.00,151.00),0.00000*(t - 142.00) + 1.00,1)':eval=frame,atrim=0.00:9.00,adelay=142000|142000|142000|142000,apad[21:o];[22]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,152.00,161.00),0.00000*(t - 152.00) + 1.00,1)':eval=frame,atrim=0.00:9.00,adelay=152000|152000|152000|152000,apad[22:o];[23]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,161.00,175.00),0.00000*(t - 161.00) + 1.00,1)':eval=frame,atrim=0.00:14.00,adelay=161000|161000|161000|161000,apad[23:o];[24]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,161.00,172.00),0.00000*(t - 161.00) + 1.00,1)':eval=frame,atrim=0.00:11.00,adelay=161000|161000|161000|161000,apad[24:o];[25]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,171.60,174.40),0.00000*(t - 171.60) + 1.00,1)':eval=frame,atrim=0.00:2.80,adelay=171600|171600|171600|171600,apad[25:o];[26]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,172.80,178.90),0.00000*(t - 172.80) + 1.00,1)':eval=frame,atrim=2.80:8.90,adelay=175600|175600|175600|175600,apad[26:o];[27]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume='if(between(t,172.00,184.50),0.00000*(t - 172.00) + 1.00,1)':eval=frame,atrim=0.00:12.50,adelay=172000|172000|172000|172000,apad[27:o];[0:o][1:o][2:o][3:o][4:o][5:o][6:o][7:o][8:o][9:o][10:o][11:o][12:o][13:o][14:o][15:o][16:o][17:o][18:o][19:o][20:o][21:o][22:o][23:o][24:o][25:o][26:o][27:o]amerge=inputs=28,atrim=duration=185.00" -shortest -ac 2 track.mp3

As a result, I'm getting the message:


===========================================================================

Input #27, mp3, from 'f85449545e646dea98e5dd19.mp3':
  Duration: 00:00:09.53, start: 0.025057, bitrate: 320 kb/s
    Stream #27:0: Audio: mp3, 44100 Hz, stereo, s16p, 320 kb/s
    Metadata:
      encoder         : LAME3.98r
[Parsed_amerge_145 @ 0x283dba0] No channel layout for input 1
[Parsed_amerge_145 @ 0x283dba0] Too many channels (max 32)
[Parsed_amerge_145 @ 0x283dba0] Query format failed for 'Parsed_amerge_145': Invalid argument
===========================================================================

As far as I understood, each filter creates it's own channel. So FFMPEG can't
handle more than 32 channels (27 MP3 files will produce 54 channels in total).

What is the best way to overcome this limit? I need only 2 channels as output.

Thanks!

-- 
Eugene N Dzhurinsky
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20141023/63079178/attachment.asc>


More information about the ffmpeg-user mailing list