Log in

View Full Version : Nero AAC & Audacity


sirt
13th March 2013, 20:49
Hi,

I would like to encode some FLAC via Audacity using Nero AAC codec. The contrainst are : I want to use -q 1 parameter and get .m4a files. I've tried, using "external program" as compression :

neroAacEnc.exe -ignorelength -q 1 -if - -of %f

neroAacEnc.exe -q 1 -of %f.m4a

Neither worked : the first one just stucked and second one leads to an error : the impossibility to parse the FLAC file.

In the eventuallity a formula works via Audacity, could you give me to me ? On the other hand, will I be forced to use WAV files ?

paradoxical
13th March 2013, 20:57
Why don't you just use eac3to to decode it then pipe the output to neroaacenc?

sirt
13th March 2013, 21:05
paradoxical, thanks for your answer. Actually I have to idea how to do that. Would you mind explaining me the different steps ?

ozok
13th March 2013, 21:41
Unless you are using Audacity to apply effects to audio, you can use TAudioConverter which can convert FLAC to AAC using NeroAACEnc with great speed, because it is multithreaded. You can select output extension (m4a, aac, m4b etc) and copy artwork and tags. If you want to use command line tools yourself, TAC writes the commands it uses to its log, so you can edit them according to your need.

sirt
13th March 2013, 22:06
Thanks for your help ozok. Unfortunately, for some reason I get a bunch of errors and any FLAC----> AAC conversion I want to try fails, I get "class" errors. Well I never liked any gui.

I just want a simple comand line (bat file) to encode my FLAC to AAC (with -q 1 as quality) !

EDIT

Easier would simply to have a command line to decompress FLAC to WAV : how could I do this via a bat file ?

Then compressing the resulting WAV with Nero AAC is not a problem.

pandy
14th March 2013, 11:40
Easier would simply to have a command line to decompress FLAC to WAV : how could I do this via a bat file ?

Then compressing the resulting WAV with Nero AAC is not a problem.

http://flac.sourceforge.net/documentation_tools_flac.html

under win (bat/cmd):

@echo off
@flac -d %1.flac

sneaker_ger
14th March 2013, 11:52
Or to pick up paradoxical's suggestions, just put the neroaacenc.exe into the eac3to folder and do this:
eac3to input.flac output.m4a -quality=1.00

sirt
14th March 2013, 12:38
pandy would you like to write a complete command line ?


Thanks sneaker_ger but it doesn't work as well...here are the errors gotten :

command_line :

eac3to 1.flac 1.m4a -quality=1.00

errors :

http://oi46.tinypic.com/sol28i.jpg



Moreover how could I rewrite your command-line in order not to ahve to rewrite the name each time (1.flac, 2.flac...) ? I would like to drop each FLAC into the bat files withotu paying attention to the names.

sneaker_ger
14th March 2013, 13:04
This marks at least the third time you ask this:
http://forum.doom9.org/showthread.php?t=164648
http://forum.doom9.org/showthread.php?t=164803

I don't know why eac3to/neroaacenc gets stuck. Try one of the other suggestions.

sirt
14th March 2013, 13:14
Yes, I have asked many times but it is still unclear or it doesn't work well.

Is that definitely so hard to encode any FLAC with AAC (CLI) ? It looks like it is something unbelievable...

sneaker_ger
14th March 2013, 13:27
Is that definitely so hard to encode any FLAC with AAC (CLI)?

Usually not. I have no idea why it gets stuck for you, but many people have switched to qaac from neroaacenc because the former outdid the competition in recent tests anyways. Personally, I'm using the following command line for sound tracks of movies:
eac3to input.flac stdout.wav | qaac -i -q 2 -r keep -v 128 --adts --no-delay - -o output.aac

For music:
eac3to input.flac stdout.wav | qaac -i -q 2 -r keep -v 128 - -o output.m4a

tebasuna51
14th March 2013, 13:40
...
Moreover how could I rewrite your command-line in order not to ahve to rewrite the name each time (1.flac, 2.flac...) ? I would like to drop each FLAC into the bat files withotu paying attention to the names.

Try this bat, in eac3to folder:
@echo off
eac3to %1 stdout.wav | neroaacenc -q 1.0 -ignorelength -if - -of "%~dpn1.m4a"
pause

sirt
14th March 2013, 13:47
Absolutely prodigious tebasuna51 ! I can't believe it finally worked. You really made my day.

Then if you are so skilled, you may help to write another similar bat file : one to transcode any FLAC to WAV ?

Groucho2004
14th March 2013, 14:00
Then if you are so skilled, you may help to write another similar bat file : one to transcode any FLAC to WAV ?
Haha, didn't know you could be funny. :D

Edit: You were joking, right?

sirt
14th March 2013, 14:05
Groucho2004...unfortunately not ! Is that unrealistic to ask for something like this ? Is that maybe too simple ?

Groucho2004
14th March 2013, 14:10
Groucho2004...unfortunately not ! Is that unrealistic to ask for something like this ? Is that maybe too simple ?

flac -d %1
RTFM.

sirt
14th March 2013, 14:17
Well thank you, in fact I release I already knew that :D

The problem that occurs is I instantly loose all information about my track such as artist, year ect packed into the FLAC. Same happens actually with tebanusa51's command line above. Is that possible not to sacrify those information while transcoding ?

sneaker_ger
14th March 2013, 14:21
qaac is supposed to keep tags when using its own FLAC input. Flagging wav is very unusual.

sirt
14th March 2013, 14:24
Then sneaker_ger could you redirect me to official qaac download page ? I've been googling around but I am not sure which version to download.

Moreover is there some similar mode to that -q 1 I want to use with Nero AAC ?

sneaker_ger
14th March 2013, 14:26
Read the first google hit for qaac.

the_weirdo
14th March 2013, 14:41
Try foobar2000, dbPoweramp or LameXP (I'm not sure about the later, though). There may be other tools also support that task.

To do that with command line tools is feasible, but more work need to be done (especially when you want it to do automatically).

EDIT: In case of qaac, as sneaker_ger said, it supposed to keep tags from FLAC input.

pandy
14th March 2013, 15:12
pandy would you like to write a complete command line ?


?

create script with name "lazybutclever.cmd" and place inside "code" then just run "lazybutclever.cmd namefile(noextension)"

;)