AC3 -> AAC 6-Channel Mapping Wrong for PS3
Good Day, I am trying to convert 5.1 AC3 (with video) VOB to a PS3 compatible MP4 with surround sound. The PS3 does not support AC3 in the mp4 container so I am trying to use 6 channel AAC. It seems to almost work, but the channel mapping is incorrect (e.g. my center channel comes out the right speaker). Is there a way to map channels in ffmpeg that I'm missing? Is 6-channel encoding fixed in a later version? (I'm using an RPM from a 2009-10-26 SVN pull.) It is a lot of work to upgrade (make new RPMs) so if possible I would like to know ahead of time that it has been fixed. Has anyone else done this successfully? My command is basically: ffmpeg -y -i something.vob -acodec aac -ac 6 -ab 384k ...lots of video options... something.mp4 Thanks. --Bill FFmpeg version SVN-r20372, Copyright (c) 2000-2009 Fabrice Bellard, et al. built on Nov 7 2009 17:50:32 with gcc 4.4.2 20091027 (Red Hat 4.4.2-7) configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib --mandir=/usr/share/man --arch=i686 --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables' --extra-version=rpmfusion --enable-bzlib --enable-libdc1394 --enable-libdirac --enable-libfaad --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avfilter-lavf --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib --cpu=i686 --enable-runtime-cpudetect libavutil 50. 3. 0 / 50. 3. 0 libavcodec 52.37. 1 / 52.37. 1 libavformat 52.39. 2 / 52.39. 2 libavdevice 52. 2. 0 / 52. 2. 0 libavfilter 1. 4. 1 / 1. 4. 1 libswscale 0. 7. 1 / 0. 7. 1 libpostproc 51. 2. 0 / 51. 2. 0
Bill Adams wrote:
Good Day,
I am trying to convert 5.1 AC3 (with video) VOB to a PS3 compatible MP4 with surround sound. The PS3 does not support AC3 in the mp4 container so I am trying to use 6 channel AAC. It seems to almost work, but the channel mapping is incorrect (e.g. my center channel comes out the right speaker).
Is there a way to map channels in ffmpeg that I'm missing? Is 6-channel encoding fixed in a later version? (I'm using an RPM from a 2009-10-26 SVN pull.) It is a lot of work to upgrade (make new RPMs) so if possible I would like to know ahead of time that it has been fixed.
See -map
Has anyone else done this successfully?
My command is basically: ffmpeg -y -i something.vob -acodec aac -ac 6 -ab 384k ...lots of video options... something.mp4
Thanks.
--Bill
FFmpeg version SVN-r20372, Copyright (c) 2000-2009 Fabrice Bellard, et al. built on Nov 7 2009 17:50:32 with gcc 4.4.2 20091027 (Red Hat 4.4.2-7) configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib --mandir=/usr/share/man --arch=i686 --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables' --extra-version=rpmfusion --enable-bzlib --enable-libdc1394 --enable-libdirac --enable-libfaad --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avfilter-lavf --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib --cpu=i686 --enable-runtime-cpudetect libavutil 50. 3. 0 / 50. 3. 0 libavcodec 52.37. 1 / 52.37. 1 libavformat 52.39. 2 / 52.39. 2 libavdevice 52. 2. 0 / 52. 2. 0 libavfilter 1. 4. 1 / 1. 4. 1 libswscale 0. 7. 1 / 0. 7. 1 libpostproc 51. 2. 0 / 51. 2. 0
-- Bill Davidsen <davidsen at tmr.com> "We have more to fear from the bungling of the incompetent than from the machinations of the wicked." - from Slashdot
On 07/05/2010 03:02 PM, Bill Davidsen wrote:
Bill Adams wrote:
Good Day,
I am trying to convert 5.1 AC3 (with video) VOB to a PS3 compatible MP4 with surround sound. The PS3 does not support AC3 in the mp4 container so I am trying to use 6 channel AAC. It seems to almost work, but the channel mapping is incorrect (e.g. my center channel comes out the right speaker).
Is there a way to map channels in ffmpeg that I'm missing? Is 6-channel encoding fixed in a later version? (I'm using an RPM from a 2009-10-26 SVN pull.) It is a lot of work to upgrade (make new RPMs) so if possible I would like to know ahead of time that it has been fixed.
See -map
Thanks for the reply. Unfortunatly -map does not do what I seek: -map will help me select different audio tracks for encoding, but it does not allow me to fix the channel order within the track. I ended up playing around with two solutions: Dump the raw audio and then use an external faac to properly encode 6-channel AAC or us sox to re-map the raw audio and use the internal ffmpeg aac encoder. Both work, but neither is as elegant as having ffmpeg just do the right thing. The 0.6 release for F13 (FFmpeg version SVN-r22990, Copyright (c) 2000-2010 the FFmpeg developers) still has the issue. And I'm suprised more people have not chimed up about this issue since it prevents one from easily converting DVDs to something playable in the PS3 with full surround. Then again, maybe it is just me that cares about having surround on re-encoded media. --Bill
Bill Adams wrote:
Thanks for the reply. Unfortunately -map does not do what I seek: -map will help me select different audio tracks for encoding, but it does not allow me to fix the channel order within the track.
This is very similar to the thread "how to use -map" by Jim Shupert. If you don't keep your mails you can read it here: http://comments.gmane.org/gmane.comp.video.ffmpeg.user/26020?set_lines=10000... I think my suggestion (14 Apr 01:20) to use MEncoder with -af pan could also be your solution. Jim Shupert said he was going to try it - it would be interesting to know if it solved his problem. -- Peter ____________________________________________________________ Send your photos by email in seconds... TRY FREE IM TOOLPACK at http://www.imtoolpack.com/default.aspx?rc=if3 Works in all emails, instant messengers, blogs, forums and social networks.
On 07/05/2010 07:35 PM, Peter wrote:
Bill Adams wrote:
Thanks for the reply. Unfortunately -map does not do what I seek: -map will help me select different audio tracks for encoding, but it does not allow me to fix the channel order within the track.
This is very similar to the thread "how to use -map" by Jim Shupert.
If you don't keep your mails you can read it here: http://comments.gmane.org/gmane.comp.video.ffmpeg.user/26020?set_lines=10000...
I think my suggestion (14 Apr 01:20) to use MEncoder with -af pan could also be your solution. Jim Shupert said he was going to try it - it would be interesting to know if it solved his problem.
Thanks for tip to that thread. I missed that. It seems like another workaround to a limitation on the built-in AAC encoder. Because I prefer to use ffmpeg directly, I'll stick with sox for now. Or perhaps recompile ffmpeg with libfaac support so I can encode the AAC without dumping a raw audio stream. --Bill
participants (3)
-
davidsen@tmr.com -
gofish@evilbill.org -
pscientist@inbox.com