Log in

View Full Version : Neroaac with Linux


JoeBG
6th November 2007, 14:35
Hi,

Does someone know how install and use the Linux Version of neroaac?

a) I´m new in Linux and therefore the installation is not obvious for me. I have no Idea how to do this.

b) I know nero needs a wav-file. Can someone give me a commandline how to encode a AC3 to MP4?

c) Is there any tool existing for Linux which already uses neroaac so that I have a "one in all" solution?

Sharktooth
6th November 2007, 17:28
a) you do not need to install it.
just extract the files contained in the linux folder somewhere (or in /usr/bin which is in the "path") and chmod +x both files.
after that you can use both the encoder and the decoder.
b) to encode ac3 to wav you need to "decode" the ac3 to wav.
In linux you can pipe the mplayer/mencoder audio output to neroAacEnc...
c) dunno. maybe menno or others can answer this question.

Kurtnoise
6th November 2007, 17:37
yup...:)

b) $ mkfifo audiodump.wav
$ ./neroAacEnc -ignorelength -q 0.20 -if audiodump.wav -of output.m4a && mplayer input.ac3 -vc null -vo null -ao pcm

c) OGMRip (http://ogmrip.sourceforge.net/) (forgot the name) + his plugin (http://ogmrip.sourceforge.net/en/plugins.html#ogmripneroaac)...

Gusar
6th November 2007, 17:59
Kurtnoise13's command only works for stereo (6 channel audio will be downmixed). For 6 channel encoding, add this to the command:-channels 6 -af channels=6:6:0:0:1:1:2:4:3:5:4:2:5:3
Also, -ao pcm:fast will give you faster decoding.

JoeBG
6th November 2007, 19:11
Thank you to both :)

So the correct Skript would be ?:
$ mkfifo audiodump.wav
$ ./neroAacEnc -ignorelength -q 0.20 -channels 6 -af channels=6:6:0:0:1:1:2:4:3:5:4:2:5:3 -if audiodump.wav -of output.m4a && mplayer input.ac3 -vc null -vo null -ao pcm:fast

Gusar
6th November 2007, 19:49
The '-channels 6 -af channels=...' part is for mplayer, not nero. So, the command is$ mkfifo audiodump.wav
$ ./neroAacEnc -ignorelength -q 0.20 -if audiodump.wav -of output.m4a & mplayer input.ac3 -vc null -vo null -ao pcm:fast -channels 6 -af channels=6:6:0:0:1:1:2:4:3:5:4:2:5:3Also, I've corrected a mistake - there must be a single & between the commands, not two (note the bold part).


Also, instead of just blindly copying commands, I would strongly advise you to learn what exactly each part of the command does. For nero, './neroAacEnc -help' will give you a list of all options. For mplayer, check the manpage. But be warned, mplayer's manpage is huge! That's because mplayer is a powerful beast.

If you don't know how to view a manpage or what a manpage actually is - learn about manpages. Also, learn about pipes and named fifos (because they're used in the above commands) and the difference between & and && and other operators.

Yes, I've said "learn this", "learn that" a lot, but if you really want to use linux to it's full potential, you have to be prepared to learn. And that means reading a lot of documentation. But the reward is great - once you master the commandline, you'll be able to write shell scripts that are much more flexible than any GUI could ever be.

A few links I've collected on the way, that will help you:
Bash Reference Manual (http://www.gnu.org/software/bash/manual/bashref.html)
Bash Programming Intro (http://www.tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html)
Shell Scripting Tutorial (http://www.freeos.com/guides/lsst/)
Advanced Bash Scripting Guide (http://www.tldp.org/LDP/abs/html/)


Also, just out of curiosity, what distro are you actually using?

JoeBG
6th November 2007, 19:51
a) you do not need to install it.
just extract the files contained in the linux folder somewhere (or in /usr/bin which is in the "path") and chmod +x both files.
after that you can use both the encoder and the decoder.


Does not work. Linux does not know neroAacEnc:

My commandline: sudo chmod +x neroAacEnc
Something not correct?

JoeBG
6th November 2007, 20:49
neroAacEnc works now. But the commandline you three gave me is not correct. He plays the file while encoding, so the encoding need the time of the hole movie. This is something BeSweet does in minutes. Can someone please give me a working commandline? Thank you for help :) :) :) :)

Kurtnoise
7th November 2007, 00:13
weird...maybe a problem with the pipeline or something. I don't know, sorry.

Sharktooth
7th November 2007, 15:25
have you added the pcm:fast option?

JoeBG
9th November 2007, 17:57
have you added the pcm:fast option?

Yes - and it works now. But it is really not fast :)
A two our soundtrack needs 50 - 60 minutes to get encodet. I really must change my cpu (AMD 64 3500+) :D

Thanks all for their help. :)

Randall
30th April 2008, 03:34
I have followed the instructions from this thread, and it does look like the audio stream contains 6 channels when it gets packed, but mplayer and vlc both report stereo 2 channel audio during playback. Any suggestions?

MP4Box -new -add lost.s04e09.720p.hdtv.x264-ctu.h264" -add output.m4a -fps 23.976 lost.s04e09.720p.hdtv.x264-ctu.mp4

AVC-H264 import - frame size 1280 x 720 at 23.9760 FPS
Adjusting AVC SizeLength to 16 bits
Adjusting AVC SizeLength to 24 bits
Import results: 59784 samples - Slices: 865 I 35664 P 23255 B - 1 SEI - 847 IDR
Stream uses B-slice references - max frame delay 2
IsoMedia import - track ID 1 - HE-AAC (SR 24000 - SBR-SR 48000 - 6 channels)
Saving lost.s04e09.720p.hdtv.x264-ctu.mp4: 0.500 secs Interleaving
and mplayer's output on the finished file is this:
Playing lost.s04e09.720p.hdtv.x264-ctu.mp4.
Quicktime/MOV file format detected.
[mov] Video stream found, -vid 0
[mov] Audio stream found, -aid 1
VIDEO: [avc1] 1280x720 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
AUDIO: 48000 Hz, 2 ch, s16le, 168.8 kbit/10.99% (ratio: 21094->192000)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
==========================================================================
AO: [dsound] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VLC's output reports the same... only 2 channels in stereo. Am I missing something? It looks like the MP4Box add worked successfully, at least at that point the audio is reporting 6 channel HE-ACC... any help on this is appreciated, I don't have a 5.1 system set up at the moment so I cannot tell if the conversion actually worked other than the printouts. :thanks:

FYI here is the command line I used to decode to wav and encode back to supposedly 6 channel mpeg4:
mplayer lost.s04e09.720p.hdtv.x264-ctu.ac3 -af channels=6:6:0:0:1:1:2:4:3:5:4:2:5:3 -ao pcm:fast -channels 6 -novideo and nero... neroAacEnc -ignorelength -q 0.20 -if audiodump.wav -of output.m4a