Video Production Stack Exchange is a question and answer site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does anyone know how to take a video and re-encode the audio, but just copy the video data using FFMPEG?

share|improve this question
Yes, this is definitely possible to do with ffmpeg with one command, but more information is needed for an exact example. What audio format do you want for the output? Please show some information about your input: ffmpeg -i – LordNeckbeard Dec 25 '13 at 8:04
Another forgotten question... – LordNeckbeard Dec 29 '13 at 18:44

I know that Virtual Dub can do this, but it only works with a limited number of codecs. Since it's free, it's worth a look to see if it'll do what you want.

Otherwise, any demux/remux software will work, but it'll take three steps. First demultiplex the file into video and audio streams, re-encode the audio as needed, then remux them into a combined stream.

share|improve this answer
up vote 1 down vote accepted

So Apparently FFMPEG can do this, I had to use -c:v copy and that will leave the video stream intact. I actually used an app called iFFMPEG to figure this out.

share|improve this answer
Note that if your input contains more than one video stream then only one will be stream copied by default. You can add -map 0:v to include all video streams or simply -map 0 to include all streams regardless of type (video, audio, subtitle, data, etc). See the documentation on stream selection for more info. – LordNeckbeard Jan 1 '14 at 1:49
Thanks, I actually just ran into that. – Weston Jan 3 '14 at 3:06

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.