Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: FFMPEG Command Line (Read 2125 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

FFMPEG Command Line

I am trying to write a batch file to normalize the audio portion of some AVI files. I'm more or less finished, but am have a little difficulty with a couple of the specifics.

I am using this command line to create a temporary audio file:

ffmpeg -i filename.avi -vn -acodec copy -y tempaudio.mp3

I am looking to have the file have a specific Bitrate (128 Kbps) and Sample Rate (48000 Hz). What adjustments would I have to make to the above to achieve this? 

Thanks in advance,
John

FFMPEG Command Line

Reply #1
You need to reencode the audio stream. Try:
Code: [Select]
ffmpeg -i filename.avi -vn -sn -acodec libmp3lame -ab 128k -ar 48k -y tempaudio.mp3
It's only audiophile if it's inconvenient.

 

FFMPEG Command Line

Reply #2
That did it. Thanks.