[FFmpeg-user] concat two XDCAM MXFs with multiple audio streams
James Heliker
james.heliker at gmail.com
Wed Jul 1 21:53:34 CEST 2015
Hey All -
Ran into another issue. In trying to concatenate two XDCAM MXFs with 8
channels of audio each, I'm getting "Could not write header for output
file #0 (incorrect codec parameters ?): Error number -1 occurred" - I
think because its trying to make the video be the 7th stream in the
output. I don't know how to change it other than the order of map
parameters - but I'm only using two - and video if the first one.
Thanks again for any help!!
C:\ffmpeg.exe -i slate_output.mxf -i black_output.mxf -filter_complex
"[0:0][0:1][0:2][0:3][0:4][0:5][0:6][0:7][0:8] [1:0][1:1][1:2][1:3][1:4]
[1:5][1:6][1:7][1:8]concat=n=2:v=1:a=8 [v][a]" -map "[v]" -map "[a]" -r
29.97 -pix_fmt yuv422p -vcodec mpeg2video -non_linear_quant 1 -flags
+ildct+ilme -top 1-dc 10 -intra_vlc 1 -qmax 3 -lmin "1*QP2LAMBDA" -vtag
xd5c -rc_max_vbv_use 1 -rc_min_vbv_use 1 -g 15 -bf 2 -b:v 50M -minrate
50M -maxrate 50M -bufsize 8M -acodec pcm_s24le -ar 48000 -timecode
00:59:58:00 concattest.mxf
ffmpeg version 2.5.2 Copyright (c) 2000-2014 the FFmpeg developers
built on Dec 30 2014 17:13:24 with gcc 4.9.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r
--enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b
--enable-libcaca --
enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc
--enable-lib
modplug --enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrw
b --enable-libopenjpeg --enable-libopus --enable-librtmp
--enable-libschroedinge
r --enable-libsoxr --enable-libspeex --enable-libtheora
--enable-libtwolame --en
able-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-libvorbis
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264
--enable-
libx265 --enable-libxavs --enable-libxvid --enable-lzma
--enable-decklink --enab
le-zlib
libavutil 54. 15.100 / 54. 15.100
libavcodec 56. 13.100 / 56. 13.100
libavformat 56. 15.102 / 56. 15.102
libavdevice 56. 3.100 / 56. 3.100
libavfilter 5. 2.103 / 5. 2.103
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
[mxf @ 0418a060] index entry 8 + TemporalOffset 1 = 9, which is out of
bounds
Guessed Channel Layout for Input Stream #0.1 : mono
Guessed Channel Layout for Input Stream #0.2 : mono
Guessed Channel Layout for Input Stream #0.3 : mono
Guessed Channel Layout for Input Stream #0.4 : mono
Guessed Channel Layout for Input Stream #0.5 : mono
Guessed Channel Layout for Input Stream #0.6 : mono
Guessed Channel Layout for Input Stream #0.7 : mono
Guessed Channel Layout for Input Stream #0.8 : mono
Input #0, mxf, from 'slate_output.mxf':
Metadata:
uid : adab4424-2f25-4dc7-92ff-29bd000c0000
generation_uid : adab4424-2f25-4dc7-92ff-29bd000c0001
company_name : FFmpeg
product_name : OP1a Muxer
product_version : 56.15.102
product_uid : adab4424-2f25-4dc7-92ff-29bd000c0002
modification_date: 0000-01-01 00:00:00
material_package_uid: 52947134-ac53-1014-0052-947134ac5300
timecode : 00:00:00:00
Duration: 00:00:00.30, start: 0.000000, bitrate: 53687 kb/s
Stream #0:0: Video: mpeg2video (4:2:2), yuv422p(tv), 1920x1080 [SAR
1:1 DAR
16:9], 50000 kb/s, 29.97 fps, 29.97 tbr, 29.97 tbn, 59.94 tbc
Metadata:
file_package_uid: 52947134-ac53-1014-0052-947134ac5301
Stream #0:1: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit),
1152 kb/s
Metadata:
file_package_uid: 52947134-ac53-1014-0052-947134ac5301
Stream #0:2: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit),
1152 kb/s
Metadata:
file_package_uid: 52947134-ac53-1014-0052-947134ac5301
Stream #0:3: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit),
1152 kb/s
Metadata:
file_package_uid: 52947134-ac53-1014-0052-947134ac5301
Stream #0:4: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit),
1152 kb/s
Metadata:
file_package_uid: 52947134-ac53-1014-0052-947134ac5301
Stream #0:5: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit),
1152 kb/s
Metadata:
file_package_uid: 52947134-ac53-1014-0052-947134ac5301
Stream #0:6: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit),
1152 kb/s
Metadata:
file_package_uid: 52947134-ac53-1014-0052-947134ac5301
Stream #0:7: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit),
1152 kb/s
Metadata:
file_package_uid: 52947134-ac53-1014-0052-947134ac5301
Stream #0:8: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit),
1152 kb/s
Metadata:
file_package_uid: 52947134-ac53-1014-0052-947134ac5301
[mxf @ 0424a0e0] index entry 5 + TemporalOffset 1 = 6, which is out of
bounds
Guessed Channel Layout for Input Stream #1.1 : mono
Guessed Channel Layout for Input Stream #1.2 : mono
Guessed Channel Layout for Input Stream #1.3 : mono
Guessed Channel Layout for Input Stream #1.4 : mono
Guessed Channel Layout for Input Stream #1.5 : mono
Guessed Channel Layout for Input Stream #1.6 : mono
Guessed Channel Layout for Input Stream #1.7 : mono
Guessed Channel Layout for Input Stream #1.8 : mono
Input #1, mxf, from 'black_output.mxf':
Metadata:
uid : adab4424-2f25-4dc7-92ff-29bd000c0000
generation_uid : adab4424-2f25-4dc7-92ff-29bd000c0001
company_name : FFmpeg
product_name : OP1a Muxer
product_version : 56.15.102
product_uid : adab4424-2f25-4dc7-92ff-29bd000c0002
modification_date: 0000-01-01 00:00:00
material_package_uid: 52947134-c4c3-7fb5-0052-947134c4c300
timecode : 00:00:00:00
Duration: 00:00:00.20, start: 0.000000, bitrate: 50187 kb/s
Stream #1:0: Video: mpeg2video (4:2:2), yuv422p(tv), 1920x1080 [SAR
1:1 DAR
16:9], 50000 kb/s, 29.97 fps, 29.97 tbr, 29.97 tbn, 59.94 tbc
Metadata:
file_package_uid: 52947134-c4c3-7fb5-0052-947134c4c301
Stream #1:1: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit),
1152 kb/s
Metadata:
file_package_uid: 52947134-c4c3-7fb5-0052-947134c4c301
Stream #1:2: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit),
1152 kb/s
Metadata:
file_package_uid: 52947134-c4c3-7fb5-0052-947134c4c301
Stream #1:3: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit),
1152 kb/s
Metadata:
file_package_uid: 52947134-c4c3-7fb5-0052-947134c4c301
Stream #1:4: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit),
1152 kb/s
Metadata:
file_package_uid: 52947134-c4c3-7fb5-0052-947134c4c301
Stream #1:5: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit),
1152 kb/s
Metadata:
file_package_uid: 52947134-c4c3-7fb5-0052-947134c4c301
Stream #1:6: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit),
1152 kb/s
Metadata:
file_package_uid: 52947134-c4c3-7fb5-0052-947134c4c301
Stream #1:7: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit),
1152 kb/s
Metadata:
file_package_uid: 52947134-c4c3-7fb5-0052-947134c4c301
Stream #1:8: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit),
1152 kb/s
Metadata:
file_package_uid: 52947134-c4c3-7fb5-0052-947134c4c301
File 'concattest.mxf' already exists. Overwrite ? [y/N] y
[mxf @ 042097a0] there must be exactly one video stream and it must be
the first
one
Output #0, mxf, to 'concattest.mxf':
Metadata:
uid : adab4424-2f25-4dc7-92ff-29bd000c0000
generation_uid : adab4424-2f25-4dc7-92ff-29bd000c0001
company_name : FFmpeg
product_name : OP1a Muxer
product_version : 56.15.102
product_uid : adab4424-2f25-4dc7-92ff-29bd000c0002
modification_date: 0000-01-01 00:00:00
material_package_uid: 52947134-ac53-1014-0052-947134ac5300
timecode : 00:59:58:00
encoder : Lavf56.15.102
Stream #0:0: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s
Metadata:
encoder : Lavc56.13.100 pcm_s24le
Stream #0:1: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s
Metadata:
encoder : Lavc56.13.100 pcm_s24le
Stream #0:2: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s
Metadata:
encoder : Lavc56.13.100 pcm_s24le
Stream #0:3: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s
Metadata:
encoder : Lavc56.13.100 pcm_s24le
Stream #0:4: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s
Metadata:
encoder : Lavc56.13.100 pcm_s24le
Stream #0:5: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s
Metadata:
encoder : Lavc56.13.100 pcm_s24le
Stream #0:6: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s
Metadata:
encoder : Lavc56.13.100 pcm_s24le
Stream #0:7: Video: mpeg2video (xd5c / 0x63356478), yuv422p,
1920x1080 [SAR
1:1 DAR 16:9], q=2-3, 50000 kb/s, 29.97 fps, 29.97 tbn, 29.97 tbc (default)
Metadata:
encoder : Lavc56.13.100 mpeg2video
Stream #0:8: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s
Metadata:
encoder : Lavc56.13.100 pcm_s24le
Stream mapping:
Stream #0:0 (mpeg2video) -> concat:in0:v0
Stream #0:1 (pcm_s24le) -> concat:in0:a0
Stream #0:2 (pcm_s24le) -> concat:in0:a1
Stream #0:3 (pcm_s24le) -> concat:in0:a2
Stream #0:4 (pcm_s24le) -> concat:in0:a3
Stream #0:5 (pcm_s24le) -> concat:in0:a4
Stream #0:6 (pcm_s24le) -> concat:in0:a5
Stream #0:7 (pcm_s24le) -> concat:in0:a6
Stream #0:8 (pcm_s24le) -> concat:in0:a7
Stream #1:0 (mpeg2video) -> concat:in1:v0
Stream #1:1 (pcm_s24le) -> concat:in1:a0
Stream #1:2 (pcm_s24le) -> concat:in1:a1
Stream #1:3 (pcm_s24le) -> concat:in1:a2
Stream #1:4 (pcm_s24le) -> concat:in1:a3
Stream #1:5 (pcm_s24le) -> concat:in1:a4
Stream #1:6 (pcm_s24le) -> concat:in1:a5
Stream #1:7 (pcm_s24le) -> concat:in1:a6
Stream #1:8 (pcm_s24le) -> concat:in1:a7
concat:out:a1 -> Stream #0:0 (pcm_s24le)
concat:out:a2 -> Stream #0:1 (pcm_s24le)
concat:out:a3 -> Stream #0:2 (pcm_s24le)
concat:out:a4 -> Stream #0:3 (pcm_s24le)
concat:out:a5 -> Stream #0:4 (pcm_s24le)
concat:out:a6 -> Stream #0:5 (pcm_s24le)
concat:out:a7 -> Stream #0:6 (pcm_s24le)
concat:out:v0 -> Stream #0:7 (mpeg2video)
concat:out:a0 -> Stream #0:8 (pcm_s24le)
Could not write header for output file #0 (incorrect codec parameters
?): Error
number -1 occurred
--
Kind Regards,
- James Heliker
More information about the ffmpeg-user
mailing list