converting videos to mp3 ?
i know that this a kiddish thing but i still find it a bit annoying that i can't really figure out the procedure.
I've mostly mp4/flv media files,i need to convert them to mp3 to put in my mp3 player but at the same time i like to adjust the mp3 bitrate to save space and maintain quality sometimes. How do i actually do that in Linux. Is there any GUI program that performs the job for me quickly ? |
I'm prettys sure that soundkonverter (Qt) or soundconverter (GTK) will do it. Not a great way though, IIRC both programs will convert the video stream to audio, then run that through a ripper. Since the audio on those files types is already compressed into a lossy format, any extra conversions will reduce the sound quality.
A better way is to check the .flv or .mp4 file and see what audio codec is inside. If its MP3, just strip the video, leaving you with an unconverted original .mp3 file. The only way I know to strip the video is with the command line though. If its .aac (or similar)...honestly, in most cases it would be easy to find the file in .mp3 format, and its going to sound better than a lossy->lossy conversion. |
Here's what I would do:
Code:
ffmpeg -i 'The IT Crowd - Series 3 - Episode 4 The Internet.mp4' -acodec libmp3lame -ab 160k -ar 44100 -ac 2 out.mp3 |
Quote:
my mp4 videos have MPEG-4 AAC audio |
Quote:
|
Yes, that is the bitrate. It is a good bitrate in that bitrates over this do not provide a huge improvement in quality, but do increase the size of the file.
|
Quote:
|
i was trying to understand the command provided and also read man page for the same.
this i what i got: 1) -ab is to set bitrate 2) -ac is to set output channels 3) -ar is to set frequency please rectify me if i miss something ! But i' not getting what this is for : 1) -acodec 2) libmp3lame |
Quote:
But thats besides the point. Most .flv videos are using 128k or less MP3 encoding. Transcoding a MP3 from a smaller bitrate to a bigger bitrate will not help sound quality at all. Transcoding them at all will hurt sound quality. Theres a few ways to strip the video (or dump the audio) from .flv and .mp4/m4v here- http://www.linuxquestions.org/questi...-video-508026/ Its a much, much better idea than transcoding lossy files. Quote:
Quote:
I prefer not to have .aac files on my HDD at all, and I cant think of any file I wanted in MP3 that I couldnt find in MP3 if I tried. |
i think i'd use FFmpeg,but for now i'm searching for answers to two of my questions...
one is this and other is: How to convert multiple files using FFmpeg ? |
Quote:
Quote:
Code:
for i in *.mp4; do ffmpeg -i "$i" -acodec libmp3lame -ab 160k -ar 44100 -ac 2 "$(basename "$i" .mp4).mp3"; done |
thanks cascade9 & H_TeXMeX_H......:hattip::hattip:
i'm using FFmpeg now for conversions !! |
Quote:
|
Quote:
Sure, it will transcode...but you can transcode lossy-> lossless if you really want. Just because it will transcode, doesnt mean it should be transocded. The output .mp3 will be worse sounding than the same sized MP3 ripped from a lossless or CD source, and also worse sounding than the original .acc file as well. |
can someone please tell how to normalize mp3 volume automatically ?
|
ohhkkk..^_^
i figured it out...i'm using mp3gain to normalize volume. |
The 'normalize' command also works.
|
Quote:
|
Something like:
Code:
normalize *.mp3 |
Quote:
Quote:
|
Then it isn't installed. Either way, any such program should work well for this.
|
Quote:
BTW, you might find this interesting- http://www.hometracked.com/2008/04/2...normalization/ |
Quote:
interesting....??? it is shocking....:eek::eek::eek: |
All times are GMT -5. The time now is 11:52 AM. |