how to transfer an audio stream to a video stream? - audio

enter image description here
PS C:\Users\RI\Desktop\Movie> ffprobe mov002.mpg
Input #0, mpeg, from 'mov002.mpg':
Duration: 00:00:00.26, start: 31.949778, bitrate: 2258447 kb/s
Stream #0:0[0x1e0]: Audio: mp3, 0 channels, fltp
Stream #0:1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16p, 192 kb/s
Stream #0:0 should be a video stream, but it is parsed as an audio stream
how to transfer the audio stream to a video stream

Related

ffmpeg - 2nd audio stream added to video won't play

I have a video that already contains an audio stream. I'm trying to add a second audio stream to that same video.
ffmpeg -i input1.mkv -i input2.mp3 -map 0 -map 1:a -c:v copy output.mp4
This seems very straightforward. But when I try to play the video, I can only hear one of the audio streams. This happens even if I reverse the order of the inputs, and regardless of whether I output to an mp4 or mkv file. It also happens if I map all of the streams from all of the input using -map 0 and -map 1, and it still persists if I use a wav file for the second input instead of an mp3
When I use ffprobe to examine the output video, it's clear that there are three streams:
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf59.27.100
Duration: 00:05:05.09, start: 0.000000, bitrate: 9973 kb/s
Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 3840x2160 [SAR 3:4 DAR 4:3], 11272 kb/s, 27.28 fps, 24 tbr, 16k tbn (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 131 kb/s (default)
Metadata:
handler_name : SoundHandler
vendor_id : [0][0][0][0]
Stream #0:2[0x3](und): Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 191 kb/s
Metadata:
handler_name : SoundHandler
vendor_id : [0][0][0][0]
How do I get this video to play both of the audio streams? This seems so simple, and it's driving me crazy that I can't figure it out.

After video convert to hls with ffmpeg, new video has no screen and has just audio

I am having problems with HLS stream creation, sometimes my created video just has audio and it's display a black screen
Here is my code in below
/opt/nodejs/ffmpeg -i "https://******-v1-post-content.s3.us-east-
2.amazonaws.com/104/posts/win/video/item-1615842876280.mov" -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls /tmp/item-1615842876280.m3u8
The Output Of command
stderr: ffmpeg version 4.2.3-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 8 (Debian 8.3.0-6)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'https://*****-v1-post-content.s3.us-east-2.amazonaws.com/104/posts/win/video/item-1615842876280.mov:
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
creation_time : 2021-03-13T08:49:02.000000Z
Duration: 00:00:03.50, start: 0.000000, bitrate: 7984 kb/s
Stream #0:0(und): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, bt709), 1920x1080, 7881 kb/s, 29.97 fps, 29.97 tbr, 600 tbn, 600 tbc (default)
Metadata:
rotate : 90
creation_time : 2021-03-13T08:49:02.000000Z
handler_name : Core Media Video
encoder : HEVC
Side data:
displaymatrix: rotation of -90.00 degrees
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 83 kb/s (default)
Metadata:
creation_time : 2021-03-13T08:49:02.000000Z
handler_name : Core Media Audio
[hls # 0x6684ec0] Opening '/tmp/item-16158428762800.ts' for writing
Output #0, hls, to '/tmp/item-1615842876280.m3u8':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
encoder : Lavf58.29.100
Stream #0:0(und): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, bt709), 1920x1080, q=2-31, 7881 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 600 tbc (default)
Metadata:
rotate : 90
creation_time : 2021-03-13T08:49:02.000000Z
handler_name : Core Media Video
encoder : HEVC
Side data:
displaymatrix: rotation of -90.00 degrees
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 83 kb/s (default)
Metadata:
creation_time : 2021-03-13T08:49:02.000000Z
handler_name : Core Media Audio
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Thank you!
Sevada

FFMPEG: audio out of sync

ffmpeg -rtsp_transport tcp -i "rtsp://.............." -re -stream_loop -1 -i audio.m4a -filter_complex "[0:a]highpass=f=200,lowpass=f=3000,volume=0.3[mic];[1:a]volume=0.1[mic2];[mic][mic2]amix=duration=shortest[a]" -map 0:v -map "[a]" -c:v copy -b:a 320k -c:a aac -f flv "rtmp://......."
This is my working very well script thanks to #Ilogan
But now i have a problem with an audio out of sync, i don't care about the second one, its just a file audio but the first one is from a microphone of camera IP so it should be synced with the video but now the sound from a microphone is almost 28 seconds later.
Any tips how to do it?
adelay=28000 ? - nope, that didnt help since i need to delay the video to sync this with an audio.Also tried -use_wallclock_as_timestamps 1 but it didnt help neither.
Also i used -itsoffset 28 it helped but for a while, looks like that the delay time between video and audio is rising and now its 40sec+
Whats going on?
Now i'm trying with tpad=start_duration=28
edit:
Metadata:
title : NVT
comment : From NVT
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (High), yuvj420p(pc, progressive), 1920x1080, 5 fps, 30 tbr, 90k tbn, 10 tbc
Stream #0:1: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s
Stream #0:2: Data: none
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'audio.m4a':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
title : Nature
artist :
date : 2018
encoder : Lavf58.20.100
comment :
Duration: 08:20:49.15, start: 0.000000, bitrate: 129 kb/s
Stream #1:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default)
Metadata:
handler_name : ISO Media file produced by Google Inc. Created on: 01/28/2020.
Stream mapping:
Stream #0:1 (pcm_mulaw) -> highpass
Stream #1:0 (aac) -> volume
Stream #0:0 -> #0:0 (copy)
amix -> Stream #0:1 (aac)
Press [q] to stop, [?] for help
[rtsp # 0x82e490] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
Output #0, flv, to 'rtmp://....':
Metadata:
title : NVT
comment : From NVT
encoder : Lavf58.20.100
Stream #0:0: Video: h264 (High) ([7][0][0][0] / 0x0007), yuvj420p(pc, progressive), 1920x1080, q=2-31, 5 fps, 30 tbr, 1k tbn, 90k tbc
Stream #0:1: Audio: aac (LC) ([10][0][0][0] / 0x000A), 44100 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
encoder : Lavc58.35.100 aac
frame= 7 fps=0.0 q=-1.0 size= 572kB time=00:00:00.44 bitrate=10634.7kbitsframe= 13 fps= 13 q=-1.0 size= 697kB time=00:00:00.88 bitrate=6463.4kbits/frame= 25 fps= 16 q=-1.0 size= 1185kB time=00:00:01.48 bitrate=6533.1kbits/frame= 33 fps= 16 q=-1.0 size= 1390kB time=00:00:01.99 bitrate=5702.1kbits```

ffmpeg - how to pass all streams audio/tmcd, etc from input->output unchanged

Please help me, with hopefully specific ffmpeg arguments to include in my video encoding.
My work is only related to video stream, so this is the only one I'm changing.
I receive a .mov file(s) that have already been pre-compiled for a specific broadcaster, some of those selfcontained videos have 4 streams (1 video, 2 audio, and some other timecode stream). Others have up to 17 streams: 1-video, 15-audio streams and the final one is unsupported tmcd.
My process pipeline includes only re-encoding/re-processing video stream, and everything else I need to pass along to the output file - all other streams without any changes or alterations.
During this step of encoding, I insert icon.png into position 5:21 from sec 2-3, from 4-5, and from 6-8. To achieve this, I use map option, so my encoding string looks like this:
ffmpeg -i in.mov -i icon.png -i icon.png -i icon.png
-filter_complex " [0][1]overlay=5:21:enable='between(t,2,3)'[v1];
[v1][2]overlay=5:21:enable='between(t,4,5)'[v2];
[v2][3]overlay=5:21:enable='between(t,6,8)'[v3]" -map '[v3]' -map 0:a
-c:v dvvideo -pix_fmt yuv422p -b:v 115084915 -maxrate 115084915 -minrate 115084915 -r 29.97 -top 1 -color_primaries bt709 -color_trc bt709 -colorspace bt709 -vtag dvh6
-c:a copy -c:s copy -y out.mov
The problem is that the out.mov only shows with 2 streams instead of 17 (1-video, and 2-audio). All other 15 streams are truncated completely.
Reading some other stackoverflow posts I found a way to transfer all other streams, is by using -map 0:
But as I tried adding -map 0 on my last line:
...
-map 0 -c:a copy -c:s copy -y out.mov
but this doubles the number of streams from 17 to 34 - also double in output file size.
If I remove map '[v3]' -map 0:a from my original encoding string and only include -map 0, I get correct number of streams, but, of course icon.png is not getting inserted at the right time. What should I do?
If there's a way to re-map my -filter_complex to overlay images without using this -map option? Or, be specific at what each -map referring to?
If not, what other arguments/parameters can I use, if such option even exists, to copy all streams, subs and all other audio, potentially some other signal for audio impairment, if such exists.
Please help, so I can finally wrap my output and submit my work.
EDIT 1:
Here's my output:
ffprobe version N-99345-g904ab5365c Copyright (c) 2007-2020 the FFmpeg developers
built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)
configuration: --enable-filter=qrrabbit --enable-opengl --enable-gpl --enable-libx264 --extra-libs='-lqrencode -lpthread'
libavutil 56. 59.100 / 56. 59.100
libavcodec 58.106.100 / 58.106.100
libavformat 58. 58.100 / 58. 58.100
libavdevice 58. 11.102 / 58. 11.102
libavfilter 7. 87.100 / 7. 87.100
libswscale 5. 8.100 / 5. 8.100
libswresample 3. 8.100 / 3. 8.100
libpostproc 55. 8.100 / 55. 8.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output.mov':
Metadata:
major_brand : qt
minor_version : 512
compatible_brands: qt
creation_time : 2020-02-29T22:07:42.000000Z
encoder : Lavf58.58.100
Duration: 00:00:20.05, start: 0.000000, bitrate: 133544 kb/s
Stream #0:0: Video: dvvideo (dvh6 / 0x36687664), yuv422p(bt709, top first), 1280x1080 [SAR 3:2 DAR 16:9], 115084 kb/s, 29.97 fps, 29.97 tbr, 11988 tbn, 29.97 tbc (default)
Metadata:
creation_time : 2020-02-29T22:07:42.000000Z
handler_name : VideoHandler
encoder : Lavc58.106.100 dvvideo
timecode : 00:00:00;00
Stream #0:1(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s (default)
Metadata:
creation_time : 2020-02-29T22:07:42.000000Z
handler_name : Apple Sound Media Handler
Stream #0:2(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s (default)
Metadata:
creation_time : 2020-02-29T22:07:42.000000Z
handler_name : Apple Sound Media Handler
Stream #0:3(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s (default)
Metadata:
creation_time : 2020-02-29T22:07:42.000000Z
handler_name : Apple Sound Media Handler
Stream #0:4(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s (default)
Metadata:
creation_time : 2020-02-29T22:07:42.000000Z
handler_name : Apple Sound Media Handler
Stream #0:5(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s (default)
Metadata:
creation_time : 2020-02-29T22:07:42.000000Z
handler_name : Apple Sound Media Handler
Stream #0:6(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s (default)
Metadata:
creation_time : 2020-02-29T22:07:42.000000Z
handler_name : Apple Sound Media Handler
Stream #0:7(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s (default)
Metadata:
creation_time : 2020-02-29T22:07:42.000000Z
handler_name : Apple Sound Media Handler
Stream #0:8(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s (default)
Metadata:
creation_time : 2020-02-29T22:07:42.000000Z
handler_name : Apple Sound Media Handler
Stream #0:9(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s (default)
Metadata:
creation_time : 2020-02-29T22:07:42.000000Z
handler_name : Apple Sound Media Handler
Stream #0:10(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s (default)
Metadata:
creation_time : 2020-02-29T22:07:42.000000Z
handler_name : Apple Sound Media Handler
Stream #0:11(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s (default)
Metadata:
creation_time : 2020-02-29T22:07:42.000000Z
handler_name : Apple Sound Media Handler
Stream #0:12(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s (default)
Metadata:
creation_time : 2020-02-29T22:07:42.000000Z
handler_name : Apple Sound Media Handler
Stream #0:13(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s (default)
Metadata:
creation_time : 2020-02-29T22:07:42.000000Z
handler_name : Apple Sound Media Handler
Stream #0:14(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s (default)
Metadata:
creation_time : 2020-02-29T22:07:42.000000Z
handler_name : Apple Sound Media Handler
Stream #0:15(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s (default)
Metadata:
creation_time : 2020-02-29T22:07:42.000000Z
handler_name : Apple Sound Media Handler
Stream #0:16(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s (default)
Metadata:
creation_time : 2020-02-29T22:07:42.000000Z
handler_name : Apple Sound Media Handler
Stream #0:17(eng): Data: none (tmcd / 0x64636D74), 0 kb/s
Metadata:
creation_time : 2020-02-29T22:07:42.000000Z
handler_name : VideoHandler
timecode : 00:00:00;00
Unsupported codec with id 0 for input stream 17
and here's ffprobe from the input file:
ffprobe version N-99345-g904ab5365c Copyright (c) 2007-2020 the FFmpeg developers
built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)
configuration: --enable-filter=qrrabbit --enable-opengl --enable-gpl --enable-libx264 --extra-libs='-lqrencode -lpthread'
libavutil 56. 59.100 / 56. 59.100
libavcodec 58.106.100 / 58.106.100
libavformat 58. 58.100 / 58. 58.100
libavdevice 58. 11.102 / 58. 11.102
libavfilter 7. 87.100 / 7. 87.100
libswscale 5. 8.100 / 5. 8.100
libswresample 3. 8.100 / 3. 8.100
libpostproc 55. 8.100 / 55. 8.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mov':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2020-02-29T22:07:42.000000Z
Duration: 00:00:20.05, start: 0.000000, bitrate: 133935 kb/s
Stream #0:0(eng): Video: dvvideo (dvh6 / 0x36687664), yuv422p(bt709, top coded first (swapped)), 1280x1080 [SAR 3:2 DAR 16:9], 115084 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 29.97 tbc (default)
Metadata:
creation_time : 2020-02-29T22:07:42.000000Z
handler_name : Apple Video Media Handler
encoder : DVCPRO HD 1080i60
timecode : 00:00:00;00
Stream #0:1(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s (default)
Metadata:
creation_time : 2020-02-29T22:07:42.000000Z
handler_name : Apple Sound Media Handler
timecode : 00:00:00;00
Stream #0:2(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s (default)
Metadata:
creation_time : 2020-02-29T22:07:42.000000Z
handler_name : Apple Sound Media Handler
timecode : 00:00:00;00
Stream #0:3(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s (default)
Metadata:
creation_time : 2020-02-29T22:07:42.000000Z
handler_name : Apple Sound Media Handler
timecode : 00:00:00;00
Stream #0:4(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s (default)
Metadata:
creation_time : 2020-02-29T22:07:42.000000Z
handler_name : Apple Sound Media Handler
timecode : 00:00:00;00
Stream #0:5(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s (default)
Metadata:
creation_time : 2020-02-29T22:07:42.000000Z
handler_name : Apple Sound Media Handler
timecode : 00:00:00;00
Stream #0:6(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s (default)
Metadata:
creation_time : 2020-02-29T22:07:42.000000Z
handler_name : Apple Sound Media Handler
timecode : 00:00:00;00
Stream #0:7(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s (default)
Metadata:
creation_time : 2020-02-29T22:07:42.000000Z
handler_name : Apple Sound Media Handler
timecode : 00:00:00;00
Stream #0:8(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s (default)
Metadata:
creation_time : 2020-02-29T22:07:42.000000Z
handler_name : Apple Sound Media Handler
timecode : 00:00:00;00
Stream #0:9(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s (default)
Metadata:
creation_time : 2020-02-29T22:07:42.000000Z
handler_name : Apple Sound Media Handler
timecode : 00:00:00;00
Stream #0:10(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s (default)
Metadata:
creation_time : 2020-02-29T22:07:42.000000Z
handler_name : Apple Sound Media Handler
timecode : 00:00:00;00
Stream #0:11(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s (default)
Metadata:
creation_time : 2020-02-29T22:07:42.000000Z
handler_name : Apple Sound Media Handler
timecode : 00:00:00;00
Stream #0:12(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s (default)
Metadata:
creation_time : 2020-02-29T22:07:42.000000Z
handler_name : Apple Sound Media Handler
timecode : 00:00:00;00
Stream #0:13(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s (default)
Metadata:
creation_time : 2020-02-29T22:07:42.000000Z
handler_name : Apple Sound Media Handler
timecode : 00:00:00;00
Stream #0:14(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s (default)
Metadata:
creation_time : 2020-02-29T22:07:42.000000Z
handler_name : Apple Sound Media Handler
timecode : 00:00:00;00
Stream #0:15(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s (default)
Metadata:
creation_time : 2020-02-29T22:07:42.000000Z
handler_name : Apple Sound Media Handler
timecode : 00:00:00;00
Stream #0:16(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s (default)
Metadata:
creation_time : 2020-02-29T22:07:42.000000Z
handler_name : Apple Sound Media Handler
timecode : 00:00:00;00
Stream #0:17(eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
Metadata:
creation_time : 2020-02-29T22:07:42.000000Z
handler_name : Time Code Media Handler
timecode : 00:00:00;00
Unsupported codec with id 0 for input stream 17
Map all non-video streams conditionally (i.e. include if present). Outputs from complex filtergraphs are automatically mapped to the first output so manual mapping is not required. Copy all streams except the video. You can use a single overlay instance for multiple time ranges.
ffmpeg -i in.mov -i icon.png -filter_complex "[0][1]overlay=5:21:enable='between(t,2,3)+between(t,4,5)+between(t,6,8)'" -map 0:a? -map 0:s? -pix_fmt yuv422p -r 30000/1001 -c copy -c:v dvvideo -b:v 115084915 -maxrate 115084915 -minrate 115084915 -top 1 -color_primaries bt709 -color_trc bt709 -colorspace bt709 -vtag dvh6 -y out.mov

Rematrix is needed between 10 channels and mono but there is not enough information to do it

I've been fighting for a number of days now trying to get FFmpeg working with combining several audio files at specific times into one file. So my idea was to generate silence up to the time i want to play a sound.Then merge the audio together with a filter. The below code works when I have five or less files, but seems to fall apart. What I'm trying
ffmpeg \
-i "tutorial_bass/C-maj/TutorialBassJR.wav" \
-i "tutorial_drums/TutorialDrumsJR.wav" \
-i "tutorial_drums/TutorialDrumsTU.wav" \
-i "tutorial_bass/C-maj/TutorialBassTU.wav" \
-i "tutorial_drums/TutorialDrumsTU.wav" \
-i "tutorial_drums/TutorialDrumsTD.wav" \
-i "tutorial_bass/C-maj/TutorialBassTD.wav" \
-i "tutorial_drums/TutorialDrumsTD.wav" \
-i "tutorial_drums/TutorialDrumsTR.wav" \
-i "tutorial_bass/C-maj/TutorialBassTR.wav" \
-i "tutorial_drums/TutorialDrumsTR.wav" \
-i "tutorial_drums/TutorialDrumsWL.wav" \
-i "tutorial_bass/C-maj/TutorialBassWL.wav" \
-i "tutorial_drums/TutorialDrumsWL.wav" \
-i "tutorial_drums/TutorialDrumsWU.wav" \
-i "tutorial_bass/C-maj/TutorialBassWU.wav" \
-i "tutorial_drums/TutorialDrumsWU.wav" \
-i "tutorial_drums/TutorialDrumsWD.wav" \
-i "tutorial_bass/C-maj/TutorialBassWD.wav" \
-i "tutorial_drums/TutorialDrumsWD.wav" \
-i "tutorial_drums/TutorialDrumsJL.wav" \
-i "tutorial_bass/C-maj/TutorialBassJL.wav" \
-i "tutorial_drums/TutorialDrumsJL.wav" \
-i "tutorial_drums/TutorialDrumsJR.wav" \
-i "tutorial_bass/C-maj/TutorialBassJR.wav" \
-i "tutorial_drums/TutorialDrumsJR.wav" \
-i "tutorial_drums/TutorialDrumsJU.wav" \
-i "tutorial_bass/C-maj/TutorialBassJU.wav" \
-i "tutorial_drums/TutorialDrumsJU.wav" \
-i "tutorial_drums/TutorialDrumsJD.wav" \
-i "tutorial_bass/C-maj/TutorialBassJD.wav" \
-i "tutorial_drums/TutorialDrumsJD.wav" \
-i "tutorial_drums/TutorialDrumsTL.wav" \
-i "tutorial_bass/C-maj/TutorialBassTL.wav" \
-i "tutorial_drums/TutorialDrumsTL.wav" \
-i "tutorial_drums/TutorialDrumsTR.wav" \
-i "tutorial_bass/C-maj/TutorialBassTR.wav" \
-i "tutorial_drums/TutorialDrumsTR.wav" \
-i "tutorial_drums/TutorialDrumsTU.wav" \
-i "tutorial_bass/C-maj/TutorialBassTU.wav" \
-i "tutorial_drums/TutorialDrumsTU.wav" \
-i "tutorial_drums/TutorialDrumsTD.wav" \
-i "tutorial_bass/C-maj/TutorialBassTD.wav" \
-i "tutorial_drums/TutorialDrumsTD.wav" \
-filter_complex "\
aevalsrc=0:d=3.0 [d0];\
aevalsrc=0:d=3.0 [d1];\
aevalsrc=0:d=4.5 [d2];\
aevalsrc=0:d=4.5 [d3];\
aevalsrc=0:d=4.5 [d4];\
aevalsrc=0:d=6.0 [d5];\
aevalsrc=0:d=6.0 [d6];\
aevalsrc=0:d=6.0 [d7];\
aevalsrc=0:d=7.5 [d8];\
aevalsrc=0:d=7.5 [d9];\
aevalsrc=0:d=7.5 [d10];\
aevalsrc=0:d=9.0 [d11];\
aevalsrc=0:d=9.0 [d12];\
aevalsrc=0:d=9.0 [d13];\
aevalsrc=0:d=10.5 [d14];\
aevalsrc=0:d=10.5 [d15];\
aevalsrc=0:d=10.5 [d16];\
aevalsrc=0:d=12.0 [d17];\
aevalsrc=0:d=12.0 [d18];\
aevalsrc=0:d=12.0 [d19];\
aevalsrc=0:d=13.5 [d20];\
aevalsrc=0:d=13.5 [d21];\
aevalsrc=0:d=13.5 [d22];\
aevalsrc=0:d=15.0 [d23];\
aevalsrc=0:d=15.0 [d24];\
aevalsrc=0:d=15.0 [d25];\
aevalsrc=0:d=16.5 [d26];\
aevalsrc=0:d=16.5 [d27];\
aevalsrc=0:d=16.5 [d28];\
aevalsrc=0:d=18.0 [d29];\
aevalsrc=0:d=18.0 [d30];\
aevalsrc=0:d=18.0 [d31];\
aevalsrc=0:d=19.5 [d32];\
aevalsrc=0:d=19.5 [d33];\
aevalsrc=0:d=19.5 [d34];\
aevalsrc=0:d=21.0 [d35];\
aevalsrc=0:d=21.0 [d36];\
aevalsrc=0:d=21.0 [d37];\
aevalsrc=0:d=22.5 [d38];\
aevalsrc=0:d=22.5 [d39];\
aevalsrc=0:d=22.5 [d40];\
aevalsrc=0:d=24.0 [d41];\
aevalsrc=0:d=24.0 [d42];\
aevalsrc=0:d=24.0 [d43];\
[d0][0:a]concat=n=2:v=0:a=1 [a0];\
[d1][1:a]concat=n=2:v=0:a=1 [a1];\
[d2][2:a]concat=n=2:v=0:a=1 [a2];\
[d3][3:a]concat=n=2:v=0:a=1 [a3];\
[d4][4:a]concat=n=2:v=0:a=1 [a4];\
[d5][5:a]concat=n=2:v=0:a=1 [a5];\
[d6][6:a]concat=n=2:v=0:a=1 [a6];\
[d7][7:a]concat=n=2:v=0:a=1 [a7];\
[d8][8:a]concat=n=2:v=0:a=1 [a8];\
[d9][9:a]concat=n=2:v=0:a=1 [a9];\
[d10][10:a]concat=n=2:v=0:a=1 [a10];\
[d11][11:a]concat=n=2:v=0:a=1 [a11];\
[d12][12:a]concat=n=2:v=0:a=1 [a12];\
[d13][13:a]concat=n=2:v=0:a=1 [a13];\
[d14][14:a]concat=n=2:v=0:a=1 [a14];\
[d15][15:a]concat=n=2:v=0:a=1 [a15];\
[d16][16:a]concat=n=2:v=0:a=1 [a16];\
[d17][17:a]concat=n=2:v=0:a=1 [a17];\
[d18][18:a]concat=n=2:v=0:a=1 [a18];\
[d19][19:a]concat=n=2:v=0:a=1 [a19];\
[d20][20:a]concat=n=2:v=0:a=1 [a20];\
[d21][21:a]concat=n=2:v=0:a=1 [a21];\
[d22][22:a]concat=n=2:v=0:a=1 [a22];\
[d23][23:a]concat=n=2:v=0:a=1 [a23];\
[d24][24:a]concat=n=2:v=0:a=1 [a24];\
[d25][25:a]concat=n=2:v=0:a=1 [a25];\
[d26][26:a]concat=n=2:v=0:a=1 [a26];\
[d27][27:a]concat=n=2:v=0:a=1 [a27];\
[d28][28:a]concat=n=2:v=0:a=1 [a28];\
[d29][29:a]concat=n=2:v=0:a=1 [a29];\
[d30][30:a]concat=n=2:v=0:a=1 [a30];\
[d31][31:a]concat=n=2:v=0:a=1 [a31];\
[d32][32:a]concat=n=2:v=0:a=1 [a32];\
[d33][33:a]concat=n=2:v=0:a=1 [a33];\
[d34][34:a]concat=n=2:v=0:a=1 [a34];\
[d35][35:a]concat=n=2:v=0:a=1 [a35];\
[d36][36:a]concat=n=2:v=0:a=1 [a36];\
[d37][37:a]concat=n=2:v=0:a=1 [a37];\
[d38][38:a]concat=n=2:v=0:a=1 [a38];\
[d39][39:a]concat=n=2:v=0:a=1 [a39];\
[d40][40:a]concat=n=2:v=0:a=1 [a40];\
[d41][41:a]concat=n=2:v=0:a=1 [a41];\
[d42][42:a]concat=n=2:v=0:a=1 [a42];\
[d43][43:a]concat=n=2:v=0:a=1 [a43];\
[a0][a1][a2][a3][a4][a5][a6][a7][a8][a9][a10][a11][a12][a13][a14][a15][a16][a17][a18][a19]amix=inputs=20:duration=longest [a0-a19];\
[a20][a21][a22][a23][a24][a25][a26][a27][a28][a29][a30][a31][a32][a33][a34][a35][a36][a37][a38][a39]amix=inputs=20:duration=longest [a20-a39];\
[a40][a41][a42][a43]amix=inputs=4:duration=longest [a40-a43];
[a0-a19][a20-a39][a40-a43]amix=inputs=3:duration=longest" -codec:a libmp3lame output.mp3
When I run this command I get:
ffmpeg version 3.3.4 Copyright (c) 2000-2017 the FFmpeg developers
built with Apple LLVM version 8.1.0 (clang-802.0.42)
configuration: --prefix=/usr/local/Cellar/ffmpeg/3.3.4 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-frei0r --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-opencl --enable-videotoolbox --disable-lzma --enable-libopenjpeg --disable-decoder=jpeg2000 --extra-cflags=-I/usr/local/Cellar/openjpeg/2.2.0/include/openjpeg-2.2 --enable-nonfree --enable-vda
libavutil 55. 58.100 / 55. 58.100
libavcodec 57. 89.100 / 57. 89.100
libavformat 57. 71.100 / 57. 71.100
libavdevice 57. 6.100 / 57. 6.100
libavfilter 6. 82.100 / 6. 82.100
libavresample 3. 5. 0 / 3. 5. 0
libswscale 4. 6.100 / 4. 6.100
libswresample 2. 7.100 / 2. 7.100
libpostproc 54. 5.100 / 54. 5.100
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, wav, from 'tutorial_bass/C-maj/TutorialBassJR.wav':
Duration: 00:00:01.50, bitrate: 2822 kb/s
Stream #0:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, wav, from 'tutorial_drums/TutorialDrumsJR.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #1:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #2.0 : stereo
Input #2, wav, from 'tutorial_drums/TutorialDrumsTU.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #2:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #3.0 : stereo
Input #3, wav, from 'tutorial_bass/C-maj/TutorialBassTU.wav':
Duration: 00:00:01.50, bitrate: 2822 kb/s
Stream #3:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #4.0 : stereo
Input #4, wav, from 'tutorial_drums/TutorialDrumsTU.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #4:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Input #5, wav, from 'tutorial_drums/TutorialDrumsTD.wav':
Duration: 00:00:04.50, bitrate: 14112 kb/s
Stream #5:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, 10 channels, flt, 14112 kb/s
Guessed Channel Layout for Input Stream #6.0 : stereo
Input #6, wav, from 'tutorial_bass/C-maj/TutorialBassTD.wav':
Duration: 00:00:01.50, bitrate: 2822 kb/s
Stream #6:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Input #7, wav, from 'tutorial_drums/TutorialDrumsTD.wav':
Duration: 00:00:04.50, bitrate: 14112 kb/s
Stream #7:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, 10 channels, flt, 14112 kb/s
Guessed Channel Layout for Input Stream #8.0 : stereo
Input #8, wav, from 'tutorial_drums/TutorialDrumsTR.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #8:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #9.0 : stereo
Input #9, wav, from 'tutorial_bass/C-maj/TutorialBassTR.wav':
Duration: 00:00:01.50, bitrate: 2822 kb/s
Stream #9:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #10.0 : stereo
Input #10, wav, from 'tutorial_drums/TutorialDrumsTR.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #10:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #11.0 : stereo
Input #11, wav, from 'tutorial_drums/TutorialDrumsWL.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #11:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #12.0 : stereo
Input #12, wav, from 'tutorial_bass/C-maj/TutorialBassWL.wav':
Duration: 00:00:01.50, bitrate: 2822 kb/s
Stream #12:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #13.0 : stereo
Input #13, wav, from 'tutorial_drums/TutorialDrumsWL.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #13:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #14.0 : stereo
Input #14, wav, from 'tutorial_drums/TutorialDrumsWU.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #14:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #15.0 : stereo
Input #15, wav, from 'tutorial_bass/C-maj/TutorialBassWU.wav':
Duration: 00:00:01.50, bitrate: 2822 kb/s
Stream #15:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #16.0 : stereo
Input #16, wav, from 'tutorial_drums/TutorialDrumsWU.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #16:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #17.0 : stereo
Input #17, wav, from 'tutorial_drums/TutorialDrumsWD.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #17:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #18.0 : stereo
Input #18, wav, from 'tutorial_bass/C-maj/TutorialBassWD.wav':
Duration: 00:00:01.50, bitrate: 2822 kb/s
Stream #18:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #19.0 : stereo
Input #19, wav, from 'tutorial_drums/TutorialDrumsWD.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #19:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #20.0 : stereo
Input #20, wav, from 'tutorial_drums/TutorialDrumsJL.wav':
Duration: 00:00:00.75, bitrate: 33869 kb/s
Stream #20:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #21.0 : stereo
Input #21, wav, from 'tutorial_bass/C-maj/TutorialBassJL.wav':
Duration: 00:00:01.51, bitrate: 2822 kb/s
Stream #21:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #22.0 : stereo
Input #22, wav, from 'tutorial_drums/TutorialDrumsJL.wav':
Duration: 00:00:00.75, bitrate: 33869 kb/s
Stream #22:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #23.0 : stereo
Input #23, wav, from 'tutorial_drums/TutorialDrumsJR.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #23:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #24.0 : stereo
Input #24, wav, from 'tutorial_bass/C-maj/TutorialBassJR.wav':
Duration: 00:00:01.50, bitrate: 2822 kb/s
Stream #24:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #25.0 : stereo
Input #25, wav, from 'tutorial_drums/TutorialDrumsJR.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #25:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #26.0 : stereo
Input #26, wav, from 'tutorial_drums/TutorialDrumsJU.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #26:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #27.0 : stereo
Input #27, wav, from 'tutorial_bass/C-maj/TutorialBassJU.wav':
Duration: 00:00:01.50, bitrate: 2822 kb/s
Stream #27:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #28.0 : stereo
Input #28, wav, from 'tutorial_drums/TutorialDrumsJU.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #28:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #29.0 : stereo
Input #29, wav, from 'tutorial_drums/TutorialDrumsJD.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #29:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #30.0 : stereo
Input #30, wav, from 'tutorial_bass/C-maj/TutorialBassJD.wav':
Duration: 00:00:01.50, bitrate: 2822 kb/s
Stream #30:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #31.0 : stereo
Input #31, wav, from 'tutorial_drums/TutorialDrumsJD.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #31:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #32.0 : stereo
Input #32, wav, from 'tutorial_drums/TutorialDrumsTL.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #32:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #33.0 : stereo
Input #33, wav, from 'tutorial_bass/C-maj/TutorialBassTL.wav':
Duration: 00:00:01.50, bitrate: 2822 kb/s
Stream #33:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #34.0 : stereo
Input #34, wav, from 'tutorial_drums/TutorialDrumsTL.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #34:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #35.0 : stereo
Input #35, wav, from 'tutorial_drums/TutorialDrumsTR.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #35:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #36.0 : stereo
Input #36, wav, from 'tutorial_bass/C-maj/TutorialBassTR.wav':
Duration: 00:00:01.50, bitrate: 2822 kb/s
Stream #36:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #37.0 : stereo
Input #37, wav, from 'tutorial_drums/TutorialDrumsTR.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #37:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #38.0 : stereo
Input #38, wav, from 'tutorial_drums/TutorialDrumsTU.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #38:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #39.0 : stereo
Input #39, wav, from 'tutorial_bass/C-maj/TutorialBassTU.wav':
Duration: 00:00:01.50, bitrate: 2822 kb/s
Stream #39:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #40.0 : stereo
Input #40, wav, from 'tutorial_drums/TutorialDrumsTU.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #40:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Input #41, wav, from 'tutorial_drums/TutorialDrumsTD.wav':
Duration: 00:00:04.50, bitrate: 14112 kb/s
Stream #41:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, 10 channels, flt, 14112 kb/s
Guessed Channel Layout for Input Stream #42.0 : stereo
Input #42, wav, from 'tutorial_bass/C-maj/TutorialBassTD.wav':
Duration: 00:00:01.50, bitrate: 2822 kb/s
Stream #42:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Input #43, wav, from 'tutorial_drums/TutorialDrumsTD.wav':
Duration: 00:00:04.50, bitrate: 14112 kb/s
Stream #43:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, 10 channels, flt, 14112 kb/s
File 'output.mp3' already exists. Overwrite ? [y/N] y
Stream mapping:
Stream #0:0 (pcm_f32le) -> concat:in1:a0
Stream #1:0 (pcm_f32le) -> concat:in1:a0
Stream #2:0 (pcm_f32le) -> concat:in1:a0
Stream #3:0 (pcm_f32le) -> concat:in1:a0
Stream #4:0 (pcm_f32le) -> concat:in1:a0
Stream #5:0 (pcm_f32le) -> concat:in1:a0
Stream #6:0 (pcm_f32le) -> concat:in1:a0
Stream #7:0 (pcm_f32le) -> concat:in1:a0
Stream #8:0 (pcm_f32le) -> concat:in1:a0
Stream #9:0 (pcm_f32le) -> concat:in1:a0
Stream #10:0 (pcm_f32le) -> concat:in1:a0
Stream #11:0 (pcm_f32le) -> concat:in1:a0
Stream #12:0 (pcm_f32le) -> concat:in1:a0
Stream #13:0 (pcm_f32le) -> concat:in1:a0
Stream #14:0 (pcm_f32le) -> concat:in1:a0
Stream #15:0 (pcm_f32le) -> concat:in1:a0
Stream #16:0 (pcm_f32le) -> concat:in1:a0
Stream #17:0 (pcm_f32le) -> concat:in1:a0
Stream #18:0 (pcm_f32le) -> concat:in1:a0
Stream #19:0 (pcm_f32le) -> concat:in1:a0
Stream #20:0 (pcm_f32le) -> concat:in1:a0
Stream #21:0 (pcm_f32le) -> concat:in1:a0
Stream #22:0 (pcm_f32le) -> concat:in1:a0
Stream #23:0 (pcm_f32le) -> concat:in1:a0
Stream #24:0 (pcm_f32le) -> concat:in1:a0
Stream #25:0 (pcm_f32le) -> concat:in1:a0
Stream #26:0 (pcm_f32le) -> concat:in1:a0
Stream #27:0 (pcm_f32le) -> concat:in1:a0
Stream #28:0 (pcm_f32le) -> concat:in1:a0
Stream #29:0 (pcm_f32le) -> concat:in1:a0
Stream #30:0 (pcm_f32le) -> concat:in1:a0
Stream #31:0 (pcm_f32le) -> concat:in1:a0
Stream #32:0 (pcm_f32le) -> concat:in1:a0
Stream #33:0 (pcm_f32le) -> concat:in1:a0
Stream #34:0 (pcm_f32le) -> concat:in1:a0
Stream #35:0 (pcm_f32le) -> concat:in1:a0
Stream #36:0 (pcm_f32le) -> concat:in1:a0
Stream #37:0 (pcm_f32le) -> concat:in1:a0
Stream #38:0 (pcm_f32le) -> concat:in1:a0
Stream #39:0 (pcm_f32le) -> concat:in1:a0
Stream #40:0 (pcm_f32le) -> concat:in1:a0
Stream #41:0 (pcm_f32le) -> concat:in1:a0
Stream #42:0 (pcm_f32le) -> concat:in1:a0
Stream #43:0 (pcm_f32le) -> concat:in1:a0
amix -> Stream #0:0 (libmp3lame)
Press [q] to stop, [?] for help
[auto_resampler_5 # 0x7fdc19641e00] [SWR # 0x7fdc1c286e00] Rematrix is needed between 10 channels and mono but there is not enough information to do it
[auto_resampler_5 # 0x7fdc19641e00] Failed to configure output pad on auto_resampler_5
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #43:0
Conversion failed!
Any ideas what I'm doing wrong or other approaches I could take to do this?
So I found the solution to my problem. I assumed that the number of files or something was increasing the number of channels. Turns out there was just one Bizarre wav file in the mix that had 10 mono channels, and ffmpeg was not having it. Opening Audacity and removing all of the other channels solved the problem.
Below was the input line I should have paid attention to earlier
Input #43, wav, from 'tutorial_drums/TutorialDrumsTD.wav':
Duration: 00:00:04.50, bitrate: 14112 kb/s
Stream #43:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, 10 channels, flt, 14112 kb/s
File 'output.mp3' already exists. Overwrite ? [y/N] y

Resources