PDA

View Full Version : Problem using BeSweet to convert from AC3 to MP2


mmoore99
16th January 2005, 02:15
I am attempting to convert from AC3 to MP2 using BeSweet. The conversion appears to complete normally, however when I attempt to open the converted audio file in either "TMPGEnc Plus" or "ImagoMPEG-Muxer" to re-mux I get an error message indicating that the file is not a "valid audio file". I know the AC3 file is good because I am able to successfully convert it to MP2 using HeadAC3he. I would like to be able to use BeSweet to do this as I need the ability to execute via command line. The output from the BeSweet log is as follows:BeSweet v1.4 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using Shibatch.dll v0.2 by Naoki Shibata & DSPguru (shibatch.sourceforge.net).
Using lame_enc.dll v1.28 (4/6/2002), Engine 3.92 <http://www.mp3dev.org/>.

Logging start : 01/15/05 , 16:36:16.

C:\Program Files\BeSweet\BeSweet.exe -core( -input g:\My Videos - G\Pat's Shows\test.ac3 -output g:\My Videos - G\Pat's Shows\test.mp2 -logfilea C:\Program Files\BeSweet\BeSweet.log ) -azid( -c normal -L -3db ) -ota( -hybridgain ) -ssrc( --rate 48000 ) -toolame( -m s -b 192 -e ) -profile( DSPguru_MP2_for_DVD )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : g:\My Videos - G\Pat's Shows\test.ac3
[00:00:00:000] | Output: g:\My Videos - G\Pat's Shows\test.mp2
[00:00:00:000] | Floating-Point Process: Yes
[00:00:00:000] +-------- AZID -------
[00:00:00:000] | Input Channels Mode: 2/0, Bitrate: 192kbps
[00:00:00:000] | Output Stereo mode: Dolby surround compatible
[00:00:00:000] | Total Gain: 0.000dB, Compression: Normal
[00:00:00:000] | LFE levels: To LR -3.0dB, To LFE 0.0dB
[00:00:00:000] | Center mix level: BSI
[00:00:00:000] | Surround mix level: BSI
[00:00:00:000] | Dialog normalization: No
[00:00:00:000] | Rear channels filtering: No
[00:00:00:000] | Source Sample-Rate: 48.0KHz
[00:00:00:000] +-------- LAME -------
[00:00:00:000] | Bitrate method : CBR
[00:00:00:000] | MP3 bitrate : 128
[00:00:00:000] | Channels Mode : Joint Stereo
[00:00:00:000] | Error Protection: No
[00:00:00:000] +---------------------
[00:50:08:064] Conversion Completed !
[00:50:08:064] Actual Avg. Bitrate : 128kbps
[00:05:13:000] <-- Transcoding Duration
Logging ends : 01/15/05 , 16:41:29.

Any help would be appreciated.

Boulder
16th January 2005, 09:58
Looks like you're creating MP3 instead of MP2 for some odd reason. The commandline looks perfectly OK so I really don't know why BeSweet actually does an MP3 file.

Try using MP2ENC as the encoding engine instead of tooLAME. You might have a missing DLL which causes the issue.

Brother John
16th January 2005, 18:49
-ssrc( --rate 48000 )
Not needed because source is already 48kHz. Shouldn’t cause the problem though, because BeSweet is smart enough to skip that command.

The filename of the toolame encoder is toolame.dll. That file must be present in your BeSweet folder.
Filename for MP2Enc would be mp2enc.dll. For using it you'd have to change your command line to -mp2enc( -m s -b 192 -e ).

You’re using BeSweet 1.4, which is rather old. Maybe updating to the latest 1.5b29 helps.

edit:
I just had a look. Toolame.dll is not present in both the BeSweet 1.4 and 1.5b29 archive, only mp2enc.dll is.

