Comment #4 on issue 67 by baptiste...@gmail.com: FFmbc 0.7 4 channels AAC
encoding bug
http://code.google.com/p/ffmbc/issues/detail?id=67
It's most likely a bug associated with 4 channels audio encoding and aac
encoders that do not support the channel layout used.
I think you should form stereo pairs in the output file, so try the
following mapping instead: -map_audio_channel 0:1:0:0:1:0
-map_audio_channel 0:2:0:0:1:1 -map_audio_channel 0:3:0:0:2:0
-map_audio_channel 0:4:0:0:2:1! It works for me even with 1x8 ch input IMX
transoceded to 4 stereo pairs mp4.
regards, Mihaly
I also noticed a bug about multiple channels encoding:
if I want to add more than one stereo pair to the output mp4 file, for the
first "-newaudio -acodec libfaac -ab 96k" it ignores the audio bitrate and
defaults to 64k.
So the input is 1x8 ch layout:
Stream #0.0(und): Video: mpeg2video (4:2:2), yuv422p, 720x608i tff [PAR
152:135 DAR 4:3], 50000 kb/s, 25.00 fps
Stream #0.1(und): Audio: pcm_s16le, 48000 Hz, 8 channels, s16, 6144 kb/s
commandline1:
./ffmbc -i /srv/Acquired/subfolder/TDOQ16BIT1X8AES.MXF -y
-map_audio_channel 0:1:0:0:1:0
-map_audio_channel 0:1:1:0:1:1
-map_audio_channel 0:1:2:0:2:0
-map_audio_channel 0:1:3:0:2:1
-map_audio_channel 0:1:4:0:3:0
-map_audio_channel 0:1:5:0:3:1
-vf yadif=0:-1 -s 640x480 -vcodec libx264 -b 1500000 -coder 1 -refs 6
-flags +loop+slice -trellis 2 -g 1 -threads 8 -dc 10 -me umh -profile Main
-acodec libfaac -ac 2 -ab 96k -ar 48000 /tmp/AM44495F.mp4
-newaudio -acodec libfaac -ac 2 -ab 96k -ar 48000
-newaudio -acodec libfaac -ac 2 -ab 96k -ar 48000
Output1 is the following:
Output #0, mp4, to '/tmp/AM44495F.mp4':
Metadata:
encoder: FFmbc 0.7
Stream #0.0(und): Video: libx264, yuv420p, 640x480p [PAR 1:1 DAR 4:3],
1500 kb/s, 25.00 fps
Stream #0.1(und): Audio: libfaac, 48000 Hz, 2 channels, s16, 96 kb/s
Stream #0.2(und): Audio: libfaac, 48000 Hz, 2 channels, s16, 64 kb/s
Stream #0.3(und): Audio: libfaac, 48000 Hz, 2 channels, s16, 96 kb/s
Commandline2 (using -an in the main cmdline and 3 times -newaudio after
specifying the output file):
./ffmbc -i /srv/Acquired/subfolder/TDOQ16BIT1X8AES.MXF -y
-map_audio_channel 0:1:0:0:1:0
-map_audio_channel 0:1:1:0:1:1
-map_audio_channel 0:1:2:0:2:0
-map_audio_channel 0:1:3:0:2:1
-map_audio_channel 0:1:4:0:3:0
-map_audio_channel 0:1:5:0:3:1
-vf yadif=0:-1 -s 640x480 -vcodec libx264 -b 1500000 -coder 1 -refs 6
-flags +loop+slice -trellis 2 -g 1 -threads 8 -dc 10 -me umh -profile Main
-an /tmp/AM44495F.mp4
-newaudio -acodec libfaac -ac 2 -ab 96k -ar 48000
-newaudio -acodec libfaac -ac 2 -ab 96k -ar 48000
-newaudio -acodec libfaac -ac 2 -ab 96k -ar 48000
Output2 is the following:
Output #0, mp4, to '/tmp/AM44495F.mp4':
Metadata:
encoder: FFmbc 0.7
Stream #0.0(und): Video: libx264, yuv420p, 640x480p [PAR 1:1 DAR 4:3],
1500 kb/s, 25.00 fps
Stream #0.1(und): Audio: libfaac, 48000 Hz, 2 channels, s16, 64 kb/s
Stream #0.2(und): Audio: libfaac, 48000 Hz, 2 channels, s16, 96 kb/s
Stream #0.3(und): Audio: libfaac, 48000 Hz, 2 channels, s16, 96 kb/s
As far as I remember I is the same for lame audio encoding, so it must be
something about parsing the commandline...
regards, Mihaly
You have to specify the parameters concerning the audio track before itself:
<audio params1> <file> <audio params2> -newaudio <audio params3> -newaudio
And please don't hijack existing issues with unrelated bug reports.
--
Baptiste COUDURIER
Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer http://www.ffmpeg.org