FG
💻 Software

Would like to change audio codec, but keep video settings with ffmpeg

Fresh7 days ago
Mar 15, 2026105671 views
Confidence Score1%
1%

Problem

I have a video for which I'd like to convert the audio codec to AAC 320 kbps / 44.100 kHz. What would I use for ffmpeg switches such that all the video settings and codec remain the same, but only the audio codec and settings change? Here's my video: Many thanks in advance! One thing with ffmpeg I've never been able to grok is how to just "tweak" files without having to regurgitate every little setting for things you don't want changed.

Error Output

$ ffmpeg -i Winnipeg.rb\ Scala-Talk.mov 
FFmpeg version SVN-r25375, Copyright (c) 2000-2010 the FFmpeg developers
  built on Oct  6 2010 13:02:41 with gcc 4.2.1 (Apple Inc. build 5664)
  configuration: --enable-libmp3lame --enable-shared --disable-mmx --arch=x86_64
  libavutil     50.32. 2 / 50.32.…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Would like to change audio codec, but keep video settings with ffmpeg

Low Risk

An aggregation of Ehsan's answer with fletom's comment that works for me, thanks to both.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment