Not sure how to fix this problem - attempting to convert from stereo
audio to 4 ch, adding 2 empty channels to make up the 4.
Any help would be much appreciated...
ffmbc -i 201112165232EU-SPAIN-ZAPATEROY_RAJOY.mpg -shortest -ar 48000 -
f s16le -i /dev/zero -vf
colormatrix=bt601:bt709,scale=1440:1080:interl=1 -vcodec dvvideo -
pix_fmt yuv422p -tff -aspect 16:9 -map_audio_channel 0.1.0.0.1.0 -
map_audio_channel 0.1.1.0.1.1 -map_audio_channel 1.0.0.0.1.2 -
map_audio_channel 1.0.0.0.1.3 -y out.mxf
FFmbc version 0.7-rc4
Copyright (c) 2008-2011 Baptiste Coudurier and the FFmpeg developers
Input #0, mpeg, from '201112165232EU-SPAIN-ZAPATEROY_RAJOY.mpg':
Duration: 00:00:57.21, start: 0.270644, bitrate: 7117 kb/s
Stream #0.0[0x1e0](und): Video: mpeg2video (Main), yuv420p,
720x576i tff [PAR 64:45 DAR 16:9], 6500 kb/s, 25.00 fps
Stream #0.1[0x1c0](und): Audio: mp2, 48000 Hz, stereo, s16, 256 kb/
s
[s16le @ 0x2d07ce0] Estimating duration from bitrate, this may be
inaccurate
Input #1, s16le, from '/dev/zero':
Duration: N/A, start: 0.000000, bitrate: 768 kb/s
Stream #1.0(und): Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768
kb/s
[colormatrix @ 0x2d05040] bt601 -> bt709
[scale @ 0x2d0d160] w:720 h:576 fmt:yuv420p -> w:1440 h:1080
fmt:yuv422p flags:0x4
Output #0, mxf, to 'out.mxf':
Metadata:
encoder: FFmbc 0.7
Stream #0.0(und): Video: dvvideo, yuv422p, 1440x1080p [PAR 4:3 DAR
16:9], 115200 kb/s, 25.00 fps
Stream #0.1(und): Audio: pcm_s16le, 48000 Hz, 4 channels, s16,
3072 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1 [channel: 0 -> 0]
Stream #0.1 -> #0.1 [channel: 1 -> 1]
Stream #1.0 -> #0.1 [channel: 0 -> 2]
Stream #1.0 -> #0.1 [channel: 0 -> 3]
Press [q] to stop, [?] for help
Input stream audio configuration changed, aborting
The audio stream in your file changes configuration mid-stream and
ffmbc is aborting.
If that's not the case, then I need your file to investigate.
--
Baptiste COUDURIER
Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer http://www.ffmpeg.org
Sorry Baptiste, but I'm going to disagree.
Dave, your silence must be the same as your mpg. Your mpg is 2 channel s16le:
> > Stream #0.1[0x1c0](und): Audio: mp2, 48000 Hz, stereo, s16, 256 kb/s [s16le @ 0x2d07ce0]
So your silence also has to be:
-ar 48000 -ac 2 -f s16le -i /dev/zero
You're creating mono silence, and you get that error when you're doing
the map_audio_channel.
I don't know if this is a bug or a feature, nor can I remember if I've
written about it on our wiki, but I've implemented this work around in
transcode scripts for some months.
--
Mark Himsley
Humm, ok, but still ffmbc thinks so.
> Dave, your silence must be the same as your mpg. Your mpg is 2 channel s16le:
>
>>> Stream #0.1[0x1c0](und): Audio: mp2, 48000 Hz, stereo, s16, 256 kb/s [s16le @ 0x2d07ce0]
>
> So your silence also has to be:
>
> -ar 48000 -ac 2 -f s16le -i /dev/zero
>
> You're creating mono silence, and you get that error when you're doing
> the map_audio_channel.
>
> I don't know if this is a bug or a feature, nor can I remember if I've
> written about it on our wiki, but I've implemented this work around in
> transcode scripts for some months.
That's a bug. I'll investigate.
Hi Baptiste.
Thanks for taking a look.
Mark, I didn't particularly look on our wiki re "rules for
manufacturing silence" - just assumed that creating a single silence
channel and mapping it multiple times would do.
Rgds,
--Dave.