Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have one video track (xvid) and two audio tracks (ac3) in three different files, and I want to put them together. I succeeded, but there is a problem. This is the command I use:

ffmpeg -i video.avi -i audio_es.ac3 -i audio_en.ac3 -map 0:0 -map 1:0 -map 2:0 -vcodec copy -acodec copy -acodec copy  video2.avi -newaudio

And this is the output

Fmpeg version SVN-r0.5.9-4:0.5.9-0ubuntu0.10.04.3, Copyright (c) 2000-2009 Fabrice Bellard, et al.
      configuration: --extra-version=4:0.5.9-0ubuntu0.10.04.3 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
      libavutil     49.15. 0 / 49.15. 0
      libavcodec    52.20. 1 / 52.20. 1
      libavformat   52.31. 0 / 52.31. 0
      libavdevice   52. 1. 0 / 52. 1. 0
      libavfilter    0. 4. 0 /  0. 4. 0
      libswscale     0. 7. 1 /  0. 7. 1
      libpostproc   51. 2. 0 / 51. 2. 0
      built on Jan 24 2013 19:42:59, gcc: 4.4.3
    [avi @ 0x22be260]non-interleaved AVI
    Input #0, avi, from 'video.avi':
      Duration: 00:50:01.00, start: 0.000000, bitrate: 2988 kb/s
        Stream #0.0: Video: mpeg4, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 25 tbr, 25 tbn, 25 tbc
    Input #1, ac3, from 'audio_es.ac3':
      Duration: 00:50:00.99, bitrate: 320 kb/s
        Stream #1.0: Audio: ac3, 48000 Hz, stereo, s16, 320 kb/s
    Input #2, ac3, from 'audio_en.ac3':
      Duration: 00:50:00.99, bitrate: 320 kb/s
        Stream #2.0: Audio: ac3, 48000 Hz, stereo, s16, 320 kb/s
    Output #0, avi, to 'video3.avi':
        Stream #0.0: Video: mpeg4, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], q=2-31, 90k tbn, 25 tbc
        Stream #0.1: Audio: ac3, 48000 Hz, stereo, s16, 320 kb/s
        Stream #0.2: Audio: mp2, 48000 Hz, stereo, s16, 64 kb/s
    Stream mapping:
      Stream #0.0 -> #0.0
      Stream #1.0 -> #0.1
      Stream #2.0 -> #0.2
    Press [q] to stop encoding
    frame= 9796 fps=5319 q=-1.0 Lsize=  129383kB time=391.84 bitrate=2704.9kbits/s   
    video:110097kB audio:18368kB global headers:0kB muxing overhead 0.714597%

As you see in output stream, it doesn't convert any input file except second audio stream into mp2 (64kbps), while input file is AC3 (320kbps). I don't know how to tell ffmpeg to not convert any file. Just put them together as they are.

Can anybody help me?

share|improve this question

migrated from stackoverflow.com Feb 25 at 20:53

This question came from our site for professional and enthusiast programmers.

    
Your question is offtopic. It does not appear to be about programming within the scope defined in the help center. Your question can be voted/flagged for migration to Super User. –  LordNeckbeard Feb 24 at 18:25
    
Yes, and you'll get better answers there for ffmpeg cli tool questions. It's better the flag your question for migration other than making a new post to avoid duplicates. –  LordNeckbeard Feb 25 at 18:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.