[FFmpeg-user] adding an ac3 stream to an a/v stream

Andrew RT andrew2012 at flight.us
Tue Apr 2 11:32:44 CEST 2013



> On March 30, 2013 at 7:19 PM Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
>
>
> Andrew RT <andrew2012 <at> flight.us> writes:
>
> > AFAICT (correct me if i'm wrong), the "-acodec copy"
> > and similar options are obsolete
>
> Why?
>
> > as well as "-newaudio" and things like that.
>
> -new* does not exist anymore for two years.
>
> > So, one command I found did not throw any errors, but
> > the result is a file with static/buzzing audio:
> >
> > ffmpeg -i myvideo.avi -i extra_audio.ac3  -map 0:0
> > -map 0:1 -map 1:0  -codec:v:0 copy -codec:a:0 copy
> > -codec:a:1 copy  muxed_output.avi
>
> Please provide the complete, uncut console output.
>

ffmpeg -i myvideo.avi -i extra_audio.ac3  -map 0:0 -map 0:1 -map 1:0  -codec:v:0 copy -codec:a:0 copy -codec:a:1 copy muxed_output.avi

ffmpeg version N-51346-gace0cfe Copyright (c) 2000-2013 the FFmpeg developers
  built on Mar 27 2013 16:23:10 with gcc 4.4.3 (Ubuntu 4.4.3-4ubuntu5.1)
  configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab
  WARNING: library configuration mismatch
  avutil      configuration: --enable-version3 --enable-nonfree --enable-libtheora --enable-gpl --enable-postproc --enable-libvorbis --enable-libgsm --enable-libmp3lame --enable-libfaac --enable-libxvid --enable-pthreads --enable-libx264 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-shared
  avcodec     configuration: --enable-version3 --enable-nonfree --enable-libtheora --enable-gpl --enable-postproc --enable-libvorbis --enable-libgsm --enable-libmp3lame --enable-libfaac --enable-libxvid --enable-pthreads --enable-libx264 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-shared
  avformat    configuration: --enable-version3 --enable-nonfree --enable-libtheora --enable-gpl --enable-postproc --enable-libvorbis --enable-libgsm --enable-libmp3lame --enable-libfaac --enable-libxvid --enable-pthreads --enable-libx264 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-shared
  avdevice    configuration: --enable-version3 --enable-nonfree --enable-libtheora --enable-gpl --enable-postproc --enable-libvorbis --enable-libgsm --enable-libmp3lame --enable-libfaac --enable-libxvid --enable-pthreads --enable-libx264 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-shared
  avfilter    configuration: --enable-version3 --enable-nonfree --enable-libtheora --enable-gpl --enable-postproc --enable-libvorbis --enable-libgsm --enable-libmp3lame --enable-libfaac --enable-libxvid --enable-pthreads --enable-libx264 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-shared
  swscale     configuration: --enable-version3 --enable-nonfree --enable-libtheora --enable-gpl --enable-postproc --enable-libvorbis --enable-libgsm --enable-libmp3lame --enable-libfaac --enable-libxvid --enable-pthreads --enable-libx264 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-shared
  swresample  configuration: --enable-version3 --enable-nonfree --enable-libtheora --enable-gpl --enable-postproc --enable-libvorbis --enable-libgsm --enable-libmp3lame --enable-libfaac --enable-libxvid --enable-pthreads --enable-libx264 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-shared
  postproc    configuration: --enable-version3 --enable-nonfree --enable-libtheora --enable-gpl --enable-postproc --enable-libvorbis --enable-libgsm --enable-libmp3lame --enable-libfaac --enable-libxvid --enable-pthreads --enable-libx264 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-shared
  libavutil      52. 22.101 / 52. 22.101
  libavcodec     55.  2.100 / 55.  2.100
  libavformat    55.  0.100 / 55.  0.100
  libavdevice    55.  0.100 / 55.  0.100
  libavfilter     3. 48.105 /  3. 48.105
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Input #0, avi, from 'myvideo.avi':
  Metadata:
    encoder         : Lavf55.0.100
  Duration: 02:20:39.44, start: 0.000000, bitrate: 1486 kb/s
    Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 720x304 [SAR 1:1 DAR 45:19], 23.98 tbr, 23.98 tbn, 23.98 tbc
    Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), fltp, 320 kb/s
