IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
FFMPEG Command Line
johnbil
post Apr 28 2013, 21:27
Post #1





Group: Members
Posts: 3
Joined: 26-April 13
From: Staten Island, N
Member No.: 107842



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? huh.gif

Thanks in advance,
John
Go to the top of the page
+Quote Post
Kohlrabi
post Apr 28 2013, 21:43
Post #2





Group: Super Moderator
Posts: 1050
Joined: 12-March 05
From: Kiel, Germany
Member No.: 20561



You need to reencode the audio stream. Try:
CODE
ffmpeg -i filename.avi -vn -sn -acodec libmp3lame -ab 128k -ar 48k -y tempaudio.mp3


--------------------
Ceterum censeo Masterdiskem esse delendam.
Go to the top of the page
+Quote Post
johnbil
post Apr 29 2013, 07:51
Post #3





Group: Members
Posts: 3
Joined: 26-April 13
From: Staten Island, N
Member No.: 107842



That did it. Thanks.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd September 2014 - 05:39