Which is higher quality--mp2, mp3, aac at DVinfo.net
DV Info Net

Go Back   DV Info Net > Apple / Mac Post Production Solutions > Final Cut Suite
Register FAQ Today's Posts Buyer's Guides

Final Cut Suite
Discussing the editing of all formats with FCS, FCP, FCE

Reply
 
Thread Tools Search this Thread
Old October 4th, 2007, 12:14 AM   #1
Regular Crew
 
Join Date: Dec 2002
Location: NY, NY
Posts: 319
Which is higher quality--mp2, mp3, aac

I have some .ogg files I want encoded to files usable for FCS2. I'm using ffmpegx to encode. The options for audio file are to mp2, mp3, aac and I'm wondering which is the highest quality.

I assume aac, which has the highest kbps--448. The mp2 is 224 kbps and mp3 128 kbps. Am I ass-uming correctly or just an ass?
Elmer Lang is offline   Reply With Quote
Old October 4th, 2007, 12:52 AM   #2
Major Player
 
Join Date: Jul 2007
Location: Marin & Davis, CA, USA
Posts: 418
AAC is newer and better. It's what itunes uses.
Daniel Ross is offline   Reply With Quote
Old October 4th, 2007, 01:09 AM   #3
Major Player
 
Join Date: Mar 2006
Location: San Francisco, California
Posts: 487
Not sure about FCP6, but FCP generally doesn't like to edit compressed audio. It usually works better if you use AIFF.
Chris Harris is offline   Reply With Quote
Old October 4th, 2007, 01:27 AM   #4
Major Player
 
Join Date: Jul 2007
Location: Marin & Davis, CA, USA
Posts: 418
Absolutely use uncompressed. But if you must go through a compressor, use AAC as the intermediate step.
Daniel Ross is offline   Reply With Quote
Old October 4th, 2007, 03:43 AM   #5
Major Player
 
Join Date: Mar 2007
Location: Madrid, Spain
Posts: 238
First: Ogg is only a container format, it can contain audio in various encodings such as FLAC and Vorbis. If it is FLAC then you can just convert to the format most suitable for your use since FLAC is lossless compression. If possible, you may prefer to use ALAC (Apple Lossless).

Otherwise, you should choose according to which conversion reduces quality the least, the result does not depend only on the bit rate of the final format. I don't know ffmpegx, but I know that if you use the command line version of ffmpeg, you can set the bit rate for the target file.

If you don't know the audio codec and bitrate of the source, ffmpeg will tell you, at least if you use the command line version.

Cheers, Erik
Erik Norgaard is offline   Reply With Quote
Old October 4th, 2007, 08:49 AM   #6
Regular Crew
 
Join Date: Dec 2002
Location: NY, NY
Posts: 319
Thanks for the replies.

Yes, I'm anxious to convert to the best format. If anyone knows ffmpegx, I'd appreciate an opinion on which of the options is the best format to convert to.
Elmer Lang is offline   Reply With Quote
Old October 4th, 2007, 08:59 AM   #7
Regular Crew
 
Join Date: Dec 2002
Location: NY, NY
Posts: 319
About the best option I've found there is 'DV'. It delivers pcm dv, 48kHz, 1411 kbps. Unfortunately, it doesn't work with the file I have.
Elmer Lang is offline   Reply With Quote
Old October 4th, 2007, 09:11 AM   #8
Regular Crew
 
Join Date: Dec 2002
Location: NY, NY
Posts: 319
Cricky, I just see it produces ac3, not aac. Is ac3 better than mp2 or mp3? Thanks.
Elmer Lang is offline   Reply With Quote
Old October 4th, 2007, 10:13 AM   #9
Major Player
 
Join Date: Mar 2007
Location: Madrid, Spain
Posts: 238
How about checking ffmpegx web site? They have some nice explanation of all this, see http://www.ffmpegx.com/audio.html

First, you can set bit rate for the different encodings, what is shown is likely just default values. I would be surprised if you can't encode mp3 in higher bit rate than 128kbps, AFAIK maximum by standard is 320kbps or 384kbps.

Second, you won't gain anything from using a higher sample frequency than the source, but you may add noise and you will loose using a lower sample frequency.

The highest frequency that can be encoded is half the sample frequency. If source is 44.1kHz then there are no sounds higher than 22.05kHz, encoding in 48kHz will not add anything, but you may add noise as data is chunked up differently. This is independent of the encoding algorithm you choose.

Last, they do write a comparison of the three formats you ask about:

"It (AAC) provides an audio quality at 96 kbps which is slightly better than MP3 at 128 kbps and MP2 at 192 kbps."

I think that pretty much answers your question, except it doesn't tell anything about any loss when transforming from one compressed format to another.

Also, wikipedia has great info on all the different codecs, AC3 appears to be Dolby Digital.

Cheers, Erik
Erik Norgaard is offline   Reply With Quote
Old October 4th, 2007, 12:28 PM   #10
Regular Crew
 
Join Date: Dec 2002
Location: NY, NY
Posts: 319
Hey Eric, thanks for all the info and tips. Someone told me about a software that encodes to aif, Max. I downloaded and used that. Sounds pretty good, but thanks, especially enlightening was the info about adding noise when moving up in sample frequency.

