Hi,
I have a mezzanine file in which I have 8 different audio streams, and I'm trying to mix the audio into stereo mix aac and map it into the second stream of an mp4 in a video, but for some reason ffmpeg keeps placing the audio in the first stream and the video in the second. Any help on mapping would be great. Thanks!
Output:
/ffmpeg -i '/media/local-trans02/GV-16/compress/extract-sound/ayahuasca-vine-of-the-soul-feature-1080p2997.mov' -map 0:v:0 -vcodec libx264 -b:v 1500k -filter_complex amerge=inputs=3 -ac 2 -acodec libvo_aacenc -b:a 128k -t 30 '/media/local-trans02/BLANK01-STG/gravitas-12-16/compressed-files-gravitas/needs-sound/ahay-test.mp4'
ffmpeg version N-45166-gf068aed Copyright (c) 2000-2013 the FFmpeg developers
built on Dec 1 2013 01:28:15 with gcc 4.8 (Debian 4.8.2-5)
configuration: --extra-cflags=-I../static/include --extra-ldflags='-L../static/lib -static' --enable-gpl --enable-version3 --enable-static --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --disable-ffserver
libavutil 52. 56.100 / 52. 56.100
libavcodec 55. 44.100 / 55. 44.100
libavformat 55. 21.102 / 55. 21.102
libavdevice 55. 5.102 / 55. 5.102
libavfilter 3. 91.100 / 3. 91.100
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/media/local-trans02/GV-16/compress/extract-sound/ayahuasca-vine-of-the-soul-feature-1080p2997.mov':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2013-01-17 21:36:36
Duration: 00:52:19.24, start: 0.000000, bitrate: 217300 kb/s
Stream #0:0(eng): Video: prores (apch / 0x68637061), yuv422p10le, 1920x1080, 208028 kb/s, SAR 1:1 DAR 16:9, 29.97 fps, 29.97 tbr, 30k tbn, 30k tbc (default)
Metadata:
creation_time : 2013-01-17 21:36:37
handler_name : Apple Alias Data Handler
Stream #0:1(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels (FL), s32, 1152 kb/s (default)
Metadata:
creation_time : 2013-01-17 21:36:37
handler_name : Apple Alias Data Handler
Stream #0:2(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels (FR), s32, 1152 kb/s (default)
Metadata:
creation_time : 2013-01-17 21:36:37
handler_name : Apple Alias Data Handler
Stream #0:3(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, mono, s32, 1152 kb/s (default)
Metadata:
creation_time : 2013-01-17 21:36:37
handler_name : Apple Alias Data Handler
Stream #0:4(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels (LFE), s32, 1152 kb/s (default)
Metadata:
creation_time : 2013-01-17 21:36:37
handler_name : Apple Alias Data Handler
Stream #0:5(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels (BL), s32, 1152 kb/s (default)
Metadata:
creation_time : 2013-01-17 21:36:38
handler_name : Apple Alias Data Handler
Stream #0:6(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels (BR), s32, 1152 kb/s (default)
Metadata:
creation_time : 2013-01-17 21:36:38
handler_name : Apple Alias Data Handler
Stream #0:7(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels (DL), s32, 1152 kb/s (default)
Metadata:
creation_time : 2013-01-17 21:36:38
handler_name : Apple Alias Data Handler
Stream #0:8(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels (DR), s32, 1152 kb/s (default)
Metadata:
creation_time : 2013-01-17 21:36:38
handler_name : Apple Alias Data Handler
File '/media/local-trans02/BLANK01-STG/gravitas-12-16/compressed-files-gravitas/needs-sound/ahay-test.mp4' already exists. Overwrite ? [y/N] y
[Parsed_amerge_0 @ 0x32d9ce0] No channel layout for input 1
No pixel format specified, yuv422p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 0x32ee3a0] using SAR=1/1
[libx264 @ 0x32ee3a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x32ee3a0] profile High 4:2:2, level 4.0, 4:2:2 8-bit
[libx264 @ 0x32ee3a0] 264 - core 140 r2377 1ca7bb9 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=1500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '/media/local-trans02/BLANK01-STG/gravitas-12-16/compressed-files-gravitas/needs-sound/ahay-test.mp4':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
encoder : Lavf55.21.102
Stream #0:0: Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, s16, 128 kb/s (default)
Stream #0:1(eng): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv422p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 1500 kb/s, 30k tbn, 29.97 tbc (default)
Metadata:
creation_time : 2013-01-17 21:36:37
handler_name : Apple Alias Data Handler
Stream mapping:
Stream #0:1 (pcm_s24le) -> amerge:in0 (graph 0)
Stream #0:2 (pcm_s24le) -> amerge:in1 (graph 0)
Stream #0:3 (pcm_s24le) -> amerge:in2 (graph 0)
amerge (graph 0) -> Stream #0:0 (libvo_aacenc)
Stream #0:0 -> #0:1 (prores -> libx264)
Press [q] to stop, [?] for help
frame= 900 fps= 34 q=-1.0 Lsize= 6245kB time=00:00:30.00 bitrate=1705.0kbits/s
video:5746kB audio:470kB subtitle:0 global headers:0kB muxing overhead 0.463646%
[libx264 @ 0x32ee3a0] frame I:32 Avg QP:20.56 size: 28235
[libx264 @ 0x32ee3a0] frame P:667 Avg QP:27.94 size: 7182
[libx264 @ 0x32ee3a0] frame B:201 Avg QP:26.32 size: 941
[libx264 @ 0x32ee3a0] consecutive B-frames: 69.3% 2.4% 0.7% 27.6%
[libx264 @ 0x32ee3a0] mb I I16..4: 37.2% 62.3% 0.5%
[libx264 @ 0x32ee3a0] mb P I16..4: 9.5% 5.3% 0.0% P16..4: 24.0% 1.2% 1.1% 0.0% 0.0% skip:58.9%
[libx264 @ 0x32ee3a0] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 4.7% 0.1% 0.0% direct: 0.1% skip:95.0% L0:40.6% L1:58.3% BI: 1.0%
[libx264 @ 0x32ee3a0] final ratefactor: 27.24
[libx264 @ 0x32ee3a0] 8x8 transform intra:42.1% inter:97.0%
[libx264 @ 0x32ee3a0] coded y,uvDC,uvAC intra: 13.6% 35.0% 2.2% inter: 3.1% 7.1% 0.2%
[libx264 @ 0x32ee3a0] i16 v,h,dc,p: 47% 20% 11% 23%
[libx264 @ 0x32ee3a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 11% 54% 2% 2% 2% 2% 2% 1%
[libx264 @ 0x32ee3a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 17% 23% 5% 5% 5% 4% 3% 2%
[libx264 @ 0x32ee3a0] i8c dc,h,v,p: 71% 10% 17% 2%
[libx264 @ 0x32ee3a0] Weighted P-Frames: Y:27.3% UV:22.3%
[libx264 @ 0x32ee3a0] ref P L0: 59.4% 9.3% 22.9% 7.8% 0.6%
[libx264 @ 0x32ee3a0] ref B L0: 86.2% 12.6% 1.2%
[libx264 @ 0x32ee3a0] ref B L1: 97.9% 2.1%
[libx264 @ 0x32ee3a0] kb/s:1567.29
root@local-trans02:~/REPOSITORIES/adrise_utils/tools/ffmpeg-git-20131201-64bit-static#
+ Reply to Thread
Results 1 to 1 of 1
Similar Threads
-
How do I make sure I can successfully stream MMSH via FFMPEG?
By Videogamer555 in forum Video Streaming DownloadingReplies: 0Last Post: 27th Nov 2013, 19:09 -
direct stream copy not with ffmpeg
By marcorocchini in forum Newbie / General discussionsReplies: 6Last Post: 26th Nov 2013, 10:00 -
Audio Stream Mixing in FFMPEG
By encodingmonkey in forum AudioReplies: 2Last Post: 9th May 2013, 02:38 -
ffmpeg and automatically getting correct audio stream
By onetoomany in forum Video ConversionReplies: 2Last Post: 30th Mar 2013, 15:31 -
custom mapping audio channels from different tracks
By Driber in forum AudioReplies: 4Last Post: 10th Feb 2010, 15:51