mmoore99
16th January 2005, 19:56
Originally posted by Boulder
Try using MP2ENC as the encoding engine instead of tooLAME. You might have a missing DLL which causes the issue.
The filename of the toolame encoder is toolame.dll. That file must be present in your BeSweet folder.
Filename for MP2Enc would be mp2enc.dll. For using it you'd have to change your command line to -mp2enc( -m s -b 192 -e ).

You’re using BeSweet 1.4, which is rather old. Maybe updating to the latest 1.5b29 helps.

Based on the suggestions above I tried the following:

1. Used MP2ENC with 1.4.
2. Used tooLAME and MP2ENC with 1.5b29.

I verified that the appropriate dll's are in the BeSweet directory.

After doing the conversions mentioned above "TMPGEnc Plus" recognizes the converted file as an audio file, but hiccups while processing the file on an "error in the audio file stream".

Boulder, why do you say that it looks like BeSweet is creating an mp3 file?

I am stumped on this, especially since HeadAC3he is able to convert the file to mp2 and the mp2 is able to be processed successfully by the multiplexing programs.

Any other ideas?

The log for the conversion using BeSweet 1.5b29 and MP2enc is as follows:BeSweet v1.5b29 by DSPguru.
--------------------------
Using azid.dll v1.9 (b922) by Midas (midas@egon.gyaloglo.hu).
Using MP2enc.dll v1.129 (23/5/2002), Engine 1.129 <http://www.cdex.n3.net>.

Logging start : 01/15/05 , 22:02:02.

BeSweet.exe -core( -input G:\My Videos - G\Pat's Shows\test.ac3 -output G:\My Videos - G\Pat's Shows\test6.mp2 -logfile G:\My Videos - G\Pat's Shows\test.log ) -azid( -s stereo -c normal -L -3db ) -ota( -hybridgain ) -mp2enc( -m j -b 224 )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : G:\My Videos - G\Pat's Shows\test.ac3
[00:00:00:000] | Output: G:\My Videos - G\Pat's Shows\test6.mp2
[00:00:00:000] | Floating-Point Process: Yes
[00:00:00:000] | PostGain normalize to : 0.97
[00:00:00:000] +-------- AZID -------
[00:00:00:000] | Input Channels Mode: 2/0, Bitrate: 192kbps
[00:00:00:000] | Output Stereo mode: Stereo
[00:00:00:000] | Total Gain: 0.000dB, Compression: Normal
[00:00:00:000] | LFE levels: To LR -3.0dB, To LFE 0.0dB
[00:00:00:000] | Center mix level: BSI
[00:00:00:000] | Surround mix level: BSI
[00:00:00:000] | Dialog normalization: No
[00:00:00:000] | Rear channels filtering: No
[00:00:00:000] | Source Sample-Rate: 48.0KHz
[00:00:00:000] +------- MP2ENC ------
[00:00:00:000] | Bitrate method : CBR
[00:00:00:000] | MP2 bitrate : 224
[00:00:00:000] | Channels Mode : Joint Stereo
[00:00:00:000] | Error Protection: No
[00:00:00:000] +---------------------
[00:50:08:064] Gain of 5.5dB had been asserted to file.
[00:50:08:064] Conversion Completed !
[00:50:08:064] Actual Avg. Bitrate : 224kbps
[00:02:54:000] <-- Transcoding Duration

Logging ends : 01/15/05 , 22:04:56.

Boulder
16th January 2005, 20:09
Originally posted by mmoore99
[B]Boulder, why do you say that it looks like BeSweet is creating an mp3 file?

Using lame_enc.dll v1.28 (4/6/2002), Engine 3.92 <http://www.mp3dev.org/>

and

[00:00:00:000] +-------- LAME -------
[00:00:00:000] | Bitrate method : CBR
[00:00:00:000] | MP3 bitrate : 128
[00:00:00:000] | Channels Mode : Joint Stereo
[00:00:00:000] | Error Protection: No
[00:00:00:000] +---------------------

show that it's actually trying to do an MP3 file.

That last log looks perfectly normal. Have you tried doing the conversion without hybridgain?