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: command line nero encoder wav->mp4 (Read 40766 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

command line nero encoder wav->mp4

I wrote small app that encodes wav into mp4. It uses the aac and the wav plugins from Nero. I'm using this together with the mpeg-4 tagger to rip and encode with EAC.

Windows exe: http://members.dslextreme.com/users/dpeshev/n.zip
Source: http://members.dslextreme.com/users/dpeshev/nsrc.zip

You will need these Nero files to be in the same directory or somehwere in the path (the versions are the ones that I tested with):
08/20/2003  10:40 AM          847,872 Aac.dll
08/22/2003  05:25 PM          774,144 aacenc32.dll
08/29/2003  03:08 PM            49,152 aacmp32.dll
06/18/2003  10:50 AM          884,736 NeroIPP.dll
06/17/2003  03:25 PM          212,992 wav.dll

In EAC I'm using this line:
cmd.exe /c c:\save\nencode.exe %s %d && c:\save\tg.exe %d --artist "%a" --album "%g" --track "%n" --title "%t" --genre "%m" --year %y

Somebody with more free time can enhance this to return more meaningful error messages, to allow use of other nero plugins or perhaps make internal encoder(.dll) for EAC. Use at your own risk. Any comments welcome.

command line nero encoder wav->mp4

Reply #1
Both links appear to be broken.
gentoo ~amd64 + layman | ncmpcpp/mpd | wavpack + vorbis + lame

command line nero encoder wav->mp4

Reply #2
for me the links work but i can't execute your program.. says i need MFC71D.DLL which i obviously don't have

-andy-

command line nero encoder wav->mp4

Reply #3
Quote
for me the links work but i can't execute your program.. says i need MFC71D.DLL which i obviously don't have

-andy-

It's an MFC debug DLL, only available to MSDN subscribers.

I already downloaded the source code, let me se if I can come up with a release build.

command line nero encoder wav->mp4

Reply #4


Will we really need the exact same files? For example, I have a newer wav.dll but an older aacenc.dll...


command line nero encoder wav->mp4

Reply #6
Hrm, it works, but whatever I do out of the expected "path" gives me a "Debug Assertion Failed!"

Can you try to compile it in release mode?

BTW: Great tool, thanks a lot

command line nero encoder wav->mp4

Reply #7
Quote
Hrm, it works, but whatever I do out of the expected "path" gives me a "Debug Assertion Failed!"

Can you try to compile it in release mode?

BTW: Great tool, thanks a lot

You have to specify full path for both source and destination file.

I recompiled and the release version is here (I deleted all other files):

http://members.dslextreme.com/users/dpeshev/n.zip
http://members.dslextreme.com/users/dpeshev/nsrc.zip

The release version is 9k - not bad. It changed back to dynamically linked MFC - release versions this time. If you don't have mfc71.dll and msvcr71.dll then search google and you will find them.

command line nero encoder wav->mp4

Reply #8
I tried it in WINE (a relatively old version) but it failed with an assertion:
Code: [Select]
Assertion failed: nRetCode && !pIStatus, file .\nencode.cpp, line 198

I took a peak at the source, and it seems like it can't find the input file. Or at least I think so - I'm not used to looking at Windows C++ code in Hungarian Notation

Anyway, I think it's a nice initiative - it'll make it a lot easier to use Nero on a Linux box

BTW, have you thought of a license for this thing?

command line nero encoder wav->mp4

Reply #9
Quote
BTW, have you thought of a license for this thing?

Hint: I would recommend something like LGPL or BSD

Then it would enable inclusion of that code on projects that can't cope with the GPL.


command line nero encoder wav->mp4

Reply #11
Sounding good. Thanks a lot for your work

command line nero encoder wav->mp4

Reply #12
Well, I do not have the files mentioned in my Nero 6 install. Was this created with reference to the Nero 5 MP4/AAC plugin? I was a registered owner of this plugin, but since I've upgraded to Nero 6 I don't need it anymore.

Seems the AAC*.DLL files and the wav.dll files do not exist. I could only find the NeroIPP.dll and the app definatly fails without the needed DLLs. Guess I could look over your source code and play around with the Nero 6 install and see what I can get working.

Thanks for your work so far!

<rant>
On a side note, thanks Ahead for not giving me a $15 discount on the Nero 6 upgrade since you've now included the MP4 plugin I paid extra for. GRRRR
         
</rant>

command line nero encoder wav->mp4

Reply #13
The DLLs are now located at \program files\common files\ahead\audioplugins\

command line nero encoder wav->mp4

Reply #14
The link appears to be dead.

 

command line nero encoder wav->mp4

Reply #15
Quote
The link appears to be dead.

Works here.

If DARP accepts it, I would be glad to post his app at RareWares.

command line nero encoder wav->mp4

Reply #16
Quote
I changed the code to handle relative paths too. And added BSD license header.

Thanks. It now dies a completely different place:
Code: [Select]
Assertion failed: nRetCode && pIUWav, file .\nencode.cpp, line 206

command line nero encoder wav->mp4

Reply #17
Quote
Quote
The link appears to be dead.

Works here.

If DARP accepts it, I would be glad to post his app at RareWares.

Please do this. I guess my DSL provider is not very reliable.

command line nero encoder wav->mp4

Reply #18
Quote
Quote
I changed the code to handle relative paths too. And added BSD license header.

Thanks. It now dies a completely different place:
Code: [Select]
Assertion failed: nRetCode && pIUWav, file .\nencode.cpp, line 206

Well, this is the same thing - the Nero Wav plugin fails trying to open the source file. I don't know how Wine handles full paths on Linux.

command line nero encoder wav->mp4

Reply #19
Quote
Please do this. I guess my DSL provider is not very reliable.

Thanks!

Here it is:
http://rarewares.hydrogenaudio.org/files/n.zip
I'll update the AAC page and the home page tomorrow (It's already 4AM here)

Quote
Well, this is the same thing - the Nero Wav plugin fails trying to open the source file. I don't know how Wine handles full paths on Linux.


Worst case, it would be possible to come up with a non-standard WAV plugin that works well in Wine. IIRC, the full sources of the WAV plugin are available in the Plugin SDK.

@darp: please, feel free to PM (or mail) me whenever you have a new version that you want me to upload to RareWares.

command line nero encoder wav->mp4

Reply #20
Quote
Worst case, it would be possible to come up with a non-standard WAV plugin that works well in Wine. IIRC, the full sources of the WAV plugin are available in the Plugin SDK.

Well, I don't have a compiler for Windows

It couldn't be related to the fact that I couldn't find aacmp32.dll?

What is the interface to the DLLs like? Would it be possible to do this without using C++?

command line nero encoder wav->mp4

Reply #21
Quote
It couldn't be related to the fact that I couldn't find aacmp32.dll?

I don't have it either. I thought it wasn't used in encoding.

command line nero encoder wav->mp4

Reply #22
If you take a look at  the list of aac.dll imports:

Imports from aacenc32.dll
    aacStreamEncodeFrame32(hint = 0004)
    aacStreamOpen32(hint = 0005)
    aacStreamClose32(hint = 0002)
    ResetSbrHeaders
    aacStreamDestroy32(hint = 0003)

I'm not sure if any of these are used in encoding but it curtainly indicates that aac.dll depends on aacenc32.dll.

Download the latest Nero update from www.nero.com
In my case it didn't update the mpeg-4 files and I copied them by hand from
%temp%\RarSFX0 - the installation program extracts all files before doing the actual update.

command line nero encoder wav->mp4

Reply #23
Did you "reverse" the SDK and load the plugins in your program? I assume that the SDK is C++ in that case...

command line nero encoder wav->mp4

Reply #24
Quote
Download the latest Nero update from www.nero.com
In my case it didn't update the mpeg-4 files and I copied them by hand from
%temp%\RarSFX0 - the installation program extracts all files before doing the actual update.

there is no AACMP32.DLL in the whole nero package
though the program seems to be working fine, now that i got the missing runtime DLLs

-andy-