Log in

View Full Version : AC3->MP3 without intermediate files?


Pages : 1 [2] 3 4 5

DanniDin
10th November 2001, 14:44
Azid/Lame GUI v0.3b16 (http://worldzone.net/computers/dannidin/AzidLameGUIv0.3b16.zip)

- Added Support for 'Finding Maximum Gain' Switch ("-g max") in DSPguru's AC3toMP3

(To Do: Add Support for AC3toMP3 in Batch Mode)

Danni.

DrKnowLittle
11th November 2001, 20:42
please make a version for MP2 output as well for us SVCD junkies.
the TooLame source is good.

DarkAvenger
11th November 2001, 20:58
Hey DrKnowLitte,

what about your plans to write a ssrc.dll? Given up?

DrKnowLittle
11th November 2001, 21:11
Sadly my programmer friend has been busy with other things :(

I was hoping on you guys to make a miracle :)

DarkAvenger
11th November 2001, 23:50
Let's put it this way: As long as I don't need a function, don't expect a miracle. ;)

DanniDin
12th November 2001, 09:55
Azid/Lame GUI v0.3b17 (http://worldzone.net/computers/dannidin/AzidLameGUIv0.3b17.zip)

- Added Support for AC3toMP3 in Batch Mode ('ac3 -> mp3' Button)
- Added a Location Button for AC3toMP3.exe
- Azid's Target WAV will Be Used as AC3toMP3's Target MP3
(ie: If Azid's Target = x.wav then AC3toMP3's Target = x.mp3)

Danni.

damjang
12th November 2001, 10:13
Where I con download AC3toMP3 v04.a? I was able to find only v03.a

damjang

DanniDin
12th November 2001, 10:32
Click "Enjoy!" Under the End of the Subject "AC3toMP3 v04.a" Above.

Danni.

LigH
12th November 2001, 10:46
:mad: Damned board, sometimes I don't get informed when something is added to a thread... :( But nice to see that so much has come up; I'm horribly behind! :D WaveBooster beta 0.50 is on the way, now with DLL (I hope someone can use it). :cool:

BTW: While working on Beta 0.50, I found that Azid 1.7.1 has a bug when writing discrete channels, but only in a very uncommon circumstance: When decoding a 5.1 AC-3 to a 6-channel wave with 32 bits per sample, the wBlockSize field is correct (6 channels * 4 bytes = 24), but the wBitsPerSample field is set to 24 instead of 32; this only appears with 6 channels - in a stereo wave with 32 bits per sample, wBitsPerSample is 32 as it should be. Of course, my WaveBooster relies on these wave header fields... :eek:


...

(edit)
He, I attached a file here - why doesn't it appear? What do I need to do to see that it is attached?

I'll try this: BoostCLIwDLL_b050.zip (http://rilanparty.com/vbb/attachment.php?s=&attachmentid=77)
(/edit)

Doom9
12th November 2001, 11:30
why don't you see your attachments immediately? because they're moderated. Only once a mod/super mod/admin okays your file the public can see it. This is a security precauting.. we don't want cracks and other illegal stuff to float around.

damjang
12th November 2001, 13:09
Originally posted by DanniDin

Click "Enjoy!" Under the End of the Subject "AC3toMP3 v04.a" Above.

Danni.


Thankyou. Previously I don't see the link....:D

DanniDin
12th November 2001, 13:47
;)

DSPguru
12th November 2001, 22:16
files can be found here :
- EXE+DLLs (http://dspguru.tripod.com/AC3toMP3.zip)
- EXE+DLLs+GUI (http://dspguru.tripod.com/Pack.zip)
- Latest Executable (http://dspguru.tripod.com/exe-only.zip)

mirrors :
- FairUse Homepage (http://fairuse.releaseme.org/AC3toMP3.zip)
- This VBB (http://rilanparty.com/vbb/attachment.php?s=&attachmentid=66)

@Doom9
please make my attachment visible. i know that this thread has more than 1200 views, i would like to see the downloads counter.
anyway, don't you think it's time to publish AC3toMP3 on your news/software page ?
it has switches, it has gui... ;)

@DanniDin
Keep up the good work :D



btw,
the next version of AC3toMP3 will include a new command-line switches parser i wrote which supports all kinds of switches : [-l1]/[-l 1]/[-l0db]/[-l 0db] and so on..

i'm now considering to start working on VOB->MP3...

Dg.

DanniDin
12th November 2001, 22:22
@DanniDin
Keep up the good work
U2 DSPguru ;)

Danni.

Doom9
12th November 2001, 23:13
I moderated it.. but you really have to talk to the forum moderator about that.. it's a moderators tasks to okay attachments.. not an admins..

pacohaas
12th November 2001, 23:59
@DSPguru: When I add your program to my FairUse encoding Guide, I will most likely include a simple editable batch file that will simply allow the user(and myself) to drag their AC3 file and have it converted to an MP3. Perhaps you'd like to create a sample batch file that does just that

@DanniDin: don't get me wrong, I love the GUI and I know many people would be lost without it, so I don't think a batch file would belittle your work.

edit: old links removed...and due to a bug in VBB my signature is removed as well :mad:

DanniDin
13th November 2001, 10:34
@pacohaas
I'm Very Happy that You Love the GUI :) and Any Method that Works for You is Fine with Me.

Danni.

Doom9
13th November 2001, 11:45
guys.. want me to publish it? I didn't get anything in my inbox yet..

DanniDin
13th November 2001, 12:06
@Doom9
You Can Always Publish Any of My Betas if You Want.
The Reason I Didn't Send it to You is that the Latest Betas are a Little Messy and I Wasn't Sure they were Worth Publishing (Even as betas)

Maybe I'll Release v0.3b17 as an Official v0.3 and Start the beta Count at v0.4

Danni.

DSPguru
13th November 2001, 22:28
----- batchfile start -----
@echh off
AC3toMP3 %1 %2 -azid( -c light -L -3db -g max ) -lame( -m j )
pause
----- batchfile ends ------

something like that...

Doom9
14th November 2001, 01:45
it didn't make it today.. maybe tomrrow.. depending on the amount of new soft I have then... and the time to test

pacohaas
14th November 2001, 04:22
doom, the batch file should help a lot, but a couple things...
should be:

@echo off
AC3toMP3 %1% %1%.mp3 -azid( -c light -L -3db -g max ) -lame( -m j )
pause

and if you've going to use VBR, you need to specify -v.

@DSPguru: that's one of the reasons --r3mix doesn't work. I think you should work on that. If -V is specified, it is implied that VBR should be used. That, and the spacing is really tricky. Is there any way to make it so all these work:

-lame( -m j )
-lame(-m j)
-lame(-mj)
-lame( -mj )
etc...

Including a batch file in the distribution would help a lot as an example, perhaps one with some more options than just -mj.

keep up the good work.

DSPguru
16th November 2001, 14:27
@pacohaas
what do you think of the following :
AC3toMP3 %1% %2.mp3 -azid( -g max ) -lame( -m s -v --vbr-new -V 5 -b 32 -B 320 )

personally,
i don't know what's the best combination of lame's switches.

anyway,
i added more flexabilty to the switches-parsing engine, but basicly, not planning to support all types.

AC3toMP3 v0.4b (http://dspguru.tripod.com/AC3toMP3.zip) now supports VBR,ABR & r3mix.
unfortunetly, the lame_enc.dll has some bugs... & there's nothing i can do about it.

i also found out that not all features offered by lame.exe are offered by lame_enc.dll (ATH parameters, for instance) :( .

Huge
16th November 2001, 15:46
The link above downloads version 0.4a for me. This version also crashes on my Windows 2000-SP2 machine.

Program Error
AC3toMP3.exe has generated errors and will be closed by Windows. You will need to restart the program.
An error log is being created.

I can't find the error log though :(

DSPguru
16th November 2001, 17:09
@Huge

i re-uploaded the files to TRIPOD. should be ok now.

as for the program's crash, try to see if it happens with v0.4b.
if it does, please let me know if it happend right from the start, or only after some encoding, and please mention the switches you used.

before releasing v0.4b i've done some debugging, and i believe i eliminated all bugs only to those caused by the lame_enc.dll.
as i said before : there are differences between lame.dll & lame.exe.

pacohaas
16th November 2001, 17:52
unfortunetly, the lame_enc.dll has some bugs... & there's nothing i can do about it.
i also found out that not all features offered by lame.exe are offered by lame_enc.dll (ATH parameters, for instance)
perhaps both these problems are fixed in the newer versions of lame_enc.dll? I know some of the ATH tunings have been pretty recent.

i added more flexabilty to the switches-parsing engine, but basicly, not planning to support all types. it's good to be flexible :D

--r3mix in all it's glory: --nspsytune --vbr-mtrh -V1 -mj -h -b96 --lowpass 19.5 --athtype 3 --ns-sfb21 2 -Z --scale 0.98 -X0

This is of course in the newer 3.90 alpha versions. As for optimum settings, there really aren't any, different situations call for different settings. I think if you are to include an example, however, you should include a command-line that has all the LAME switches that AC3toMP3 is currently capable of employing. As for Azid, I don't think anyone would contest that -azid( -c normal -L -3db -g max ) is the way to go.

there are differences between lame.dll & lame.exe.True, but there have been some recent improvements to the dll that may have brought it more in sync with the exe. I haven't had any time to test your program lately, what is the news on the new dll(3.90a8), is it working?

pacohaas
16th November 2001, 18:03
Another thing I was thinking for you to tackle (how nice of me, eh?) was to implement a --onecd and --twocd shortcut that was talked about a while back on r3mix.net. I believe they called them --divxlow and --divxhigh. The settings are still up for debate, but I think it could be a good idea if you have time to think about it. It could turn something like this:
AC3toMP3 audio.wav audio.mp3 -azid( -c normal -L -3db -g max ) -lame( --nspsytune --vbr-old -V2 -mj -h --athtype 3 --ns-sfb21 2 -Z -X0 )
into this:
AC3toMP3 audio.wav audio.mp3 -azid( -c normal -L -3db -g max ) -lame( --twocd )

sorry, one more thing I just thought about while writing that last bit: if no -b or -B are specified in VBR mode, you should default to 32 and 320 respectively.

thanks and keep it up.

DSPguru
16th November 2001, 18:03
@pacohaas
--r3mix in all it's glory: --nspsytune --vbr-mtrh -V1 -mj -h -b96 --lowpass 19.5 --athtype 3 --ns-sfb21 2 -Z --scale 0.98 -X

--r3mix is supported :)

i can easily create new preset switches, the problem is : to agree on such one.
i will defualt -b & -B. not a problem.

say, did you update the AC3toMP3 files on your mirror site ?-)

as for the alpha dll, i don't support it.
in fact, i wonder of what should be the next step :
lame3.90 OR VOBtoMP3.

what do you guys say ?


and is it possible to find lame3.90 souRce codE ?

Huge
16th November 2001, 19:34
Originally posted by DSPguru
@Huge

i re-uploaded the files to TRIPOD. should be ok now.

as for the program's crash, try to see if it happens with v0.4b.
if it does, please let me know if it happend right from the start, or only after some encoding, and please mention the switches you used.

before releasing v0.4b i've done some debugging, and i believe i eliminated all bugs only to those caused by the lame_enc.dll.
as i said before : there are differences between lame.dll & lame.exe.

OK, no more crashed now :)

However, this AC3 filename fails - c:\encode\Entrapment.session-00.audio-00.ac3 with a AC3toMP3 error : problem with input file!!!! error.

DanniDin
16th November 2001, 23:23
Azid/LameGUI v0.3 (http://worldzone.net/computers/dannidin/AzidLameGUIv0.3.zip)

dvdyke
17th November 2001, 04:45
How do I get SSRC downconversion to 44.1Khz in between the AC3toMP3 process with relevant switches? Or is that not possible? :)

DSPguru
17th November 2001, 09:43
for now, it's impossible to pass thru SSRC when using AC3toMP3 ('cause there is no intermediate wav-file). but i might add SSRC support to future versions of AC3toMP3.

my vision :
one comprehensive freeware tool that integrates bbDMUX,AZID,SSRC,LAME.
that way, you would have a direct conversion : VOB->44.1khz MP3.

btw,
i'm not sure i will use SSRC, i might write my own sample-rate-convertor, implementing the same algorithm (same math), but a specifiec module of 48->44.1 . (that means : same quality, but faster).

DSPguru
17th November 2001, 14:09
AC3toMP3 v0.5 is out now.
this version is stable and F-A-S-T !!!!!

lame_enc.dll is now dynamicly linked. that means that both 3.89 & 3.90 of lame's dlls are supported.
lame's 3.90 is much smaller, and i believe, fAster.
also, i've tested many many switches (abr,vbr,--r3mix) with this new dll, and my program never crashed.

@Huge
I've also created a file on my h.d. :
c:\encode\Entrapment.session-00.audio-00.ac3
and it worked perfectly.

@pacohaas
i've added default setting for min/max bitrate.

@Doom9
i saw your link to this thread on the news, and that's wonderful, but i think you should add AC3toMP3 v0.5 (http://rilanparty.com/vbb/attachment.php?s=&attachmentid=85) to your download page and post a direct link to it on the news page, 'cause i saw that over 200 people downloaded older versions from early pages of this thread :(.

Puppetman
17th November 2001, 21:38
I am new to encoding, and was having a terrible time with audio syncing via Flask. So I dumped out a .ac3 file, and could sync it back in with Nandub, but the Divx .avi got too big. Nandub couldn't seem to compress it for me.

Your tool makes it easy to convert to mp3, and with the Azid -g (gain) switch, I can normalize the audio a bit.

Way to go. Made my life much easier.

BTW, why isn't it in the Doom9 Downloads page?

Puppetman.

Doom9
17th November 2001, 21:56
BTW, why isn't it in the Doom9 Downloads page?
It soon will be.

CyberDemonII
18th November 2001, 12:27
please read my private message DSPGuru !

DSPguru
18th November 2001, 16:37
CyberDemonII wrote on 18th November 2001 11:24:

What language do you use ?
And why is the 0.5 so big in filesize ?

<<Important>>

-- Could you also make it possible to create a mp3 file with a wave header ?

Like the tool : WaveMP3 does. (you can find it on doom9 download page.)

When a wave header is present, it is possible to mix that audio file with an movie easy with virtualdub !


Hi guys, hi CyberDemonII,
AC3toMP3 is mixed-written in C&C++. DLLs are mixed-linked : staticly (azid) & dynamicly (lame).
i'm doing what i understand to be good & effective.

the new version is bigger than the previous versions, 'cause it holds a test feature i were checking (and didn't feel like removing from the compilation release).


i can easily add WAV header to the program's product.
any other ppl find it useful ?

@Puppetman
thank you very much for your feedback. it's great to hear :cool:.

CyberDemonII
18th November 2001, 18:10
If you have azid.dll statically linked, why do you need the azid.dll ?

Dll means dynamic library.

LIB means static library.

And have you compiled it in release mode ?

BUG*

when the ac3 file has some errors,
your tool completely quits,
as the original azid.exe file does just continue.

And do you alrady have more information about the wave header ?

DSPguru
18th November 2001, 18:26
If you have azid.dll statically linked, why do you need the azid.dll ?

Dll means dynamic library.

LIB means static library.

And have you compiled it in release mode ?

i don't have azid's source, so i don't understand what you mean by "compiled it in release mode".
i got the lib & dll from Midas example. the dll is the engine, the lib holds info of functions interface to this engine (used by the linker).
the lib is 4k in size, the dll 92kb.


BUG*

when the ac3 file has some errors,
your tool completely quits,
as the original azid.exe file does just continue.

attach a buggy ac3 here & i'll check it out


And do you alrady have more information about the wave header ?

what information ? i know everything about wave's header.

CyberDemonII
18th November 2001, 18:44
i have made a gui which is called dvd2avi_gui (http://www.geocities.com/compressavi/dvd2avi_gui/dvd2avi_gui_1.08beta15.zip)

And the exe file is only : 76kb and this tool does also use the azid.lib / azid.dll code.

--Cannot send the ac3 file, its too big.

--CAn you send me sample code about the riff wave header when converting a mp3 to an .wav mp3 file with another riff-header ?

thanx !

DSPguru
18th November 2001, 18:55
i fail to d/l from geocities. their servers sux.

let me get it straight : you claim that you wrote a program that running azid's engine without azid.dll ?? all you did was telling the linker to use azid.lib :confused:

i don't have a ready sample-code of WaveMP3 type, but the wave's header struct is the following :

struct WAV_Header
{
char riff[4]; /* the characters "RIFF" */
unsigned long file_length; /* file length - 8 */
char wave[8]; /* the characters "WAVEfmt " */
unsigned long offset; /* position of "data"-20 (usually 16) */
unsigned short format; /* 1 = PCM */
unsigned short nchans; /* #channels (eg. 2=stereo) */
unsigned long sampsec; /* #samples/sec (eg. 44100 for CD rate) */
unsigned long bytesec; /* #bytes/sec (see note 1) */
unsigned short bitsamp; /* #bits/sample (see note 1) */
short otherstuff; /* N = offset-16 (see note 5) */
char dataheader[4]; /* the characters "data" */
unsigned long datalen; /* #bytes of actual data */
};

Good Luck :)

DSPguru
22nd November 2001, 13:24
@CyberDemonII
you mis-spelled my name on your thank-you-list of MP3WAV :(.

by the way, you didn't tell me if you succeded using azid engine without using its' dll.

Dg.

CyberDemonII
22nd November 2001, 15:06
Hi DSPguru,

Sorry for the mis-spelling.

I created the following
ac3tomp3.exe

which uses ac3tomp3_dll.dll
which uses lame_enc.dll & azid.dll

And the total size from ac3tomp3.exe + ac3tomp3_dll.dll is less than 260Kbyte.

I can convert ac3 to mp3 as fast as your tool i guess.

I will also release ac3tomp3_dll.dll to the public , including header-file with some simple fucntions.
And i will also offer to create a mp3 file with a wave header.

(Did you use multi-threading for reading / writing data, or did you just do it in 1 thread/process ?)

grtz,cd2

DSPguru
22nd November 2001, 16:34
CyberDemonII wrote
I created the following ac3tomp3.exe

create whatever you wish, but DON'T name it over my program.

and i don't know why you are so fixtured on the file's size.
no one complained about it :D.

by the way, you still didn't tell me if you succeded using azid engine without using its' dll.

CyberDemonII
22nd November 2001, 17:04
Hello,

I use the azid.lib & azid.dll from azid.

And i will maybe create a program called :
ac3tomp3_gui.exe which uses all the dll's.

I'm sorry that i did insult you ! :)

I want to thank you for you idea and program !

If you have any other things, you can also email me.

bye

ACClarke
22nd November 2001, 17:46
Mp3wav 1.0 creates an error in virtualdub :confused:
at the end, there is sound in the avi file but in "file information" in vitualdub the audio compression is unknowed

DSPguru
23rd November 2001, 19:47
- added .vob input support :
i created bbdmux.dll & integrated it with my proggy.
syntax : AC3toMP3 -bbdmux( substream-id )
- added WaveBooster support :
i've implemented WaveBooster's manual algorithm in my proggy.
syntax : AC3toMP3 -boost( /l= /b= )
10q - LigH ;)
- normalize algorithm has been enhanced and now is faster.



example of use :
AC3toMP3 [inputfile.vob] [outputfile.mp3] -bbdmux( 0x80 ) -azid( -g max -L -3db ) -lame( --r3mix ) -boost( /l=0.98 /b=2.5 )

to find all available substreams in a specifiec VOB file, simply write :
AC3toMP3 [inputfile.vob]

@CyberDemonII
as long as you spell my name right, and pick original names for your programs - i promise to be cool :cool:


Enjoy! (http://rilanparty.com/vbb/attachment.php?s=&attachmentid=107)

dvdyke
23rd November 2001, 22:05
So how should these command line options be implemented in AzidLameGUI? I'd rather set a defaults in the GUI than have to keep typing it all at a command line (Never seem to get batch files to work like the old DOS ones in XP).

Thanks!

DanniDin
23rd November 2001, 22:10
Wait and See ;)

It will Take More than One Release Until I'll Be Happy with the GUI.

Danni.

MaTTeR
23rd November 2001, 22:38
Originally posted by CyberDemonII
Hi DSPguru,

And the total size from ac3tomp3.exe + ac3tomp3_dll.dll is less than 260Kbyte.

I can convert ac3 to mp3 as fast as your tool i guess.

I will also release ac3tomp3_dll.dll to the public , including header-file with some simple fucntions.
And i will also offer to create a mp3 file with a wave header.

(Did you use multi-threading for reading / writing data, or did you just do it in 1 thread/process ?)

grtz,cd2

I dont think anyone cares what size the app is, if its 5MB or 200K. Who cares? I'm pretty sure most of us are using a hard disk of more than 240MB now a days :-) If you want to concentrate on something then focus on the speed and compatability.

Also, you might find that the wave header feature isn't going to be in heavy demand. I think most of us are just using NanDub to interleave the MP3 or AC3 file.

Multithreading and SMP would be a very nice feature if you could implement it! Thanks for your work.