Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Programming and Hacking > Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 1st November 2002, 20:27   #61  |  Link
DSPguru
BeSweet Author
 
DSPguru's Avatar
 
Join Date: Oct 2001
Location: On top of a supercompact cardinal
Posts: 3,506
"deinit" should only come at the end of the process.
DSPguru is offline   Reply With Quote
Old 6th May 2003, 12:13   #62  |  Link
TFM_TheMask
Registered User
 
TFM_TheMask's Avatar
 
Join Date: Apr 2003
Location: Netherlands
Posts: 131
Hi you all,

I want to use BeSweet dll to convert avi compressed audio streams to mpa audio. Thanks to this thread I got the ac3burst working, but what if the avi audio is a mp3 stream or another stream. How do I get this to work in delphi? Must I use AC3Burst or MPABurst or another burst?

Now I use the console application with this commandline:


"BeSweet.exe" -core( -input "Extracted_Audio.wav" -output "Encoded_Audio.mp2" -logfile "Encoded_Audio.log" ) -ota( -r 960 1001 -g max ) -shibatch( --rate 44100 ) -2lame( -e -b 224 -m s )

Can anyone help with this.
__________________
The Mask
Developer of The FilmMachine
An easy to use, wizard-like, AVI/MP4/MOV/RMVB/MKV to DVD conversion utility
TFM_TheMask is offline   Reply With Quote
Old 8th May 2003, 13:01   #63  |  Link
DSPguru
BeSweet Author
 
DSPguru's Avatar
 
Join Date: Oct 2001
Location: On top of a supercompact cardinal
Posts: 3,506
MPABurst
DSPguru is offline   Reply With Quote
Old 8th May 2003, 13:37   #64  |  Link
TFM_TheMask
Registered User
 
TFM_TheMask's Avatar
 
Join Date: Apr 2003
Location: Netherlands
Posts: 131
That doesn't work. I use this commandline:

0: BeSweet.dll
1: -core(
2: -input
3: ac3input
4: -output
5: Test.mp2
6: -logfile
7: Test.txt
8: )
9: -ota(
10: -r
11: 960
12: 1001
13: -g
14: max
15: )
16: -shibatch(
17: --rate
18: 44100
19: )
20: -2lame(
21: -e
22: -b
23: 224
24: -m
25: s
26: )
besweet_argc: 27

I feed mpaburst a stream like BeStrip does with Ac3Burst.

By the way must I use AC3input in the commandline or does this trigger something else.

The logfile is:
BeSweet v1.5b6 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 MP2enc.dll v1.129 (23/5/2002), Engine 1.129 <http://www.cdex.n3.net>.

Logging start : 05/08/03 , 14:24:03.

BeSweet.dll -core( -input ac3input -output Test.mp2 -logfile Test.txt ) -ota( -r 960 1001 -g max ) -shibatch( --rate 44100 ) -2lame( -e -b 224 -m s )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : ac3input
[00:00:00:000] | Output: Test.mp2
[00:00:00:000] | Floating-Point Process: Yes
[00:00:00:000] +-------- AZID -------
[00:00:00:000] | Output Stereo mode: Dolby surround compatible
[00:00:00:000] | Total Gain: 0.000dB, Compression: None
[00:00:00:000] | LFE levels: To LR -INF, 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] +------ Shibatch -----
[00:00:00:000] | Source Sample-Rate: 48.0KHz
[00:00:00:000] | Dest. Sample-Rate: 44.1KHz
[00:00:00:000] | Attenuation : 0.0db
[00:00:00:000] +-------- FRC --------
[00:00:00:000] | Source Frame-Rate: 960
[00:00:00:000] | Dest. Frame-Rate: 1001
[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 : Stereo
[00:00:00:000] | Error Protection: Yes
[00:00:00:000] +---------------------

and then I got an access violation when I call mpabursts.

What am I doing wrong?
__________________
The Mask
Developer of The FilmMachine
An easy to use, wizard-like, AVI/MP4/MOV/RMVB/MKV to DVD conversion utility
TFM_TheMask is offline   Reply With Quote
Old 8th May 2003, 14:23   #65  |  Link
DSPguru
BeSweet Author
 
DSPguru's Avatar
 
Join Date: Oct 2001
Location: On top of a supercompact cardinal
Posts: 3,506
3: mpainput

-input mpainput
DSPguru is offline   Reply With Quote
Old 8th May 2003, 17:32   #66  |  Link
TFM_TheMask
Registered User
 
TFM_TheMask's Avatar
 
Join Date: Apr 2003
Location: Netherlands
Posts: 131
Got a little bit further but now I got a "invalid floating point operation".

What I did is extracted a vbrmp3 from a avi-file. Because BeSweet has troubles with dealing with a vbrmp3 file I decoded the wav with madplay. Then I tried the conversion to mpa with BeSweet.exe with the same commands as described in my first post. It worked fine.

The logfile output is:

BeSweet v1.5b1 by DSPguru.
--------------------------
Using Shibatch.dll v0.2 by Naoki Shibata & DSPguru (shibatch.sourceforge.net).
Using MP2enc.dll v1.129 (23/5/2002), Engine 1.129 <http://www.cdex.n3.net>.

Logging start : 05/08/03 , 16:29:03.

BeSweet.exe -core( -input test.wav -output test.mpa -logfile besweetexe.log ) -ota( -r 960 1001 -g max ) -shibatch( --rate 44100 ) -2lame( -e -b 224 -m s )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : test.wav
[00:00:00:000] | Output: test.mpa
[00:00:00:000] | Floating-Point Process: Yes
[00:00:00:000] | Overall Track Gain: 1.499dB
[00:00:00:000] +------ Shibatch -----
[00:00:00:000] | Source Sample-Rate: 48.0KHz
[00:00:00:000] | Dest. Sample-Rate: 44.1KHz
[00:00:00:000] | Attenuation : 0.0db
[00:00:00:000] +-------- FRC --------
[00:00:00:000] | Source Frame-Rate: 960
[00:00:00:000] | Dest. Frame-Rate: 1001
[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 : Stereo
[00:00:00:000] | Error Protection: Yes
[00:00:00:000] +---------------------
[01:45:58:293] Conversion Completed !
[01:45:58:293] Actual Avg. Bitrate : 214kbps
[00:17:31:000] <-- Transcoding Duration
Logging ends : 05/08/03 , 16:46:34.

Then I tried it using your dll and with mpainput and the log file output is:

BeSweet v1.5b6 by DSPguru.
--------------------------
Using hip.dll v1.13 by Myers Carpenter <myers@users.sf.net>
Using Shibatch.dll v0.2 by Naoki Shibata & DSPguru (shibatch.sourceforge.net).
Using MP2enc.dll v1.129 (23/5/2002), Engine 1.129 <http://www.cdex.n3.net>.

Logging start : 05/08/03 , 18:13:00.

BeSweet.dll -core( -input mpainput -output Test.mp2 -logfile Test.txt ) -ota( -r 960 1001 -g max ) -shibatch( --rate 44100 ) -2lame( -e -b 224 -m s )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : mpainput
[00:00:00:000] | Output: Test.mp2
[00:00:00:000] | Floating-Point Process: Yes
[00:00:00:000] +------ Shibatch -----
[00:00:00:000] | Source Sample-Rate: 48.0KHz
[00:00:00:000] | Dest. Sample-Rate: 44.1KHz
[00:00:00:000] | Attenuation : 0.0db
[00:00:00:000] +-------- FRC --------
[00:00:00:000] | Source Frame-Rate: 960
[00:00:00:000] | Dest. Frame-Rate: 1001
[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 : Stereo
[00:00:00:000] | Error Protection: Yes
[00:00:00:000] +---------------------
[00:00:00:036] Stream error : Sync found after 428 bytes
[00:00:00:072] Stream error : Sync found after 632 bytes
[00:00:00:108] Stream error : Sync found after 119 bytes
[00:00:00:134] Stream error : Sync found after 451 bytes
[00:00:00:170] Stream error : Sync found after 1153 bytes
[00:00:00:222] Stream error : Sync found after 176 bytes
[00:00:00:258] Stream error : Sync found after 242 bytes
[00:00:00:282] Stream error : Sync found after 322 bytes
[00:00:00:308] Stream error : Sync found after 261 bytes
[00:00:00:344] Stream error : Sync found after 417 bytes
[00:00:00:370] Stream error : Sync found after 28 bytes
[00:00:00:394] Stream error : Sync found after 406 bytes
[00:00:00:420] Stream error : Sync found after 20 bytes
[00:00:00:444] Stream error : Sync found after 210 bytes
[00:00:00:468] Stream error : Sync found after 64 bytes
[00:00:00:494] Stream error : Sync found after 316 bytes
[00:00:00:518] Stream error : Sync found after 6 bytes
[00:00:00:544] Stream error : Sync found after 41 bytes
[00:00:00:580] Stream error : Sync found after 3 bytes
[00:00:00:607] Stream error : Sync found after 624 bytes
[00:00:00:633] Stream error : Sync found after 173 bytes
[00:00:00:669] Stream error : Sync found after 119 bytes
[00:00:00:705] Stream error : Sync found after 271 bytes
[00:00:00:729] Stream error : Sync found after 51 bytes
[00:00:00:755] Stream error : Sync found after 70 bytes
[00:00:00:781] Stream error : Sync found after 251 bytes
[00:00:00:807] Stream error : Sync found after 196 bytes
[00:00:00:833] Stream error : Sync found after 536 bytes
[00:00:00:869] Stream error : Sync found after 1122 bytes
[00:00:00:893] Stream error : Sync found after 523 bytes
[00:00:00:919] Stream error : Sync found after 544 bytes
[00:00:00:945] Stream error : Sync found after 544 bytes
[00:00:00:969] Stream error : Sync found after 10 bytes
[00:00:00:993] Stream error : Sync found after 219 bytes
[00:00:01:029] Stream error : Sync found after 22 bytes
[00:00:01:053] Stream error : Sync found after 564 bytes
[00:00:01:089] Stream error : Sync found after 379 bytes
[00:00:01:116] Stream error : Sync found after 147 bytes
[00:00:01:142] Stream error : Sync found after 888 bytes
[00:00:01:168] Stream error : Sync found after 557 bytes
[00:00:01:194] Stream error : Sync found after 10 bytes
[00:00:01:230] Stream error : Sync found after 692 bytes
[00:00:01:266] Stream error : Sync found after 94 bytes
[00:00:01:328] Stream error : Sync found after 23 bytes
[00:00:01:352] Stream error : Sync found after 1079 bytes
[00:00:01:378] Stream error : Sync found after 76 bytes
[00:00:01:402] Stream error : Sync found after 154 bytes
[00:00:01:428] Stream error : Sync found after 4 bytes
[00:00:01:452] Stream error : Sync found after 343 bytes
[00:00:01:478] Stream error : Sync found after 231 bytes
[00:00:01:505] Stream error : Sync found after 161 bytes
[00:00:01:541] Stream error : Sync found after 644 bytes
[00:00:01:565] Stream error : Sync found after 724 bytes
[00:00:01:589] Stream error : Sync found after 376 bytes
[00:00:01:613] Stream error : Sync found after 1419 bytes
[00:00:01:685] Stream error : Sync found after 687 bytes
[00:00:01:721] Stream error : Sync found after 1402 bytes
[00:00:01:747] Stream error : Sync found after 657 bytes
[00:00:01:783] Stream error : Sync found after 1255 bytes
[00:00:01:807] Stream error : Sync found after 48 bytes
[00:00:01:843] Stream error : Sync found after 599 bytes
[00:00:01:903] Stream error : Sync found after 317 bytes
[00:00:01:939] Stream error : Sync found after 1004 bytes
[00:00:01:975] Stream error : Sync found after 238 bytes
[00:00:02:011] Stream error : Sync found after 983 bytes
[00:00:02:035] Stream error : Sync found after 34 bytes
[00:00:02:071] Stream error : Sync found after 20 bytes
[00:00:02:095] Stream error : Sync found after 36 bytes
[00:00:02:131] Stream error : Sync found after 910 bytes
[00:00:02:167] Stream error : Sync found after 431 bytes
[00:00:02:203] Stream error : Sync found after 1029 bytes
[00:00:02:265] Stream error : Sync found after 580 bytes
[00:00 at this point I got a invalid floating point operation.

Maybe the size of the buffer is wrong. I give mpabursts a buffer of 2048 bytes. The Bs_info record the function mpabursts returns says [00:00:2048:000] peak: 0,00. It looks that the bs_info.seconds is giving back the size of the buffer.
__________________
The Mask
Developer of The FilmMachine
An easy to use, wizard-like, AVI/MP4/MOV/RMVB/MKV to DVD conversion utility
TFM_TheMask is offline   Reply With Quote
Old 8th May 2003, 19:24   #67  |  Link
DSPguru
BeSweet Author
 
DSPguru's Avatar
 
Join Date: Oct 2001
Location: On top of a supercompact cardinal
Posts: 3,506
a. which problem does BeSweet have with vbrmp3 ?
b. what were you inputting BeSweet.dll ? the original mpa stream (mpainput) or the decoded stream (pcminput) ?
DSPguru is offline   Reply With Quote
Old 9th May 2003, 13:32   #68  |  Link
TFM_TheMask
Registered User
 
TFM_TheMask's Avatar
 
Join Date: Apr 2003
Location: Netherlands
Posts: 131
a)BeSweet.exe very rarely hangs when converting extracted wav(mp3) to mpa. This is also why DVD2SVCD uses MadPlay. I experienced this ones in my program The FilmMachine and that's why I use MadPlay before executing BeSweet. It's more stable.
b)You're right I feed the pcm output stream from madplay to youre dll. But when I feed the extracted wav (mp3) directly to the dll with mpainput it gives also an "invalid floating point operation".

The log output is:

BeSweet v1.5b6 by DSPguru.
--------------------------
Using hip.dll v1.13 by Myers Carpenter <myers@users.sf.net>
Using Shibatch.dll v0.2 by Naoki Shibata & DSPguru (shibatch.sourceforge.net).
Using MP2enc.dll v1.129 (23/5/2002), Engine 1.129 <http://www.cdex.n3.net>.

Logging start : 05/09/03 , 14:27:03.

BeSweet.dll -core( -input mpainput -output Test.mpa -logfile Test.txt ) -ota( -r 960 1001 -g max ) -shibatch( --rate 44100 ) -2lame( -e -b 224 -m s )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : mpainput
[00:00:00:000] | Output: Test.mpa
[00:00:00:000] | Floating-Point Process: Yes
[00:00:00:000] +------ Shibatch -----
[00:00:00:000] | Source Sample-Rate: 48.0KHz
[00:00:00:000] | Dest. Sample-Rate: 44.1KHz
[00:00:00:000] | Attenuation : 0.0db
[00:00:00:000] +-------- FRC --------
[00:00:00:000] | Source Frame-Rate: 960
[00:00:00:000] | Dest. Frame-Rate: 1001
[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 : Stereo
[00:00:00:000] | Error Protection: Yes
[00:00:00:000] +--------------------- here I get an invalid floating point operation
__________________
The Mask
Developer of The FilmMachine
An easy to use, wizard-like, AVI/MP4/MOV/RMVB/MKV to DVD conversion utility
TFM_TheMask is offline   Reply With Quote
Old 9th May 2003, 13:57   #69  |  Link
DSPguru
BeSweet Author
 
DSPguru's Avatar
 
Join Date: Oct 2001
Location: On top of a supercompact cardinal
Posts: 3,506
let's try to clear things out..
- the pcminput works correctly ?
- now, lets only talk about the mpainput :
-- please post a logfile where you feed BeSweet.exe with your source mpafile. report problems if exists.
-- please post a logfile where you feed BeSweet.dll with mpa chunks using the minimalist commandline :
-core( -input mpainput -output Test.mpa -logfile Test.txt )
DSPguru is offline   Reply With Quote
Old 9th May 2003, 15:42   #70  |  Link
TFM_TheMask
Registered User
 
TFM_TheMask's Avatar
 
Join Date: Apr 2003
Location: Netherlands
Posts: 131
1. What do you mean with pcminput. Must I use another function call for this, and use pcminput instead of mpainput?

2. Here's a logfile from your dll with minimum commands with the original extracted wav (mp3). It works, only found 1 stream error (sync found after 58 bytes). By the way your Bs_info record still doesn't give the time, it only gives 00:00:2048:000 every 2048 bytes (if I use an ac3-file and ac3bursts the bs_info record gives the correct time).

BeSweet v1.5b6 by DSPguru.
--------------------------
Using hip.dll v1.13 by Myers Carpenter <myers@users.sf.net>
Using lame_enc.dll v1.28 (18/4/2002), Engine 3.92 <http://www.mp3dev.org/>.

Logging start : 05/09/03 , 15:06:03.

BeSweet.dll -core( -input mpainput -output Test.mpa -logfile Test.txt )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : mpainput
[00:00:00:000] | Output: Test.mpa
[00:00:00:000] | Floating-Point Process: Yes
[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:00:00:024] Stream error : Sync found after 58 bytes
[01:45:51:936] Conversion Completed !
[01:45:51:936] Actual Avg. Bitrate : 127kbps
[00:22:13:000] <-- Transcoding Duration
Logging ends : 05/09/03 , 15:28:16.

3. Here is a logfile from your exe with the commands I always use with the original extracted wav (mp3). No errors, worked fine.

BeSweet v1.5b1 by DSPguru.
--------------------------
Using hip.dll v1.13 by Myers Carpenter <myers@users.sf.net>
Using Shibatch.dll v0.2 by Naoki Shibata & DSPguru (shibatch.sourceforge.net).
Using MP2enc.dll v1.129 (23/5/2002), Engine 1.129 <http://www.cdex.n3.net>.

Logging start : 05/09/03 , 16:09:33.

BeSweet.exe -core( -input test.wav -output test.mpa -logfile besweetexe.log ) -ota( -r 960 1001 -g max ) -shibatch( --rate 44100 ) -2lame( -e -b 224 -m s )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : test.wav
[00:00:00:000] | Output: test.mpa
[00:00:00:000] | Floating-Point Process: Yes
[00:00:00:000] | Overall Track Gain: 1.499dB
[00:00:00:000] +------ Shibatch -----
[00:00:00:000] | Source Sample-Rate: 48.0KHz
[00:00:00:000] | Dest. Sample-Rate: 44.1KHz
[00:00:00:000] | Attenuation : 0.0db
[00:00:00:000] +-------- FRC --------
[00:00:00:000] | Source Frame-Rate: 960
[00:00:00:000] | Dest. Frame-Rate: 1001
[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 : Stereo
[00:00:00:000] | Error Protection: Yes
[00:00:00:000] +---------------------
[01:45:51:904] Conversion Completed !
[01:45:51:904] Actual Avg. Bitrate : 214kbps
[00:27:28:000] <-- Transcoding Duration
Logging ends : 05/09/03 , 16:37:01.
__________________
The Mask
Developer of The FilmMachine
An easy to use, wizard-like, AVI/MP4/MOV/RMVB/MKV to DVD conversion utility
TFM_TheMask is offline   Reply With Quote
Old 9th May 2003, 16:31   #71  |  Link
DSPguru
BeSweet Author
 
DSPguru's Avatar
 
Join Date: Oct 2001
Location: On top of a supercompact cardinal
Posts: 3,506
1. for wav (pcm inputs), you naturally need to set "-input pcminput", and use the PCM16S_Bursts function.

2. regarding the bugs you reported :
2.1. as you can see, there's no problem for BeSweet to process vbrmp3 file. dvd2svcd choosed to use madplay prior to the fixes i put into BeSweet.
2.2. the bs_info bug and the combination of sample-rate-conversion with frame-rate-conversion issue had already been fixed in the latter BeSweet versions.

conclusion : i just need to release a newer BeSweet.dll (v1.5b17)


now, i understand from you that you use BeSweet.dll, implementing a transcode process from AVI into mp2.
may i ask why don't you just use BeSweet.exe to do that directly ?
DSPguru is offline   Reply With Quote
Old 9th May 2003, 17:20   #72  |  Link
TFM_TheMask
Registered User
 
TFM_TheMask's Avatar
 
Join Date: Apr 2003
Location: Netherlands
Posts: 131
1. What other functions can you call in the dll. In your example file you only speak of ac3bursts and mpabursts. Is the function declaration of PCM16S_Bursts the same as ac3bursts and mpabursts.

2.1. Ok I will skip MadPlay for the time being to test the new release of BeSweet.exe directly with vbrmp3's.

2.2. When will you release the new dll, and will it work with the commands I had troubles with. The commands also won't work on AC3 with ac3input. Only the commands used in the earlier posts in this thread are working (that is the one that is used in BeStrip, -ota( -d 0 -G max ) -lame( --alt-preset 128 --scale 1 )).

By the way I use the same commands on all extracted avi audiostreams with youre BeSweet.exe (so it doesn't matter if it is AC3, MP2, MP3, PCM).

At this time I use besweet.exe because it's the best at audio conversions. But since my Program is designed for windows I like to to show your bs_info record graphical. Consoles and CLI apps are so unfancy.
__________________
The Mask
Developer of The FilmMachine
An easy to use, wizard-like, AVI/MP4/MOV/RMVB/MKV to DVD conversion utility
TFM_TheMask is offline   Reply With Quote
Old 9th May 2003, 20:30   #73  |  Link
DSPguru
BeSweet Author
 
DSPguru's Avatar
 
Join Date: Oct 2001
Location: On top of a supercompact cardinal
Posts: 3,506
1. same decleration. open BeSweet.dll with "dependency walker" for more info on its functions.
2. i'll publish dll v1.5b17 in near future.
3. fancy gui is cool !
DSPguru is offline   Reply With Quote
Old 9th May 2003, 20:41   #74  |  Link
TFM_TheMask
Registered User
 
TFM_TheMask's Avatar
 
Join Date: Apr 2003
Location: Netherlands
Posts: 131
Tip: I was bored and tested a little bit. I found out that -2lame is the problem. If I use the commands without -2lame it's working great.

By the way is toolame the replacement of 2lame in your latter versions?

Also tested the pcmbursts function, it worked fine without -2lame. The Bs_info record also gives false values back with this function.

Hope you will inform me when you publish youre new dll.
__________________
The Mask
Developer of The FilmMachine
An easy to use, wizard-like, AVI/MP4/MOV/RMVB/MKV to DVD conversion utility
TFM_TheMask is offline   Reply With Quote
Old 11th May 2003, 23:51   #75  |  Link
DSPguru
BeSweet Author
 
DSPguru's Avatar
 
Join Date: Oct 2001
Location: On top of a supercompact cardinal
Posts: 3,506
zmAn forced me to create a new BeSweet.dll build for his new tool (azidts), so you can get it from its package.
DSPguru is offline   Reply With Quote
Old 12th May 2003, 19:41   #76  |  Link
TFM_TheMask
Registered User
 
TFM_TheMask's Avatar
 
Join Date: Apr 2003
Location: Netherlands
Posts: 131
Here are my test results of your new dll (v1.5b17).

1. AC3Bursts with ac3 file
a. BS_info record : peak is always 0, time is displayed correctly.
b. commands that work: shibatch, ota and toolame.
c. commands that won't work: mp2enc and 2lame. (floating point error).

2. MPABursts with vbrmp3 file
a. BS_info record : time is always 0, peak is displayed correctly.
b. commands that work: shibatch, ota and toolame.
c. commands that won't work: mp2enc and 2lame. (floating point error).

3. PCMBursts with decoded madplay file
a. BS_info record : is displayed correctly.
b. commands that work: shibatch, ota and toolame.
c. commands that won't work: mp2enc and 2lame. (floating point error).

Hope this is of some use. Conclusion: your dll is not working with mp2enc.dll (I only tested the commands I send in my first post).

By the way the logfile that is created is always appended. Also with the command -logfile.


4 Question
With BeSweet.exe there is always a two pass process. First it will find the maximum gain and after that the real transcoding begins.
With the dll the transcoding begins immediately. Is it also possible to do a two-pass like in the exe?
__________________
The Mask
Developer of The FilmMachine
An easy to use, wizard-like, AVI/MP4/MOV/RMVB/MKV to DVD conversion utility
TFM_TheMask is offline   Reply With Quote
Old 12th May 2003, 19:55   #77  |  Link
DSPguru
BeSweet Author
 
DSPguru's Avatar
 
Join Date: Oct 2001
Location: On top of a supercompact cardinal
Posts: 3,506
10q 4 very useful inputs!

1. i'll check the peak issue
2. i'll check the time indicator for mp2 inputs
3. i'll check the 2lame/mp2enc problem

4. logfile is indeed appended, that's because i assume that the main tool will always write to the logfile before BeSweet.dll
5. BeSweet cannot run twice on the inputfile, because it has no control on the input file - the input is being burst, remeber ?

so either you use a PostGain/HybridGain methods (if you don't know what that is, search in the audio encoding forum ), or either you implement two-passes in the main program :
first pass would come after calling "no_output", in the second pass you'll be asserting gain according to the PEAK value that was recieved in BS_Record. the two commandlines (1st & 2nd pass) should only differ in the "-g" switch. all others (but to "-logfile", i guess) should stay the same.

Last edited by DSPguru; 12th May 2003 at 19:57.
DSPguru is offline   Reply With Quote
Old 12th May 2003, 20:29   #78  |  Link
TFM_TheMask
Registered User
 
TFM_TheMask's Avatar
 
Join Date: Apr 2003
Location: Netherlands
Posts: 131
new finding

1. AC3burst: if I use -G max the peak is displayed but there is no output. if I use -g max than the peak is not displayed, but there is output.

2. Mpaburst: if I use -G max I get a floating point error. if I use -g max there is output.

3. Pcmburst: if I use -G max there is no output. if I use -g max than there is output.

Is this normal?
__________________
The Mask
Developer of The FilmMachine
An easy to use, wizard-like, AVI/MP4/MOV/RMVB/MKV to DVD conversion utility
TFM_TheMask is offline   Reply With Quote
Old 12th May 2003, 21:57   #79  |  Link
DSPguru
BeSweet Author
 
DSPguru's Avatar
 
Join Date: Oct 2001
Location: On top of a supercompact cardinal
Posts: 3,506
DSPguru is offline   Reply With Quote
Old 12th May 2003, 22:23   #80  |  Link
TFM_TheMask
Registered User
 
TFM_TheMask's Avatar
 
Join Date: Apr 2003
Location: Netherlands
Posts: 131
Here it is.

BeSweet v1.5b17 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using Shibatch.dll v0.24 by Naoki Shibata & DSPguru (shibatch.sourceforge.net).
Using tooLame.dll v0.2l (Apr 24 2003) by Mike Cheng <http://tooLame.sf.net>

Logging start : 05/12/03 , 23:06:45.

BeSweet.dll -core( -input ac3input -output Test.mp3 -logfile Test.txt ) -ota( -r 960 1001 -G max ) -shibatch( --rate 44100 ) -toolame( -m s -b 224 -e )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : ac3input
[00:00:00:000] | Output: Test.mp3
[00:00:00:000] | Floating-Point Process: No
[00:00:00:000] | PostGain normalize to : 6662.00
[00:01:48:448] Conversion Completed !
[00:00:10:000] <-- Transcoding Duration

Logging ends : 05/12/03 , 23:06:55.


BeSweet v1.5b17 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using Shibatch.dll v0.24 by Naoki Shibata & DSPguru (shibatch.sourceforge.net).
Using tooLame.dll v0.2l (Apr 24 2003) by Mike Cheng <http://tooLame.sf.net>

Logging start : 05/12/03 , 23:07:02.

BeSweet.dll -core( -input ac3input -output Test.mp3 -logfile Test.txt ) -ota( -r 960 1001 -g max ) -shibatch( --rate 44100 ) -toolame( -m s -b 224 -e )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : ac3input
[00:00:00:000] | Output: Test.mp3
[00:00:00:000] | Floating-Point Process: No
[00:00:00:000] +-------- AZID -------
[00:00:00:000] | Output Stereo mode: Dolby surround compatible
[00:00:00:000] | Total Gain: 0.000dB, Compression: None
[00:00:00:000] | LFE levels: To LR -INF, 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] +------ Shibatch -----
[00:00:00:000] | Source Sample-Rate: 48.0KHz
[00:00:00:000] | Dest. Sample-Rate: 44.1KHz
[00:00:00:000] | Attenuation : 0.0db
[00:00:00:000] +-------- FRC --------
[00:00:00:000] | Source Frame-Rate: 960
[00:00:00:000] | Dest. Frame-Rate: 1001
[00:00:00:000] +------ tooLame ------
[00:00:00:000] | Bitrate method : CBR
[00:00:00:000] | MP2 bitrate : 224
[00:00:00:000] | Channels Mode : Stereo
[00:00:00:000] | Error Protection: Yes
[00:00:00:000] +---------------------
[00:01:48:448] Conversion Completed !
[00:01:48:448] Actual Avg. Bitrate : 214kbps
[00:00:21:000] <-- Transcoding Duration

Logging ends : 05/12/03 , 23:07:23.


BeSweet v1.5b17 by DSPguru.
--------------------------
Using hip.dll v1.19 by Myers Carpenter <myers@users.sf.net>
Using Shibatch.dll v0.24 by Naoki Shibata & DSPguru (shibatch.sourceforge.net).
Using tooLame.dll v0.2l (Apr 24 2003) by Mike Cheng <http://tooLame.sf.net>

Logging start : 05/12/03 , 23:13:21.

BeSweet.dll -core( -input mpainput -output Test.mpa -logfile Test.txt ) -ota( -r 960 1001 -G max ) -shibatch( --rate 44100 ) -toolame( -m s -b 224 -e )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : mpainput
[00:00:00:000] | Output: Test.mpa
[00:00:00:000] | Floating-Point Process: No
[00:00:00:000] | PostGain normalize to : 6662.00
[00:00:00:106] Conversion Completed !
[00:00:28:000] <-- Transcoding Duration

Logging ends : 05/12/03 , 23:13:49.


BeSweet v1.5b17 by DSPguru.
--------------------------
Using hip.dll v1.19 by Myers Carpenter <myers@users.sf.net>
Using Shibatch.dll v0.24 by Naoki Shibata & DSPguru (shibatch.sourceforge.net).
Using tooLame.dll v0.2l (Apr 24 2003) by Mike Cheng <http://tooLame.sf.net>

Logging start : 05/12/03 , 23:14:26.

BeSweet.dll -core( -input mpainput -output Test.mpa -logfile Test.txt ) -ota( -r 960 1001 -g max ) -shibatch( --rate 44100 ) -toolame( -m s -b 224 -e )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : mpainput
[00:00:00:000] | Output: Test.mpa
[00:00:00:000] | Floating-Point Process: No
[00:00:00:000] +------ Shibatch -----
[00:00:00:000] | Source Sample-Rate: 48.0KHz
[00:00:00:000] | Dest. Sample-Rate: 44.1KHz
[00:00:00:000] | Attenuation : 0.0db
[00:00:00:000] +-------- FRC --------
[00:00:00:000] | Source Frame-Rate: 960
[00:00:00:000] | Dest. Frame-Rate: 1001
[00:00:00:000] +------ tooLame ------
[00:00:00:000] | Bitrate method : CBR
[00:00:00:000] | MP2 bitrate : 224
[00:00:00:000] | Channels Mode : Stereo
[00:00:00:000] | Error Protection: Yes
[00:00:00:000] +---------------------
[00:00:00:000] Stream error : Sync found after 126 bytes
[00:00:00:106] Conversion Completed !
[00:00:00:106] Actual Avg. Bitrate : 608879kbps
[00:00:41:000] <-- Transcoding Duration

Logging ends : 05/12/03 , 23:15:07.


BeSweet v1.5b17 by DSPguru.
--------------------------
Using Shibatch.dll v0.24 by Naoki Shibata & DSPguru (shibatch.sourceforge.net).
Using tooLame.dll v0.2l (Apr 24 2003) by Mike Cheng <http://tooLame.sf.net>

Logging start : 05/12/03 , 23:18:12.

BeSweet.dll -core( -input pcminput -output Test.mpa -logfile Test.txt ) -ota( -r 960 1001 -G max ) -shibatch( --rate 44100 ) -toolame( -m s -b 224 -e )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : pcminput
[00:00:00:000] | Output: Test.mpa
[00:00:00:000] | Floating-Point Process: No
[00:00:00:000] | PostGain normalize to : 6662.00
[01:45:50:575] Conversion Completed !
[00:01:34:000] <-- Transcoding Duration

Logging ends : 05/12/03 , 23:19:46.
__________________
The Mask
Developer of The FilmMachine
An easy to use, wizard-like, AVI/MP4/MOV/RMVB/MKV to DVD conversion utility
TFM_TheMask is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 23:16.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.