Re: Issue 67 in ffmbc: FFmbc 0.7 4 channels AAC encoding bug

32 views
Skip to first unread message

ff...@googlecode.com

unread,
Nov 7, 2011, 11:38:24 AM11/7/11
to ffmb...@googlegroups.com
Updates:
Summary: FFmbc 0.7 4 channels AAC encoding bug

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.

ff...@googlecode.com

unread,
Nov 8, 2011, 4:03:00 AM11/8/11
to ffmb...@googlegroups.com

Comment #5 on issue 67 by mihaly.b...@gmail.com: FFmbc 0.7 4 channels AAC
encoding bug
http://code.google.com/p/ffmbc/issues/detail?id=67

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

ff...@googlecode.com

unread,
Nov 8, 2011, 4:46:33 AM11/8/11
to ffmb...@googlegroups.com

Comment #6 on issue 67 by mihaly.b...@gmail.com: FFmbc 0.7 4 channels AAC
encoding bug
http://code.google.com/p/ffmbc/issues/detail?id=67

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

Baptiste Coudurier

unread,
Nov 8, 2011, 2:55:34 PM11/8/11
to ffmb...@googlegroups.com, ff...@googlecode.com

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

ff...@googlecode.com

unread,
Oct 6, 2014, 3:08:49 PM10/6/14
to ffmb...@googlegroups.com
Updates:
Status: CannotFix

Comment #7 on issue 67 by baptiste...@gmail.com: FFmbc 0.7 4 channels AAC
encoding bug
https://code.google.com/p/ffmbc/issues/detail?id=67

I'll only allow mono or stereo encoding for now

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages