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: turning M4A to something useful for my mp3player (Read 6726 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

turning M4A to something useful for my mp3player

Hello,

I have a large library of music purchased from iTunes mostly in LC AAC form in M4A non drm container

i want to transcode this lossy format to something usefull to play in my new MP3 player which only accepts these formats:

http://kb.sandisk.com/app/answers/detail/a...d-music-formats


i tried converting from lossy AAC to losseless Flac(0 compression) using default foobar2000 encoder

but i was able to hear diffrence in ABX tests up to 70% of the time( i can post logs)

what do you recommend for me to use to transcode and is foobar2000 AAC decoder good enough? can't shake the feeling that i am losing some information in the transcoding process using foobar2000's default encoder/decoder to transcode FLAC(0)



thanks

turning M4A to something useful for my mp3player

Reply #1
i want to transcode this lossy format to something usefull to play in my new MP3 player which only accepts these formats:


Instead of transcoding (which will only increase filesize if you go lossless, or degrade quality is you go lossy), you could install Rockbox, an alternative firmware that does support AAC (.m4a files from iTunes). No transcoding required with that option.

but i was able to hear diffrence in ABX tests up to 70% of the time( i can post logs)

A 5% probality that you're guessing (or less) is required to determine with a high degree of confidence that you do hear a difference.

can't shake the feeling that i am losing some information in the transcoding process using foobar2000's default encoder/decoder to transcode FLAC(0)


It is highly unlikely that foobar2000's decoder is doing anything wrong here. Also, if you still want to go the FLAC route, at least use the default compression setting (-5), you'll get smaller files.

turning M4A to something useful for my mp3player

Reply #2
I'll echo the idea that you should just rockbox the thing and then transcoding becomes a moot issue.

I'm assuming that since you are transcoding to FLAC -0 that you seem to think there is a quality difference in the compression levels. There is no quality difference in FLAC compression levels. They are all completely lossless. You will get the exact same waveform output from flac regardless of compression level. The compression level is there to balance encoding workload with your requirements or available power. A really slow machine may not be able to encode flac -8 in real time or better but it may be able to encode flac -0 fast enough. No matter if you use -0 or -8, the resulting output once decoded will be 100% bit identical.

I agree with skamp that you're not successfully ABXing the 2 files. Flac, being lossless will produce exactly the same output that the aac decoder produced. There simply is no difference between listening to the aac file and listening to a transcode of the aac file from the same aac decoder to any lossless format.

turning M4A to something useful for my mp3player

Reply #3
Quote
tried converting from lossy AAC to losseless Flac(0 compression) using default foobar2000 encoder
That doesn't make sense...  In either case, the same data should be hitting the DAC.  It's just a question of when the AAC file is decoded. 

If something is different it's NOT caused by the lossless FLAC encoding/decoding.

turning M4A to something useful for my mp3player

Reply #4
Thanks guys it i learned alot

so the compression level are just regarding cpu resources, ok i will try more compressed FLAC in the future

i just done another(third) ABX test and i will attach the log file


i choose a song with dynamics to more emphasize the differences between formats if that makes any sense

same volume level and just closing my eyes and listening(so hard effort)



what i meant DVDdoug:

"tried converting from lossy AAC to losseless Flac(0 compression) using default foobar2000 encoder"

is i used all the encoding/decoding components from the stock foobar v1.1.14a. no manual command lines was used


regarding the Rockbox i will search the idea but i was avoiding over concerns of bricking the device. but seems to be the better way.


thanks

turning M4A to something useful for my mp3player

Reply #5
foo_abx 1.3.4 report
foobar2000 v1.1.14a
2012/11/07 01:19:26

File A: C:\Users\Hamza\Music\Flac\Madonna\Like a Prayer\Madonna - 01 - Like a Prayer.flac
File B: C:\Users\Hamza\Music\iTunes\iTunes Media\Music\Madonna\Like a Prayer\01 Like a Prayer.m4a

01:19:26 : Test started.
01:20:38 : 01/01  50.0%
01:21:58 : 02/02  25.0%
01:22:51 : 02/03  50.0%
01:23:02 : 03/04  31.3%
01:23:25 : 03/05  50.0%
01:24:02 : 04/06  34.4%
01:25:59 : 05/07  22.7%
01:27:33 : 06/08  14.5%
01:29:30 : 07/09  9.0%
01:29:55 : 07/10  17.2%
01:31:23 : 08/11  11.3%
01:32:15 : 08/12  19.4%
01:33:02 : 08/13  29.1%
01:34:39 : 09/14  21.2%
01:37:29 : 10/15  15.1%
01:39:06 : 11/16  10.5%
01:40:56 : 12/17  7.2%
01:41:53 : 13/18  4.8%
01:44:27 : 14/19  3.2%
01:45:18 : 15/20  2.1%
01:45:21 : Test finished.

----------
Total: 15/20 (2.1%)

turning M4A to something useful for my mp3player

Reply #6
There is no reason to up convert a lossy AAC file to a lossless FLAC file.  The sound quality does not improve and you are increasing the file size by double at the least.  That was what DVD Doug was referencing.

If you are transcoding a lossy file, transcode it to another lossy file; OGG, MP3, etc.
CK

turning M4A to something useful for my mp3player

Reply #7
There is no reason to up convert a lossy AAC file to a lossless FLAC file.


Yes there is: converting to a different format for compatibility reasons with no loss of quality.

If you are transcoding a lossy file, transcode it to another lossy file; OGG, MP3, etc.


That would reduce quality, although it might or might not be audible. But the first solution is not a bad one.

turning M4A to something useful for my mp3player

Reply #8
Except that the resulting files are rather large.  A 4 minute file with the same sound quality as the source AAC file (likely 256kbps) would be almost 10 times higher when using FLAC without gaining any quality.  That's all fine and dandy if you want to sacrifice storage space on a device by that much (while not gaining quality) but I don't see a reason for it.  Rockbox would be a much better solution since it would play the AAC files directly and the OP wouldn't need to fill their player up with lossless files that retain lossy quality.

turning M4A to something useful for my mp3player

Reply #9
A 4 minute file with the same sound quality as the source AAC file (likely 256kbps) would be almost 10 times higher when using FLAC without gaining any quality.

Mistaken with 3 times?
256 * 10 exceeds the size of uncompressed PCM in redbook format.

turning M4A to something useful for my mp3player

Reply #10
i was hoping for a transcoding solution since i enjoy very much learning 

Yes there is: converting to a different format for compatibility reasons with no loss of quality.


makes sense that each time going lossy is losing information

also making sense is rockbox because it allows it (AAC) hassle free


but i would love to get back at why it sounded different for me(m4a vs flac0 transcoded via stock foobar2000) maybe i will try doing manual command lines for transcoding just for the sake of comparsion. maybe use daaf2 or somethting. i got to read more

turning M4A to something useful for my mp3player

Reply #11
A 4 minute file with the same sound quality as the source AAC file (likely 256kbps) would be almost 10 times higher when using FLAC without gaining any quality.


What? That would be 2560 kbps. Uncompressed 16/44.1 PCM (which iTunes AAC files decode to) is 1411.2 kbps (that's 5.5 times higher than 256 kbps), and my entire FLAC collection averages at 880 kbps (that's 3.4 times higher). A far cry from "10 times higher".

Rockbox would be a much better solution since it would play the AAC files directly and the OP wouldn't need to fill their player up with lossless files that retain lossy quality.


Yes, definitely. I'm the one who suggested it in the first place

turning M4A to something useful for my mp3player

Reply #12
but i would love to get back at why it sounded different for me(m4a vs flac0 transcoded via stock foobar2000) maybe i will try doing manual command lines for transcoding just for the sake of comparsion. maybe use daaf2 or somethting. i got to read more


Did you actually decide to do 20 tests in advance, or just do tests until you got below 0.05?

turning M4A to something useful for my mp3player

Reply #13
good question. at first i was confused as to how to perform the test but after i learned how to notice the difference at 10/20 attempt(17%) i thought i should try to extend to 20 and stop and by the end i was going 8 consecutive good guesses. i was able to spot differences the M4A had much smoother sound to my ears and i'm sure i could get better result i could restart the test with better results now

the transcoded M4A sounded choppy at times in lifting music segments also stereo transition between the two channels was different(one was smoother in transition from right to left than the other)

i'm using the faad2 command line tool to write wav as i speak. maybe i'll compress it to flac(0) and restart the test just for comparsion. i now know that 0 compression isn't prefered but just to elimanate the variables in the test

turning M4A to something useful for my mp3player

Reply #14
I don't support the sentiment that you shouldn't just transcode the files to MP3 or OGG. Do it, perform some listening tests, and if everything's fine to you stick with it.
It's only audiophile if it's inconvenient.

turning M4A to something useful for my mp3player

Reply #15
If you want to transcode, then my suggestion is that you keep a naming like e.g. ".m4a.mp3". Then for a file that sounds bad, you know where it came from and can encode a new one.

(Of course you keep the original!)

turning M4A to something useful for my mp3player

Reply #16
I don't support the sentiment that you shouldn't just transcode the files to MP3 or OGG. Do it, perform some listening tests, and if everything's fine to you stick with it.

And it would be very peculiar if he perceived differences between AAC and its lossless transcoding but not between AAC and a lossy one! 

Seriously, if he is really able to perceive differences (a 15/20 could still means guessing, after all), there must be something flawed in the process. I don't know how Foobar works, but for example, are the decoders and encoders used to generate the second file the same used to listen? If not (and given the premises) maybe one of them is buggy.

BTW: yes, 256kbps AAC files are roughly three times smaller than their FLAC counterpart.
... I live by long distance.

turning M4A to something useful for my mp3player

Reply #17
Lossy codecs like AAC can have track peak higher than 1.0, and is decoded into float32 inside of fb2k.
Since FLAC cannot handle float format, quantization to int16 or something is required anyway, where some dither might be applied, and it can be clipped (if he didn't apply gain modification to avoid it).
Other AAC decoder might simply output to int16 by default.

In short, it's impossible obtain exact copy of AAC using FLAC.
Of course audibility is a different matter, though.

turning M4A to something useful for my mp3player

Reply #18
Lossy codecs like AAC can have track peak higher than 1.0, and is decoded into float32 inside of fb2k.
Since FLAC cannot handle float format, quantization to int16 or something is required anyway, where some dither might be applied, and it can be clipped (if he didn't apply gain modification to avoid it).

And if he does, audible differences in this scenario could derive simply from little differences in track gain. This will be compatible with the subjective differencies the OP is reporting in a precedent post ("smoother sound" and the like).

Quote
In short, it's impossible obtain exact copy of AAC using FLAC.

Do you mean "exact copy of decoded output"?
... I live by long distance.


turning M4A to something useful for my mp3player

Reply #20
Lossy codecs like AAC can have track peak higher than 1.0, and is decoded into float32 inside of fb2k.
Since FLAC cannot handle float format, quantization to int16 or something is required anyway, where some dither might be applied, and it can be clipped (if he didn't apply gain modification to avoid it).
Other AAC decoder might simply output to int16 by default.


The float32 decode is still going to have to be output through the soundcard, so it'll clip just as well on playback.

Given what happened here, a gain difference or other difference when decoding sounds most likely, though the differences reported don't particularly make a lot of sense. (It's also not entirely clear from the comments in this thread, but there appear to have been multiple ABX trials and only one was reported, so it's possible he's not actually hearing a difference)

 

turning M4A to something useful for my mp3player

Reply #21
i was NOT able to replicate last night result consistantly.

i feel i owe to tell you guys this

there are lots of variables in the tests. and this can drag alot of discussion of ABX theory. so i will keep it simple and update if there was reliable results after Transcoding to lossy.



thanks