Quote:
Originally Posted by Erik Norgaard View Post
The highest frequency that can be encoded is half the sample frequency. If source is 44.1kHz then there are no sounds higher than 22.05kHz, encoding in 48kHz will not add anything, but you may add noise as data is chunked up differently. This is independent of the encoding algorithm you choose.
That's weird to my primitive understanding. So if I trying to transcode to .aif an .mp3 and 48kHz, I should only encode at 24kHz? Dang!

All in all, this has been a very informative series of emails and I thank you for it!!!
Elmer Lang is offline   Reply With Quote
Old October 4th, 2007, 12:42 PM   #11
Major Player
 
Join Date: Jul 2007
Location: Marin & Davis, CA, USA
Posts: 418
No. Don't save to a lower format.

The 48 is a container, and can hold up to 24khz in it.

I'd need to brush up on my physics to give a better explanation. Can't remember right now.
Daniel Ross is offline   Reply With Quote
Old October 4th, 2007, 12:55 PM   #12
Trustee
 
Join Date: Feb 2004
Location: Brookline, MA
Posts: 1,447
So don't use ffmpegx. Find something to decompress them to AIFF.
Emre Safak is offline   Reply With Quote
Old October 4th, 2007, 01:56 PM   #13
Regular Crew
 
Join Date: Dec 2002
Location: NY, NY
Posts: 319
Thanks very much, gents.

I did find 'Max', an app that seemed to do a very good job, outputting an .aiff file, 16 bit PCM Big Endian signed integer, 44.1 khz.

I don't see any way of changing to 48kHz before encoding but I guess I can export that in QT to get 48kHz.

Containers? Holding up to 24kHz? Egad! I'm Johnny Baffled.

Thanks again!!
Elmer Lang is offline   Reply With Quote
Old October 4th, 2007, 03:34 PM   #14
Major Player
 
Join Date: Jul 2007
Location: Marin & Davis, CA, USA
Posts: 418
24KHz is above the range the human ear can hear.
My best guess here is that the doubling is due to storing a waveform, meaning 24KHz above the center can be stored, and the inverse below (down to 0KHz).

I think this is wrong, but it sorta makes sense why it needs twice the space.

As I said, I'd need to figure out a few more things with physics [blurry memories now] (and the formats themselves, too).

Ok, looked it up--
http://en.wikipedia.org/wiki/Sample_rate
Hmm... seems like the double space is just a buffer.

//confused.

Hz is literally a measure of "per second"... Hz= per seconds. 48k per seconds.... 48k times per second the audio is sampled.
I guess this measure is different than the actual pitch of audio.

Wish I could explain it better.
Daniel Ross is offline   Reply With Quote
Old October 5th, 2007, 05:21 AM   #15
Major Player
 
Join Date: Mar 2007
Location: Madrid, Spain
Posts: 238
Quote:
Originally Posted by Elmer Lang View Post
thanks, especially enlightening was the info about adding noise when moving up in sample frequency.
I like to emphasize: I don't *know* if you will suffer additional noise, this depends on many factors and requires a much deeper understanding of the compression algorithms than I have. I can imagine it *may* be a problem in certain circumstances, and I do know that you won't gain anything. Ars Technica just had a nice article about mp3 that explains how the sound is analyzed, and from this it appears possible that you may loose quality even if going from mp3 at 44.1kHz to mp3 at 48kHz.

Quote:
Originally Posted by Elmer Lang View Post
That's weird to my primitive understanding. So if I trying to transcode to .aif an .mp3 and 48kHz, I should only encode at 24kHz? Dang!
No, when you use a eg. 44.1kHz sampling frequency (standard on CD's) it means that the highest frequency that can be encoded is 22.05kHz. Any ultra sounds are excluded. This also explains why you won't get anything using a higher sampling frequency than the source. If you transcode from say mp3 to aac, use the same sampling frequency for both.

Sometimes it is necessary to change sampling frequency because you mix sources of different sampling frequency. In theory, you should choose the highest sampling frequency of the different sources in order not to loose anything.

However, since these high frequency sounds are not detectable by the human ear, it hardly matters much. Rather, you should look at your chosen target format and see if common standards impose any restrictions on your final encoding.

Whenever converting from lossy to lossy, you loose quality, so you've got to think about how to reduce the number of conversions and mix in the highest quality then down convert as necessary, not the other way around.
Erik Norgaard is offline   Reply
Reply

DV Info Net refers all where-to-buy and where-to-rent questions exclusively to these trusted full line dealers and rental houses...

B&H Photo Video
(866) 521-7381
New York, NY USA

Scan Computers Int. Ltd.
+44 0871-472-4747
Bolton, Lancashire UK


DV Info Net also encourages you to support local businesses and buy from an authorized dealer in your neighborhood.
  You are here: DV Info Net > Apple / Mac Post Production Solutions > Final Cut Suite


 



All times are GMT -6. The time now is 10:25 AM.


DV Info Net -- Real Names, Real People, Real Info!
1998-2024 The Digital Video Information Network