How do I Maintain 5.1 Audio using FAAC or FDK-AAC

Questions involving a Windows version of FFmpeg.
Post Reply
puck
Posts: 9
Joined: Fri Jul 08, 2011 5:36 am

How do I Maintain 5.1 Audio using FAAC or FDK-AAC

Post by puck » Sun Mar 23, 2014 11:46 am

Hi All,

I hope someone can help me, :oops: I have a video with 5.1 ac3 audio.
Mediainfo reports
Audio
ID : 257 (0x101)
Menu ID : 1 (0x1)
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Format settings, Endianness : Big
Codec ID : 129
Duration : 5mn 0s
Bit rate mode : Constant
Bit rate : 640 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Delay relative to video : 16ms
Stream size : 22.9 MiB (4%)
Language : English

Using the following snippets to re-encode the video and audio

Code: Select all

set VCodec=-vcodec libx264 -profile:v high -level 40 -preset slow -tune film
set VParams=-b:v 1500k -bufsize 10000k -maxrate 10000k
set AdvParams=-vf "scale=720:400, yadif=0:-1"

REM ==================================================================================
REM ***** Use FDK AAC Audio codec 
REM ==================================================================================

set ACodec=-acodec libfdk_aac
set AParams=-ab 640k -ar 48000 -ac 6 -cutoff 18000 -filter:a volume=3dB
set AddParams=-isync 

REM ==================================================================================
REM ***** Use FAAC AAC Audio codec 
REM ==================================================================================
REM set ACodec=-acodec libfaac
REM set AParams=-ab 640k -ar 48000 -ac 6 -filter:a volume=3dB
REM set AddParams=-isync 

FFMPEG -i "'|| fn_in.jj ||'" %VCodec% %VParams% %AdvParams% %AddParams%  -pass 1 %PASS1OUT%
FFMPEG -i "'|| fn_in.jj ||'" %VCodec% %VParams% %ACodec% %AParams% %AdvParams% %AddParams%  -pass 2 %PASS2OUT%
I end up with the following report for the audio (note it is now 2 channel not 6)

What have I missed or done wrong :oops:
Any Help would be greatly appreciated