[ac3 @ 0x97d8940] max_analyze_duration 5000000 reached at 5024000 microseconds
[ac3 @ 0x97d8940] Estimating duration from bitrate, this may be inaccurate
Input #1, ac3, from 'extra_audio.ac3':
  Duration: 02:07:42.24, start: 0.000000, bitrate: 447 kb/s
    Stream #1:0: Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s
Output #0, avi, to 'muxed_output.avi':
  Metadata:
    ISFT            : Lavf55.0.100
    Stream #0:0: Video: mpeg4 (XVID / 0x44495658), yuv420p, 720x304 [SAR 1:1 DAR 45:19], q=2-31, 23.98 tbn, 23.98 tbc
    Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), 320 kb/s
    Stream #0:2: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), 448 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
  Stream #1:0 -> #0:2 (copy)

Press [q] to stop, [?] for help
frame= 1354 fps=0.0 q=-1.0 size=    8099kB time=00:00:56.47 bitrate=1174.9kbits/s
frame= 3056 fps=3055 q=-1.0 size=   16887kB time=00:02:07.46 bitrate=1085.3kbits/s
frame= 4481 fps=2983 q=-1.0 size=   30164kB time=00:03:06.91 bitrate=1322.1kbits/s
frame= 5585 fps=2786 q=-1.0 size=   40466kB time=00:03:54.75 bitrate=1412.1kbits/s
frame= 6629 fps=2647 q=-1.0 size=   50754kB time=00:04:36.51 bitrate=1503.7kbits/s
frame= 7782 fps=2583 q=-1.0 size=   65733kB time=00:05:31.48 bitrate=1624.4kbits/s
frame= 8047 fps=2289 q=-1.0 size=   71709kB time=00:05:46.49 bitrate=1695.4kbits/s
frame= 8048 fps=1721 q=-1.0 size=   71736kB time=00:05:46.75 bitrate=1694.8kbits/s
frame= 8075 fps=1560 q=-1.0 size=   72373kB time=00:05:50.01 bitrate=1693.9kbits/s
frame= 9303 fps=1636 q=-1.0 size=   90285kB time=00:06:28.03 bitrate=1906.1kbits/s
frame= 9939 fps=1607 q=-1.0 size=  104210kB time=00:06:57.08 bitrate=2046.8kbits/s
frame=11002 fps=1645 q=-1.0 size=  113531kB time=00:07:38.88 bitrate=2026.8kbits/s
frame=11680 fps=1625 q=-1.0 size=  120748kB time=00:08:07.52 bitrate=2029.0kbits/s
frame=12558 fps=1634 q=-1.0 size=  128849kB time=00:08:43.77 bitrate=2015.2kbits/s
frame=14294 fps=1746 q=-1.0 size=  133602kB time=00:09:56.17 bitrate=1835.8kbits/s
frame=14606 fps=1679 q=-1.0 size=  146250kB time=00:10:19.42 bitrate=1934.2kbits/s
frame=15446 fps=1679 q=-1.0 size=  152360kB time=00:10:44.25 bitrate=1937.3kbits/s
frame=16184 fps=1667 q=-1.0 size=  158815kB time=00:11:15.00 bitrate=1927.4kbits/s
frame=17344 fps=1699 q=-1.0 size=  166798kB time=00:12:03.39 bitrate=1888.9kbits/s
frame=18006 fps=1682 q=-1.0 size=  173723kB time=00:12:34.33 bitrate=1886.6kbits/s
frame=18970 fps=1693 q=-1.0 size=  180930kB time=00:13:14.14 bitrate=1866.4kbits/s
frame=20477 fps=1749 q=-1.0 size=  190904kB time=00:14:14.06 bitrate=1831.1kbits/s
frame=21586 fps=1767 q=-1.0 size=  200876kB time=00:15:00.32 bitrate=1827.8kbits/s
frame=22393 fps=1761 q=-1.0 size=  209959kB time=00:15:33.98 bitrate=1841.6kbits/s
frame=23387 fps=1770 q=-1.0 size=  218759kB time=00:16:15.45 bitrate=1837.2kbits/s
frame=23615 fps=1755 q=-1.0 Lsize=  222070kB time=00:16:26.33 bitrate=1844.4kbits/s

video:127607kB audio:92441kB subtitle:0 global headers:0kB muxing overhead 0.919301%
Received signal 2: terminating.



More information about the ffmpeg-user mailing list