[FFmpeg-user] mix 2 mp4 audio only

Madovsky infos at madovsky.org
Mon Feb 4 15:25:33 CET 2013


----- Original Message ----- 
From: "Carl Eugen Hoyos" <cehoyos at ag.or.at>
To: <ffmpeg-user at ffmpeg.org>
Sent: Sunday, February 03, 2013 11:52 PM
Subject: Re: [FFmpeg-user] mix 2 mp4 audio only


> Madovsky <infos <at> madovsky.org> writes:
>
>> ffmpeg -i "rtmp://server/app/live live=1"
>> -i "rtmp://rtmp://server/app/live2 live=1"
>> -vn -map 0:1 -map 1:1 -y -acodec copy output.flv
>
> (Is this the same problem you reported originally?)
>
> Is your problem only reproducible with network
> input or also if you use two input files?
>
> Carl Eugen

input files result as the first stream audible only with

ffmpeg -i "stream2.mp4" -i "stream1.mp4" -vn -map 0:1 -map 1:1 -y -acodec 
copy output.mp4

console log

=============
ffmpeg -i "stream1.mp4" -i "stream2.mp4" -vn -map 0:1 -map 1:1 -y -acodec 
copy output.mp4
ffmpeg version N-49564-gd106679 Copyright (c) 2000-2013 the FFmpeg 
developers
  built on Feb  3 2013 16:11:33 with gcc 4.3.2 (GCC) 20081105 (Red Hat 
4.3.2-7)
  configuration: --enable-static --enable-gpl --enable-nonfree --enable-libfaac 
 --enable-libx264 --enable-pthreads --enable-postproc --enable-libspeex --enable-librtmp 
 --enable-runtime-cpudetect --enable-libfreetype
  libavutil      52. 17.100 / 52. 17.100
  libavcodec     54. 91.100 / 54. 91.100
  libavformat    54. 61.104 / 54. 61.104
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 35.101 /  3. 35.101
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'stream1.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf54.61.104
  Duration: 00:02:34.04, start: 0.000000, bitrate: 811 kb/s
    Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 
0x31637661), yuv420p, 480x320 [SAR 1:1 DAR 3:2], 715 kb/s, 24 fps, 24 tbr, 
12288 tbn, 48 tbc
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, 
fltp, 91 kb/s
    Metadata:
      handler_name    : SoundHandler
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'stream2.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf54.61.104
  Duration: 00:02:30.79, start: 0.023220, bitrate: 871 kb/s
    Stream #1:0(eng): Video: h264 (Constrained Baseline) (avc1 / 
0x31637661), yuv420p, 480x320 [SAR 1:1 DAR 3:2], 776 kb/s, 24 fps, 24 tbr, 
12288 tbn, 48 tbc
    Metadata:
      handler_name    : VideoHandler
    Stream #1:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, 
fltp, 90 kb/s
    Metadata:
      handler_name    : SoundHandler
Output #0, mp4, to 'output.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf54.61.104
    Stream #0:0(eng): Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, 
91 kb/s
    Metadata:
      handler_name    : SoundHandler
    Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, 
90 kb/s
    Metadata:
      handler_name    : SoundHandler
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #1:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
size=    3489kB time=00:02:33.94 bitrate= 185.7kbits/s
video:0kB audio:3386kB subtitle:0 global headers:0kB muxing overhead 
3.047452%



More information about the ffmpeg-user mailing list