estreeter
Headphoneus Supremus
- Joined
- Jun 10, 2009
- Posts
- 8,336
- Likes
- 480
Hi All,
This is hardly groundbreaking stuff, but I think its worth a post or two for those of us looking to fit more files on portable devices. Ripping to FLAC then transcoding to a lossy format makes sense when you find yourself with a 16GB SD card (as does pruning a lot of the 'once in a blue moon' tracks that find their way onto my players). Most of my existing portable stash is 256K AAC, but I soon realised that I needed to find a way to get comparable quality from smaller files.
I'm not going to get bogged down in a discussion of which 'quality' option is best for Opus/Vorbis compression, but I was surprised to see folk on various forums claiming to have good results with OPUS at bitrates as low as 150kbit/s - I normally wont go any lower than 256K with AAC or MP3 VBR. The dealkiller was that Onkyo HF Player doesnt seem to support Opus on Android, so it was back to Vorbis.
Given the joys of listening in noisy environments, and my modest gear, one might argue that I should just go with 256K VBR MP3s and call it a day - I cant think of a single playback app that doesnt support the format and the files are smaller than the AAC originals. Just as I hold to the belief that AAC is a better algorithm than MP3, I'm prepared to countenance the possibility that the claims made for Vorbis over MP3 are accurate.
And that brings me to this little exercise, where I've converted a FLAC file to aac and ogg using the Linux tools at my disposal (ffmpeg and oggenc, FWIW), only to arrive at very similar outcomes for ~256K VBR:
someguy@somebox:~/Desktop/CONVERSIONS/comparisons$ ls --block-size=M -l
total 100M
-rw-rw-r-- 1 a* a* 8M Aug 13 09:43 Aura.aac
-rw-r--r-- 1 a* a* 86M Aug 13 09:38 Aura.flac
-rw-rw-r-- 1 a* a* 8M Aug 13 09:53 Aura.ogg
Most of us would happily opt for either 8M file over the FLAC original unless we had a seriously large hard drive on our portable player, but Vorbis does seem to have saved a few KBytes somewhere in the mix:
./comparisons$ ls --block-size=K -l
total 102068K
-rw-rw-r-- 1 a* a* 7448K Aug 13 09:43 Aura.aac
-rw-r--r-- 1 a* a* 87232K Aug 13 09:38 Aura.flac
-rw-rw-r-- 1 a* a* 7385K Aug 13 09:53 Aura.ogg
~65K isnt going to send too many of us dashing off to transcode our libraries, but multiply that by hundreds or even thousands of files and it means I can fit more files on my tablet/phone - that's a win IMO. My listening to date hasnt revealed any apparent difference in quality, but for someone with more revealing gear it might be different. This isnt about lossless vs lossy - no argument that I sacrificed something the day I opted for AAC over the original archived lossless files - its whether or not Vorbis makes sense for those of us who are prepared to accept a lossy format in exchange for having more music on our devices. The clincher for me was the fact that oggenc happily transferred my FLAC metadata to the ogg file, including the cover art - I like it when a plan comes together.
estreeter
For those who wish to experiment with their own music, this is the command I used to do the transcoding from FLAC to Vorbis (Ubuntu 15.04 'MATE'). Foobar2K makes things a lot simpler but its easier (for me) to script batch conversions on Linux. As always, use what works for you.
./comparisons$ /usr/bin/oggenc Aura.flac -q 6.45 -o Aura.ogg
Opening with flac module: FLAC file reader
Encoding "Aura.flac" to
"Aura.ogg"
at quality 6.45
[ 99.9%] [ 0m00s remaining] /
Done encoding file "Aura.ogg"
File length: 3m 53.0s
Elapsed time: 0m 21.0s
Rate: 11.1281
Average bitrate: 257.7 kb/s
./comparisons$ file *
Aura.aac: MPEG ADTS, AAC, v4 LC, 96 kHz, stereo
Aura.flac: FLAC audio bitstream data, 24 bit, stereo, 96 kHz, 22385280 samples
Aura.ogg: Ogg data, Vorbis audio, stereo, 96000 Hz, ~4294967294 bps, created by: Xiph.Org libVorbis I
This is hardly groundbreaking stuff, but I think its worth a post or two for those of us looking to fit more files on portable devices. Ripping to FLAC then transcoding to a lossy format makes sense when you find yourself with a 16GB SD card (as does pruning a lot of the 'once in a blue moon' tracks that find their way onto my players). Most of my existing portable stash is 256K AAC, but I soon realised that I needed to find a way to get comparable quality from smaller files.
I'm not going to get bogged down in a discussion of which 'quality' option is best for Opus/Vorbis compression, but I was surprised to see folk on various forums claiming to have good results with OPUS at bitrates as low as 150kbit/s - I normally wont go any lower than 256K with AAC or MP3 VBR. The dealkiller was that Onkyo HF Player doesnt seem to support Opus on Android, so it was back to Vorbis.
Given the joys of listening in noisy environments, and my modest gear, one might argue that I should just go with 256K VBR MP3s and call it a day - I cant think of a single playback app that doesnt support the format and the files are smaller than the AAC originals. Just as I hold to the belief that AAC is a better algorithm than MP3, I'm prepared to countenance the possibility that the claims made for Vorbis over MP3 are accurate.
And that brings me to this little exercise, where I've converted a FLAC file to aac and ogg using the Linux tools at my disposal (ffmpeg and oggenc, FWIW), only to arrive at very similar outcomes for ~256K VBR:
someguy@somebox:~/Desktop/CONVERSIONS/comparisons$ ls --block-size=M -l
total 100M
-rw-rw-r-- 1 a* a* 8M Aug 13 09:43 Aura.aac
-rw-r--r-- 1 a* a* 86M Aug 13 09:38 Aura.flac
-rw-rw-r-- 1 a* a* 8M Aug 13 09:53 Aura.ogg
Most of us would happily opt for either 8M file over the FLAC original unless we had a seriously large hard drive on our portable player, but Vorbis does seem to have saved a few KBytes somewhere in the mix:
./comparisons$ ls --block-size=K -l
total 102068K
-rw-rw-r-- 1 a* a* 7448K Aug 13 09:43 Aura.aac
-rw-r--r-- 1 a* a* 87232K Aug 13 09:38 Aura.flac
-rw-rw-r-- 1 a* a* 7385K Aug 13 09:53 Aura.ogg
~65K isnt going to send too many of us dashing off to transcode our libraries, but multiply that by hundreds or even thousands of files and it means I can fit more files on my tablet/phone - that's a win IMO. My listening to date hasnt revealed any apparent difference in quality, but for someone with more revealing gear it might be different. This isnt about lossless vs lossy - no argument that I sacrificed something the day I opted for AAC over the original archived lossless files - its whether or not Vorbis makes sense for those of us who are prepared to accept a lossy format in exchange for having more music on our devices. The clincher for me was the fact that oggenc happily transferred my FLAC metadata to the ogg file, including the cover art - I like it when a plan comes together.
estreeter
For those who wish to experiment with their own music, this is the command I used to do the transcoding from FLAC to Vorbis (Ubuntu 15.04 'MATE'). Foobar2K makes things a lot simpler but its easier (for me) to script batch conversions on Linux. As always, use what works for you.
./comparisons$ /usr/bin/oggenc Aura.flac -q 6.45 -o Aura.ogg
Opening with flac module: FLAC file reader
Encoding "Aura.flac" to
"Aura.ogg"
at quality 6.45
[ 99.9%] [ 0m00s remaining] /
Done encoding file "Aura.ogg"
File length: 3m 53.0s
Elapsed time: 0m 21.0s
Rate: 11.1281
Average bitrate: 257.7 kb/s
./comparisons$ file *
Aura.aac: MPEG ADTS, AAC, v4 LC, 96 kHz, stereo
Aura.flac: FLAC audio bitstream data, 24 bit, stereo, 96 kHz, 22385280 samples
Aura.ogg: Ogg data, Vorbis audio, stereo, 96000 Hz, ~4294967294 bps, created by: Xiph.Org libVorbis I