Note the above snippets are imbedded within an OOREXX program (http://www.oorexx.org)

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 5mn 0s
Bit rate mode : Variable
Bit rate : 640 Kbps
Maximum bit rate : 10 000 Kbps
Channel(s) : 2 channels
Channel(s)_Original : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Compression mode : Lossy
Stream size : 22.9 MiB (18%)
Language : English
Regards,
Mark

(Experience is something you don't get until just after you need it.)

User avatar
Zeranoe
Site Admin
Posts: 703
Joined: Sat May 07, 2011 7:12 pm
Contact:

Re: How do I Maintain 5.1 Audio using FAAC or FDK-AAC

Post by Zeranoe » Tue Mar 25, 2014 1:51 pm

Please provide the full FFmpeg output from the command you're running.

puck
Posts: 9
Joined: Fri Jul 08, 2011 5:36 am

Re: How do I Maintain 5.1 Audio using FAAC or FDK-AAC

Post by puck » Sat Mar 29, 2014 2:30 pm

Zeranoe wrote:Please provide the full FFmpeg output from the command you're running.
Hi Zeranoe,
Thanks for the reply, I hope I have supplied what you wanted.
I have included the generated code as well as the mediainfo and the FFMPEG output.
Lines have been deleted from each run so as not to overload the post.

Regards,
Mark

Code: Select all

ECHO off
del Conversion_Log.txt
 
REM ==================================================================================
REM ***** Set The Video Codec 
REM ==================================================================================
 
set VCodec=-vcodec libx264 -profile:v high -level 40 -preset slow -tune film
set VParams=-b:v 3000k -bufsize 10000k -maxrate 10000k
set AdvParams=-vf "scale=1920:800, yadif=0:-1"
 
REM ==================================================================================
REM ***** Use FDK AAC Audio codec 
REM ==================================================================================
 
set ACodec=-acodec libfdk_aac 
set AParams=-ab 640k -ar 48000 -ac 6 -cutoff 18000 -filter:a volume=3.4dB
set AddParams=-isync
 
REM ==================================================================================
REM                              ***** DO SOME WORK *****                             
REM ==================================================================================
 
del ffmpeg2pass*.*
set PASS1OUT=-y nul.ts
 
set PASS2OUT=-y "G:\FFmpeg_work\TEST.mp4"
 
REM ==================================================================================
 
ECHO Start Conversion [Pass 1] of TEST At %DATE% %TIME% >> Conversion_Log.txt
 
Title TEST -- pass 1 start at %TIME%
 
FFMPEG -i "TEST.mpg" %VCodec% %VParams% %AdvParams% %AddParams%  -pass 1 %PASS1OUT% 2>ffmpeg_pass1.txt
 
ECHO Start Conversion [Pass 2] of TEST At %DATE% %TIME% >> Conversion_Log.txt
 
Title TEST -- pass 2 start at %TIME%
 
FFMPEG -i "TEST.mpg" %VCodec% %VParams% %ACodec% %AParams% %AdvParams% %AddParams%  -pass 2 %PASS2OUT% 2>ffmpeg_pass2.txt
 
ECHO End of Conversion ....... of TEST At %DATE% %TIME% >> Conversion_Log.txt
REM ==================================================================================
rem move "TEST.mpg" "C:\Done\TEST.mpg"
REM ==================================================================================
 
General
Complete name : G:\FFmpeg_work\TEST.mpg
Format : MPEG-PS
File size : 168 MiB
Duration : 2mn 0s
Overall bit rate mode : Variable
Overall bit rate : 11.8 Mbps

Video
ID : 224 (0xE0)
Format : MPEG Video
Format version : Version 2
Format profile : [email protected] 1440
Format settings, BVOP : No
Format settings, Matrix : Default
Format settings, GOP : N=12
Duration : 1mn 59s
Bit rate mode : Variable
Bit rate : 10.9 Mbps
Maximum bit rate : 43.6 Mbps
Width : 1 920 pixels
Height : 800 pixels
Display aspect ratio : 2.40:1
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.296
Time code of first frame : 00:00:00:00
Time code source : Group of pictures header
Stream size : 156 MiB (93%)

Audio
ID : 189 (0xBD)-128 (0x80)
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Format settings, Endianness : Big
Muxing mode : DVD-Video
Duration : 2mn 0s
Bit rate mode : Constant
Bit rate : 640 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Stream size : 9.16 MiB (5%)

============================================================================================================================================
PASS 1

ffmpeg version N-61165-g742d860 Copyright (c) 2000-2014 the FFmpeg developers
built on Mar 8 2014 22:05:38 with gcc 4.8.2 (GCC)
configuration: --arch=x86 --target-os=mingw32 --cross-prefix=/home/mark/sandbox/mingw-w64-i686/bin/i686-w64-mingw32- --pkg-config=pkg-config --enable-gpl --enable-libx264 --enable-avisynth --enable-libxvid --enable-libmp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --enable-libopus --disable-w32threads --enable-frei0r --enable-filter=frei0r --enable-libvo-aacenc --enable-bzlib --enable-libxavs --extra-cflags=-DPTW32_STATIC_LIB --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libvpx --enable-libilbc --prefix=/home/mark/sandbox/mingw-w64-i686/i686-w64-mingw32 --enable-static --disable-shared --enable-libsoxr --enable-fontconfig --enable-libass --enable-libutvideo --enable-libbluray --enable-iconv --enable-libtwolame --extra-cflags=-DLIBTWOLAME_STATIC --enable-libzvbi --enable-libcaca --enable-libmodplug --extra-libs=-lstdc++ --extra-libs=-lpng --enable-libvidstab --enable-libx265 --extra-cflags= --extra-cflags= --enable-nonfree --enable-libfdk-aac --enable-libfaac --enable-runtime-cpudetect
libavutil 52. 66.101 / 52. 66.101
libavcodec 55. 52.102 / 55. 52.102
libavformat 55. 33.101 / 55. 33.101
libavdevice 55. 11.100 / 55. 11.100
libavfilter 4. 3.100 / 4. 3.100
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
Input #0, mpeg, from 'TEST.mpg':
Duration: 00:01:59.97, start: 0.200000, bitrate: 11760 kb/s
Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 1920x800 [SAR 1:1 DAR 12:5], max. 250000 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
Stream #0:1[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
[libx264 @ 028ecfe0] using SAR=1/1
[libx264 @ 028ecfe0] using cpu capabilities: MMX2 SSE2Fast LZCNT
[libx264 @ 028ecfe0] profile Main, level 4.0
Output #0, mpegts, to 'nul.ts':
Metadata:
encoder : Lavf55.33.101
Stream #0:0: Video: h264 (libx264), yuv420p, 1920x800 [SAR 1:1 DAR 12:5], q=-1--1, pass 1, 3000 kb/s, 90k tbn, 23.98 tbc
Stream #0:1: Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (mpeg2video -> libx264)
Stream #0:1 -> #0:1 (ac3 -> mp2)
Press [q] to stop, [?] for help
frame= 56 fps=0.0 q=0.0 size= 0kB time=00:00:02.34 bitrate= 0.0kbits/s

LINES DELETED


frame= 2846 fps= 58 q=25.0 size= 47532kB time=00:01:58.69 bitrate=3280.6kbits/s
frame= 2877 fps= 58 q=-1.0 Lsize= 49342kB time=00:01:59.98 bitrate=3368.7kbits/s video:43515kB audio:1875kB subtitle:0 data:0 global headers:0kB muxing overhead 8.706592%
[libx264 @ 028ecfe0] frame I:30 Avg QP:16.35 size:125004
[libx264 @ 028ecfe0] frame P:787 Avg QP:18.96 size: 33870
[libx264 @ 028ecfe0] frame B:2060 Avg QP:21.21 size: 6871
[libx264 @ 028ecfe0] consecutive B-frames: 2.0% 2.4% 15.3% 80.2%
[libx264 @ 028ecfe0] mb I I16..4: 34.7% 0.0% 65.3%
[libx264 @ 028ecfe0] mb P I16..4: 20.2% 0.0% 0.0% P16..4: 63.9% 0.0% 0.0% 0.0% 0.0% skip:15.9%
[libx264 @ 028ecfe0] mb B I16..4: 2.4% 0.0% 0.0% B16..8: 19.8% 0.0% 0.0% direct:13.1% skip:64.7% L0:38.4% L1:46.1% BI:15.4%
[libx264 @ 028ecfe0] final ratefactor: 20.23
[libx264 @ 028ecfe0] direct mvs spatial:99.8% temporal:0.2%
[libx264 @ 028ecfe0] coded y,uvDC,uvAC intra: 31.4% 63.9% 21.3% inter: 10.7% 22.9% 1.0%
[libx264 @ 028ecfe0] i16 v,h,dc,p: 49% 23% 19% 8%
[libx264 @ 028ecfe0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 21% 15% 3% 7% 6% 6% 6% 6%
[libx264 @ 028ecfe0] i8c dc,h,v,p: 47% 20% 28% 5%
[libx264 @ 028ecfe0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 028ecfe0] kb/s:2971.37

============================================================================================================================================
PASS 2

ffmpeg version N-61165-g742d860 Copyright (c) 2000-2014 the FFmpeg developers
built on Mar 8 2014 22:05:38 with gcc 4.8.2 (GCC)
configuration: --arch=x86 --target-os=mingw32 --cross-prefix=/home/mark/sandbox/mingw-w64-i686/bin/i686-w64-mingw32- --pkg-config=pkg-config --enable-gpl --enable-libx264 --enable-avisynth --enable-libxvid --enable-libmp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --enable-libopus --disable-w32threads --enable-frei0r --enable-filter=frei0r --enable-libvo-aacenc --enable-bzlib --enable-libxavs --extra-cflags=-DPTW32_STATIC_LIB --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libvpx --enable-libilbc --prefix=/home/mark/sandbox/mingw-w64-i686/i686-w64-mingw32 --enable-static --disable-shared --enable-libsoxr --enable-fontconfig --enable-libass --enable-libutvideo --enable-libbluray --enable-iconv --enable-libtwolame --extra-cflags=-DLIBTWOLAME_STATIC --enable-libzvbi --enable-libcaca --enable-libmodplug --extra-libs=-lstdc++ --extra-libs=-lpng --enable-libvidstab --enable-libx265 --extra-cflags= --extra-cflags= --enable-nonfree --enable-libfdk-aac --enable-libfaac --enable-runtime-cpudetect
libavutil 52. 66.101 / 52. 66.101
libavcodec 55. 52.102 / 55. 52.102
libavformat 55. 33.101 / 55. 33.101
libavdevice 55. 11.100 / 55. 11.100
libavfilter 4. 3.100 / 4. 3.100
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
Input #0, mpeg, from 'TEST.mpg':
Duration: 00:01:59.97, start: 0.200000, bitrate: 11760 kb/s
Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 1920x800 [SAR 1:1 DAR 12:5], max. 250000 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
Stream #0:1[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
[libx264 @ 046b1020] using SAR=1/1
[libx264 @ 046b1020] using cpu capabilities: MMX2 SSE2Fast LZCNT
[libx264 @ 046b1020] profile High, level 4.0
[libx264 @ 046b1020] x264 - core 140 r2380 de0bc36 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=5 deblock=1:-1:-1 analyse=0x3:0x113 me=umh subme=8 psy=1 psy_rd=1.00:0.15 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-3 threads=9 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=23 scenecut=40 intra_refresh=0 rc_lookahead=50 rc=2pass mbtree=1 bitrate=3000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 cplxblur=20.0 qblur=0.5 vbv_maxrate=10000 vbv_bufsize=10000 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'G:\FFmpeg_work\TEST.mp4':
Metadata:
encoder : Lavf55.33.101
Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1920x800 [SAR 1:1 DAR 12:5], q=-1--1, pass 2, 3000 kb/s, 10k tbn, 23.98 tbc
Stream #0:1: Audio: aac (libfdk_aac) ([64][0][0][0] / 0x0040), 48000 Hz, 5.1, s16, 640 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (mpeg2video -> libx264)
Stream #0:1 -> #0:1 (ac3 -> libfdk_aac)
Press [q] to stop, [?] for help
frame= 15 fps=0.0 q=26.0 size= 299kB time=00:00:00.61 bitrate=3952.6kbits/s

LINES DELETED


frame= 2877 fps= 19 q=26.0 size= 52936kB time=00:01:59.95 bitrate=3615.0kbits/s
frame= 2877 fps= 19 q=-1.0 Lsize= 53240kB time=00:02:00.00 bitrate=3634.5kbits/s video:43779kB audio:9378kB subtitle:0 data:0 global headers:0kB muxing overhead 0.155198%
[libx264 @ 046b1020] frame I:30 Avg QP:17.96 size:117084
[libx264 @ 046b1020] frame P:787 Avg QP:20.58 size: 33262
[libx264 @ 046b1020] frame B:2060 Avg QP:23.08 size: 7349
[libx264 @ 046b1020] consecutive B-frames: 2.0% 2.4% 15.3% 80.2%
[libx264 @ 046b1020] mb I I16..4: 8.6% 84.6% 6.8%
[libx264 @ 046b1020] mb P I16..4: 3.0% 11.2% 0.5% P16..4: 43.8% 15.1% 9.2% 0.0% 0.0% skip:17.1%
[libx264 @ 046b1020] mb B I16..4: 0.2% 0.8% 0.0% B16..8: 33.6% 2.7% 0.4% direct: 3.9% skip:58.2% L0:45.9% L1:48.7% BI: 5.4%
[libx264 @ 046b1020] 8x8 transform intra:77.5% inter:83.0%
[libx264 @ 046b1020] direct mvs spatial:98.0% temporal:2.0%
[libx264 @ 046b1020] coded y,uvDC,uvAC intra: 53.6% 68.1% 31.4% inter: 12.8% 25.4% 2.5%
[libx264 @ 046b1020] i16 v,h,dc,p: 42% 19% 11% 28%
[libx264 @ 046b1020] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 11% 29% 5% 6% 8% 7% 8% 7%
[libx264 @ 046b1020] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 12% 6% 7% 14% 13% 13% 9% 9%
[libx264 @ 046b1020] i8c dc,h,v,p: 39% 24% 26% 11%
[libx264 @ 046b1020] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 046b1020] ref P L0: 54.4% 10.1% 22.1% 5.8% 6.6% 1.0%
[libx264 @ 046b1020] ref B L0: 83.8% 12.0% 3.2% 1.0%
[libx264 @ 046b1020] ref B L1: 96.0% 4.0%
[libx264 @ 046b1020] kb/s:2989.32

============================================================================================================================================

General
Complete name : G:\FFmpeg_work\TEST.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 52.0 MiB
Duration : 2mn 0s
Overall bit rate mode : Variable
Overall bit rate : 3 633 Kbps
Writing application : Lavf55.33.101

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : [email protected]
Format settings, CABAC : Yes
Format settings, ReFrames : 5 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 1mn 59s
Bit rate : 3 000 Kbps
Width : 1 920 pixels
Height : 800 pixels
Display aspect ratio : 2.40:1
Frame rate mode : Constant
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.081
Stream size : 42.8 MiB (82%)
Writing library : x264 core 140 r2380 de0bc36
Encoding settings : cabac=1 / ref=5 / deblock=1:-1:-1 / analyse=0x3:0x113 / me=umh / subme=8 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=9 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=2pass / mbtree=1 / bitrate=3000 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=10000 / vbv_bufsize=10000 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 2mn 0s
Bit rate mode : Variable
Bit rate : 640 Kbps
Maximum bit rate : 10 000 Kbps
Channel(s) : 2 channels
Channel(s)_Original : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Compression mode : Lossy
Stream size : 9.16 MiB (18%)
Regards,
Mark

(Experience is something you don't get until just after you need it.)

puck
Posts: 9
Joined: Fri Jul 08, 2011 5:36 am

Solved: How do I Maintain 5.1 Audio using FAAC or FDK-AAC

Post by puck » Wed Apr 02, 2014 10:21 pm

Hi All,

It was Mediainfo incorrectly reporting the number of channels. :evil:

I opened the test.mp4 with Handbrake and it reported .... Source "1 Unknown (aac) (5.1 ch)"

FFprobe also reports 5.1 "Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 640 kb/s (default)"

Code: Select all

ffprobe version N-61950-g0f2588d Copyright (c) 2007-2014 the FFmpeg developers
  built on Mar 31 2014 09:08:06 with gcc 4.8.2 (GCC)
  configuration: --arch=x86 --target-os=mingw32 --cross-prefix=/home/mark/sandbox/mingw-w64-i686/bin/i686-w64-mingw32- --pkg-config=pkg-config --enable-gpl --enable-libx264 --enable-avisynth --enable-libxvid --enable-libmp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --enable-libopus --disable-w32threads --enable-frei0r --enable-filter=frei0r --enable-libvo-aacenc --enable-bzlib --enable-libxavs --extra-cflags=-DPTW32_STATIC_LIB --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libvpx --enable-libilbc --prefix=/home/mark/sandbox/mingw-w64-i686/i686-w64-mingw32 --enable-static --disable-shared --enable-libsoxr --enable-fontconfig --enable-libass --enable-libutvideo --enable-libbluray --enable-iconv --enable-libtwolame --extra-cflags=-DLIBTWOLAME_STATIC --enable-libzvbi --enable-libcaca --enable-libmodplug --extra-libs=-lstdc++ --extra-libs=-lpng --enable-libvidstab --extra-cflags= --extra-cflags= --enable-nonfree --enable-libfdk-aac --enable-libfaac --enable-runtime-cpudetect
  libavutil      52. 70.100 / 52. 70.100
  libavcodec     55. 55.104 / 55. 55.104
  libavformat    55. 36.100 / 55. 36.100
  libavdevice    55. 11.100 / 55. 11.100
  libavfilter     4.  3.100 /  4.  3.100
  libswscale      2.  5.102 /  2.  5.102
  libswresample   0. 18.100 /  0. 18.100
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'G:\FFmpeg_work\TEST.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf55.36.100
  Duration: 00:02:00.04, start: 0.042667, bitrate: 3633 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x800 [SAR 1:1 DAR 12:5], 2989 kb/s, 23.98 fps, 23.98 tbr, 10k tbn, 47.96 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 640 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
Regards,
Mark

(Experience is something you don't get until just after you need it.)

Zenitram
Posts: 2
Joined: Thu Apr 03, 2014 5:40 am

Re: How do I Maintain 5.1 Audio using FAAC or FDK-AAC

Post by Zenitram » Thu Apr 03, 2014 5:55 am

puck wrote: I end up with the following report for the audio (note it is now 2 channel not 6)
note you get 2 numbers, including a 6:
Channel(s) : 2 channels
Channel(s)_Original : 6 channels

I agree it is not well displayed, but it means that the container says 2, but the stream has 6 channels.

Specs are not clear about container channel count (ISO 14496-12 says "ChannelCount is either 1 (mono) or 2 (stereo)"), QuickTime spec says "number of sound channels used by the sound sample. Set to 1 for monaural sounds, 2 for stereo sounds. Higher numbers of channels are not supported."), some muxers put 6 in the channel count field, some others put 2.
I'll try to find a better method for displaying the container channel count in the container field.

Jerome, developer of MediaInfo

Post Reply
'