[FFmpeg-user] concat one video file and multiple audio files
ropiafoldetnezi
ropiafoldetnezi at gmail.com
Thu Jan 11 23:57:11 EET 2018
hi,
this is my first try with ffmpeg, i would like to create av file from
multiple sources:
1 video file (.mp4)
6 separate audio files (.mps)
i would concat the audio files and combine them with the video:
video stream: video1,mp4
audio stream: audio1.mp3 + audio2.mp3 + ... audio6.mp3
lenght of audio stream match the length of the video
the command i tried (on windows 10):
ffmpeg -i video1.mp4 -i f1.mp3 -i n1.mp3 -i f2.mp3 -i m1.mp3 -i f3.mp3 -i
v1.mp3 -filter_complex
"[0:v:0][1:a:0][2:a:0][3:a:0][4:a:0][5:a:0][6:a:0]concat=n=7:v=1:a=1[outv][outa]"
-map "[outv]" -map "[outa]" output/v1_n1_m1_v1_t_02.mp4
the result i got:
ffmpeg version N-89773-g7fcbebbeaf Copyright (c) 2000-2018 the FFmpeg
developers
built with gcc 7.2.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-sdl2
--enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv
--enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr
--enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2
--enable-libzimg --enable-lzma --enable-zlib --enable-gmp
--enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc
--enable-libmysofa --enable-libspeex --enable-amf --enable-cuda
--enable-cuvid --enable-d3d11va --enable-nvenc --enable-dxva2
--enable-avisynth --enable-libmfx
libavutil 56. 7.100 / 56. 7.100
libavcodec 58. 9.100 / 58. 9.100
libavformat 58. 3.100 / 58. 3.100
libavdevice 58. 0.100 / 58. 0.100
libavfilter 7. 11.101 / 7. 11.101
libswscale 5. 0.101 / 5. 0.101
libswresample 3. 0.101 / 3. 0.101
libpostproc 55. 0.100 / 55. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video1.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42mp41
creation_time : 2018-01-11T10:20:13.000000Z
Duration: 00:00:34.16, start: 0.000000, bitrate: 3032 kb/s
Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv,
bt709), 1920x1080, 3027 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc (default)
Metadata:
creation_time : 2018-01-11T10:20:13.000000Z
handler_name : Alias Data Handler
encoder : AVC Coding
[mp3 @ 0000016f74e52380] Estimating duration from bitrate, this may be
inaccurate
Input #1, mp3, from 'f1.mp3':
Metadata:
date : 2018-01-11 11:19
Duration: 00:00:08.10, start: 0.000000, bitrate: 140 kb/s
Stream #1:0: Audio: mp3, 48000 Hz, stereo, s16p, 128 kb/s
[mp3 @ 0000016f74e424c0] Estimating duration from bitrate, this may be
inaccurate
Input #2, mp3, from 'n1.mp3':
Metadata:
date : 2018-01-11 11:19
Duration: 00:00:02.10, start: 0.000000, bitrate: 177 kb/s
Stream #2:0: Audio: mp3, 48000 Hz, stereo, s16p, 128 kb/s
[mp3 @ 0000016f74e85040] Estimating duration from bitrate, this may be
inaccurate
Input #3, mp3, from 'f2.mp3':
Metadata:
date : 2018-01-11 11:19
Duration: 00:00:08.10, start: 0.000000, bitrate: 140 kb/s
Stream #3:0: Audio: mp3, 48000 Hz, stereo, s16p, 128 kb/s
[mp3 @ 0000016f74ea4e40] Estimating duration from bitrate, this may be
inaccurate
Input #4, mp3, from 'm1.mp3':
Metadata:
date : 2018-01-11 11:19
Duration: 00:00:03.10, start: 0.000000, bitrate: 160 kb/s
Stream #4:0: Audio: mp3, 48000 Hz, stereo, s16p, 128 kb/s
[mp3 @ 0000016f74f0bb00] Estimating duration from bitrate, this may be
inaccurate
Input #5, mp3, from 'f3.mp3':
Metadata:
date : 2018-01-11 11:19
Duration: 00:00:08.14, start: 0.000000, bitrate: 140 kb/s
Stream #5:0: Audio: mp3, 48000 Hz, stereo, s16p, 128 kb/s
[mp3 @ 0000016f74ef5dc0] Estimating duration from bitrate, this may be
inaccurate
Input #6, mp3, from 'v1.mp3':
Metadata:
date : 2018-01-11 11:19
Duration: 00:00:05.07, start: 0.000000, bitrate: 145 kb/s
Stream #6:0: Audio: mp3, 48000 Hz, stereo, s16p, 128 kb/s
the error msg:
Stream specifier ':a:0' in filtergraph description
[0:v:0][1:a:0][2:a:0][3:a:0][4:a:0][5:a:0][6:a:0]concat=n=7:v=1:a=1[outv][outa]
matches no streams.
i also tried with less files but no success, also tried with [0:0][1:0] and
[0:v][0:a] syntax for filter_complex, did not worked;
any help appriciated
--
bye
bal
More information about the ffmpeg-user
mailing list