[FFmpeg-user] libfdk_aac keep audio layout
Kevin Wells
kevwells at hotmail.co.uk
Wed Dec 2 16:26:36 CET 2015
Hi, I am trying to encode an H.264 transport stream with aac audio and retain the audio layout of the input file, which is:0:0 - video0:1 - mono0:2 - mono0:3 - mono0:4 - mono0:5 - mono0:6 - mono0:7 - stereoWith the below settings my output file contains 7 mono files, instead of 6 mono's and 1 stereo. What am I doing wrong here please?Heres my console output:/usr/local/Cellar/ffmpeg/2.7.2_1/bin/ffmpeg \
> -i /Volumes/GRAID/EXPORTS/Premature_Preview.mov -ss 15 -to 20 \
> -map v:0 \
> -map 0:1 \
> -map 0:2 \
> -map 0:3 \
> -map 0:4 \
> -map 0:5 \
> -map 0:6 \
> -map 0:7 \
> -c:a libfdk_aac -b:a 384k \
> -x264opts bitrate=80000:vbv-maxrate=80000:vbv-bufsize=166 \
> -vcodec libx264 -f mpegts -muxrate 80000K -y /Volumes/GRAID/EXPORTS/Tests/Premature_Preview.ts
ffmpeg version 2.7.2 Copyright (c) 2000-2015 the FFmpeg developers
built with Apple LLVM version 7.0.0 (clang-700.1.76)
configuration: --prefix=/usr/local/Cellar/ffmpeg/2.7.2_1 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-libfdk-aac --enable-nonfree --enable-vda
libavutil 54. 27.100 / 54. 27.100
libavcodec 56. 41.100 / 56. 41.100
libavformat 56. 36.100 / 56. 36.100
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 16.101 / 5. 16.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.100 / 1. 2.100
libpostproc 53. 3.100 / 53. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Volumes/Kevs_GRAID/EXPORTS/Premature_Preview.mov':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2015-11-06 12:04:34
Duration: 00:00:56.51, start: 0.000000, bitrate: 180004 kb/s
Stream #0:0(eng): Video: prores (apch / 0x68637061), yuv422p10le(bt709), 1920x1080, 170741 kb/s, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 23976 tbn, 23976 tbc (default)
Metadata:
creation_time : 2015-11-06 12:04:34
handler_name : Apple Alias Data Handler
encoder : Apple ProRes 422 HQ
timecode : 00:00:00:00
Stream #0:1(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels (FL), s32 (24 bit), 1152 kb/s (default)
Metadata:
creation_time : 2015-11-06 12:04:34
handler_name : Apple Alias Data Handler
Stream #0:2(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels (FR), s32 (24 bit), 1152 kb/s (default)
Metadata:
creation_time : 2015-11-06 12:04:34
handler_name : Apple Alias Data Handler
Stream #0:3(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, mono, s32 (24 bit), 1152 kb/s (default)
Metadata:
creation_time : 2015-11-06 12:04:34
handler_name : Apple Alias Data Handler
Stream #0:4(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels (LFE), s32 (24 bit), 1152 kb/s (default)
Metadata:
creation_time : 2015-11-06 12:04:34
handler_name : Apple Alias Data Handler
Stream #0:5(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels (BL), s32 (24 bit), 1152 kb/s (default)
Metadata:
creation_time : 2015-11-06 12:04:34
handler_name : Apple Alias Data Handler
Stream #0:6(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels (BR), s32 (24 bit), 1152 kb/s (default)
Metadata:
creation_time : 2015-11-06 12:04:34
handler_name : Apple Alias Data Handler
Stream #0:7(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, downmix, s32 (24 bit), 2304 kb/s (default)
Metadata:
creation_time : 2015-11-06 12:04:34
handler_name : Apple Alias Data Handler
Stream #0:8(eng): Data: none (tmcd / 0x64636D74) (default)
Metadata:
creation_time : 2015-11-06 12:04:44
handler_name : Apple Alias Data Handler
timecode : 00:00:00:00
No pixel format specified, yuv422p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 0x7f972a800c00] using SAR=1/1
[libx264 @ 0x7f972a800c00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0x7f972a800c00] VBV buffer size cannot be smaller than one frame, using 3336 kbit
[libx264 @ 0x7f972a800c00] profile High 4:2:2, level 4.0, 4:2:2 8-bit
Output #0, mpegts, to '/Volumes/GRAID/EXPORTS/Tests/Premature_Preview.ts':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
encoder : Lavf56.36.100
Stream #0:0(eng): Video: h264 (libx264), yuv422p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 80000 kb/s, 23.98 fps, 90k tbn, 23.98 tbc (default)
Metadata:
creation_time : 2015-11-06 12:04:34
handler_name : Apple Alias Data Handler
timecode : 00:00:00:00
encoder : Lavc56.41.100 libx264
Stream #0:1(eng): Audio: aac (libfdk_aac), 48000 Hz, mono, s16 (24 bit), 384 kb/s (default)
Metadata:
creation_time : 2015-11-06 12:04:34
handler_name : Apple Alias Data Handler
encoder : Lavc56.41.100 libfdk_aac
Stream #0:2(eng): Audio: aac (libfdk_aac), 48000 Hz, mono, s16 (24 bit), 384 kb/s (default)
Metadata:
creation_time : 2015-11-06 12:04:34
handler_name : Apple Alias Data Handler
encoder : Lavc56.41.100 libfdk_aac
Stream #0:3(eng): Audio: aac (libfdk_aac), 48000 Hz, mono, s16 (24 bit), 384 kb/s (default)
Metadata:
creation_time : 2015-11-06 12:04:34
handler_name : Apple Alias Data Handler
encoder : Lavc56.41.100 libfdk_aac
Stream #0:4(eng): Audio: aac (libfdk_aac), 48000 Hz, mono, s16 (24 bit), 384 kb/s (default)
Metadata:
creation_time : 2015-11-06 12:04:34
handler_name : Apple Alias Data Handler
encoder : Lavc56.41.100 libfdk_aac
Stream #0:5(eng): Audio: aac (libfdk_aac), 48000 Hz, mono, s16 (24 bit), 384 kb/s (default)
Metadata:
creation_time : 2015-11-06 12:04:34
handler_name : Apple Alias Data Handler
encoder : Lavc56.41.100 libfdk_aac
Stream #0:6(eng): Audio: aac (libfdk_aac), 48000 Hz, mono, s16 (24 bit), 384 kb/s (default)
Metadata:
creation_time : 2015-11-06 12:04:34
handler_name : Apple Alias Data Handler
encoder : Lavc56.41.100 libfdk_aac
Stream #0:7(eng): Audio: aac (libfdk_aac), 48000 Hz, mono, s16 (24 bit), 384 kb/s (default)
Metadata:
creation_time : 2015-11-06 12:04:34
handler_name : Apple Alias Data Handler
encoder : Lavc56.41.100 libfdk_aac
Stream mapping:
Stream #0:0 -> #0:0 (prores (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (pcm_s24le (native) -> aac (libfdk_aac))
Stream #0:2 -> #0:2 (pcm_s24le (native) -> aac (libfdk_aac))
Stream #0:3 -> #0:3 (pcm_s24le (native) -> aac (libfdk_aac))
Stream #0:4 -> #0:4 (pcm_s24le (native) -> aac (libfdk_aac))
Stream #0:5 -> #0:5 (pcm_s24le (native) -> aac (libfdk_aac))
Stream #0:6 -> #0:6 (pcm_s24le (native) -> aac (libfdk_aac))
Stream #0:7 -> #0:7 (pcm_s24le (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
frame= 120 fps=7.3 q=-1.0 Lsize= 49165kB time=00:00:05.01 bitrate=80337.3kbits/s
video:24033kB audio:1244kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 94.505043%
[libx264 @ 0x7f972a800c00] frame I:4 Avg QP:14.11 size:387891
[libx264 @ 0x7f972a800c00] frame P:36 Avg QP:13.10 size:345848
[libx264 @ 0x7f972a800c00] frame B:80 Avg QP:17.64 size:132591
[libx264 @ 0x7f972a800c00] consecutive B-frames: 3.3% 21.7% 5.0% 70.0%
[libx264 @ 0x7f972a800c00] mb I I16..4: 24.3% 66.1% 9.7%
[libx264 @ 0x7f972a800c00] mb P I16..4: 0.6% 27.4% 1.2% P16..4: 14.9% 18.0% 14.8% 0.0% 0.0% skip:23.0%
[libx264 @ 0x7f972a800c00] mb B I16..4: 0.1% 14.2% 0.2% B16..8: 23.3% 7.5% 2.3% direct: 8.3% skip:44.2% L0:39.1% L1:31.8% BI:29.1%
[libx264 @ 0x7f972a800c00] 8x8 transform intra:91.5% inter:67.4%
[libx264 @ 0x7f972a800c00] coded y,uvDC,uvAC intra: 98.5% 100.0% 99.8% inter: 36.7% 48.1% 36.8%
[libx264 @ 0x7f972a800c00] i16 v,h,dc,p: 70% 5% 10% 15%
[libx264 @ 0x7f972a800c00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 12% 9% 43% 6% 6% 6% 6% 6% 7%
[libx264 @ 0x7f972a800c00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 20% 15% 8% 10% 8% 8% 8% 7%
[libx264 @ 0x7f972a800c00] i8c dc,h,v,p: 79% 3% 6% 12%
[libx264 @ 0x7f972a800c00] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x7f972a800c00] ref P L0: 38.0% 8.0% 41.6% 12.5%
[libx264 @ 0x7f972a800c00] ref B L0: 65.7% 30.0% 4.3%
[libx264 @ 0x7f972a800c00] ref B L1: 93.1% 6.9%
[libx264 @ 0x7f972a800c00] kb/s:39335.64
More information about the ffmpeg-user
mailing list