View Full Version : @DSPguru: support for AVI input in BeSweet?


bb
5th September 2002, 11:11
Is there any way of using AVI directly as BeSweet input? BeSweet could read (one of) the auds stream(s) and feed it directly into the conversion chain. This way we would save an extra demuxing step, like "Save WAV" in VirtualDub.

I'm asking because in the DV forum there are a lot of people (like me) who capture DV type-2 from their camcorders. Nowadays you have to demux the WAV first before you can transcode to, let's say, MP3.

The most exciting tool would be a BeSweet ACM codec with all the options available which I could select directly in VirtualDub... (just an idea, probably too difficult).

bb

DSPguru
5th September 2002, 12:25
BeSweet ACM was an old plan...

anyway, i do plan to support AVI inputs. only question is.. when :confused:

bb
5th September 2002, 14:34
Originally posted by DSPguru
only question is.. when :confused:

I know what you mean... Same problem here: not enough time for all the good ideas.

bb

DSPguru
5th September 2002, 16:38
Originally posted by bb
I know what you mean... Same problem here: not enough time for all the good ideas.:) & :(

pacohaas
5th September 2002, 17:00
great minds think alike, eh? :sly:

bb
25th November 2002, 20:01
Some first feedback for BeSweet's AVI input (v1.5b7):
Tested on an MJPEG AVI, captured from TV. 44.1kHz PCM audio stream ("CD quality"). I could not transcode the audio, neither form the multisegment file (14 segments) nor from a short test clip I extracted (normal AVI file). I tried to transcode to ogg, here's the command line:

"c:\Video\BeSweet1.5b7\BeSweet.exe" -core( -input "G:\Test.avi" -output "G:\Test.ogg" ) -ogg( -q 0.250 )

The error message said "Error 69: Could not initialize vorbis engine (wrong parameters?)".

I tried AVS input as well, didn't work. BeSweet apparently doesn't like AviSynth frame serving.

If AVI input shall be useful for captures, then we'd need multisegment capabilities, and furthermore trim support.

I did not yet try to convert audio from a DV file, that's next.

bb

DSPguru
26th November 2002, 19:58
please post your logfile, and attach the first 10kb of the avi :).

bb
26th November 2002, 20:03
Oops, you should have told me before... (needed some space on my HDD)
Ok, next time I will.

bb

DSPguru
29th November 2002, 14:55
and here's next time..
retry with beta8 :D.

bb
30th November 2002, 10:34
Ok, here's my first DV test, but still on beta 7:

Commandline:
"C:\Video\Audio\BeSweet1.5b7\BeSweet.exe" -core( -input "C:\Temp\Berlin200210_6_DVtype2.avi" -output "C:\Temp\Berlin200210_6_DVtype2.ogg" ) -ogg( -q 0.250 )

No log file was generated; the prompt came back after a few seconds.

This was all the screen output I got:

BeSweet v1.5b7 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using hip.dll v1.16 by Myers Carpenter <myers@users.sf.net>
Using Ogg Vorbis v1.0 dlls (http://www.vorbis.com).
[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : C:\Temp\Berlin200210_6_DVtype2.avi
[00:00:00:000] | Output: C:\Temp\Berlin200210_6_DVtype2.ogg
[00:00:00:000] | Floating-Point Process: Yes
[00:00:00:000] | Source Sample-Rate: 32.0KHz
[00:00:00:000] +-------- OGG --------
[00:00:00:000] | VBR Quality : 0.250
[00:00:00:000] +---------------------

And attached you find the first frame of the DV file (including audio).

Sincerely
bb

bb
30th November 2002, 10:50
Beta 8: This time I got an Ogg Vorbis file with a length of 00:01:13 (9 KB in size), but the DV video (4.22 GB in size) has a length of 00:20:10. And there was no sound in the Ogg file.

Same command line as above (except for the BeSweet path, of course).
BTW: I used azid.dll of BeSweet 1.4, because it wasn't included in the beta archives.


BeSweet v1.5b8 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using hip.dll v1.17 by Myers Carpenter <myers@users.sf.net>
Using Ogg Vorbis v1.0 dlls (http://www.vorbis.com).

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : C:\Temp\Berlin200210_6_DVtype2.avi
[00:00:00:000] | Output: C:\Temp\Berlin200210_6_DVtype2.ogg
[00:00:00:000] | Floating-Point Process: Yes
[00:00:00:000] | Source Sample-Rate: 32.0KHz
[00:00:00:000] +-------- OGG --------
[00:00:00:000] | VBR Quality : 0.250
[00:00:00:000] +---------------------
[00:01:13:472] Conversion Completed !
[00:01:13:472] Actual Avg. Bitrate : 0kbps
[00:00:29:000] <-- Transcoding Duration


Visit DSPguru's Homepage at :
http://DSPguru.doom9.net/

bb

DSPguru
30th November 2002, 13:33
again, i would need the logfile and the avi's header.

bb
30th November 2002, 20:03
I posted a one-frame AVI, is that enough for the header?
Here's a logfile (after I finally found out how to create one via command line), see attachment.

:)

bb

DSPguru
30th November 2002, 20:35
hi bb :),
this logfile seems to be incomplete and it says "BeSweet v1.5b7"..
also, i fail to find the avi header...

Originally posted by bb
I finally found out how to create one via command linetry your luck with OggMachine ;)

bb
1st December 2002, 00:29
There's no AVI header in berlin_dvtype2.avi? :confused:

The log file was indeed from beta 7, here's the beta 8 version (not much of a difference, if you ask me...):

BeSweet v1.5b8 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using hip.dll v1.17 by Myers Carpenter <myers@users.sf.net>
Using Ogg Vorbis v1.0 dlls (http://www.vorbis.com).

Logging start : 10/31/02 , 00:07:25.

C:\Video\Audio\BeSweet1.5b8\BeSweet.exe -core( -input C:\Temp\Berlin200210_6_DVtype2.avi -output C:\Temp\Berlin200210_6_DVtype2.ogg -logfilea c:\temp\besweetlog.txt ) -ogg( -q 0.250 )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : C:\Temp\Berlin200210_6_DVtype2.avi
[00:00:00:000] | Output: C:\Temp\Berlin200210_6_DVtype2.ogg
[00:00:00:000] | Floating-Point Process: Yes
[00:00:00:000] | Source Sample-Rate: 32.0KHz
[00:00:00:000] +-------- OGG --------
[00:00:00:000] | VBR Quality : 0.250
[00:00:00:000] +---------------------
[00:01:13:472] Conversion Completed !
[00:01:13:472] Actual Avg. Bitrate : 0kbps
[00:01:13:000] <-- Transcoding Duration
Logging ends : 10/31/02 , 00:08:38.


Again the command line:

"C:\Video\Audio\BeSweet1.5b8\BeSweet.exe" -core( -input "C:\Temp\Berlin200210_6_DVtype2.avi" -output "C:\Temp\Berlin200210_6_DVtype2.ogg" -logfilea "c:\temp\besweetlog.txt" ) -ogg( -q 0.250 )

I fail to see how this can be valuable information for your debugging efforts, but I wish you all the best. :)

bb

pacohaas
2nd December 2002, 01:24
Originally posted by bb
I posted a one-frame AVI, is that enough for the header?I see the audio format as 32 kHz, stereo, 16-bit Little Endian. Does that help DG?

DSPguru
2nd December 2002, 19:42
Originally posted by pacohaas
I see the audio format as 32 kHz, stereo, 16-bit Little Endian. Does that help DG? where did you see that ?

@bb
could you report the result of the following commandline :
C:\Video\Audio\BeSweet1.5b8\BeSweet.exe -core( -input C:\Temp\Berlin200210_6_DVtype2.avi -output C:\Temp\Berlin200210_6_DVtype2.wav -logfilea c:\temp\besweetlog.txt -2ch ) -ota( -g max )

bb
2nd December 2002, 20:42
Here we go:

BeSweet v1.5b8 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using hip.dll v1.17 by Myers Carpenter <myers@users.sf.net>

Logging start : 11/01/02 , 20:40:47.

C:\Video\Audio\BeSweet1.5b8\BeSweet.exe -core( -input C:\Temp\Berlin200210_6_DVtype2.avi -output C:\Temp\Berlin200210_6_DVtype2.wav -logfilea c:\temp\besweetlog.txt -2ch ) -ota( -g max )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : C:\Temp\Berlin200210_6_DVtype2.avi
[00:00:00:000] | Output: C:\Temp\Berlin200210_6_DVtype2.wav
[00:00:00:000] | Floating-Point Process: No
[00:00:00:000] | Overall Track Gain: 1.#IOdB
[00:00:00:000] | Source Sample-Rate: 32.0KHz
[00:00:00:000] +---------------------
[00:01:13:472] Conversion Completed !
[00:01:13:472] Actual Avg. Bitrate : 1024kbps
[00:00:06:000] <-- Transcoding Duration
Logging ends : 11/01/02 , 20:40:53.


It's true: The audio is sampled at 32 kHz (my camcorder does not support anything else...)

bb

DSPguru
2nd December 2002, 23:20
Originally posted by bb
[00:00:00:000] | Overall Track Gain: 1.#IOdB looks like BeSweet doesn't recognize the audio type.
if there's no avi header, it's no wonder. if there is, please post the first 100kb of the avi file + 100kb of extracted audio stream.


ps,
BeSweet currently supports : pcm/wav 16bit, MPx, ac3.

pacohaas
3rd December 2002, 04:14
@DSPGuru: i just happened to be on my mac when i saw this post, so i downloaded the avi and opened it in quicktime and saw that info for the sound.

DSPguru
3rd December 2002, 05:57
Originally posted by pacohaas
@DSPGuru: i just happened to be on my mac when i saw this post, so i downloaded the avi and opened it in quicktime and saw that info for the sound. downloaded from where ?

bb
3rd December 2002, 07:04
@DSPguru: I guess you missed my attachment from 30th November, first post (berlin_dvtype2.zip). That's the beginning of the DV AVI, which I think should contain the header you are requesting all the time.

Do you want me to upload a longer file (it's DV, so it'll get large very soon...)?

As for the sound: It's PCM WAV 16 Bit, sampled at 32 kHz. BeSweet supports that; I've converted many of these audio streams going the "VirtualDub - Save WAV - BeSweet" way.

I can post a few seconds of WAV this evening. And hopefully I can then continue to test captured MJPEGs again.

bb

DSPguru
3rd December 2002, 20:05
try :
BeSweet.exe -core( -input C:\Temp\Berlin200210_6_DVtype2.avi -output C:\Temp\Berlin200210_6_DVtype2.pcm -payload -logfile c:\temp\besweetlog.txt )

and then :
BeSweet.exe -core( -input C:\Temp\Berlin200210_6_DVtype2.pcm -output C:\Temp\Berlin200210_6_DVtype2.wav -2ch -logfilea c:\temp\besweetlog.txt ) -ota( -fs 32000 )

bb
5th December 2002, 12:51
New testing results:

BeSweet v1.5b8 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using hip.dll v1.17 by Myers Carpenter <myers@users.sf.net>

Logging start : 12/05/02 , 12:45:58.

C:\Video\Audio\BeSweet1.5b8\BeSweet.exe -core( -input C:\Temp\DSPguru\Berlin200210_6_DVtype2.avi -output C:\Temp\DSPguru\Berlin200210_6_DVtype2.pcm -payload -logfile C:\Temp\DSPguru\besweetlog.txt )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : C:\Temp\DSPguru\Berlin200210_6_DVtype2.avi
[00:00:00:000] | Output: C:\Temp\DSPguru\Berlin200210_6_DVtype2.pcm
[00:00:00:000] +---------------------
[ 9437184] Conversion Completed !
[00:00:38:000] <-- Transcoding Duration
Logging ends : 12/05/02 , 12:46:36.

BeSweet v1.5b8 by DSPguru.
--------------------------

Logging start : 12/05/02 , 12:47:03.

C:\Video\Audio\BeSweet1.5b8\BeSweet.exe -core( -input C:\Temp\DSPguru\Berlin200210_6_DVtype2.pcm -output C:\Temp\DSPguru\Berlin200210_6_DVtype2.wav -2ch -logfilea C:\Temp\DSPguru\besweetlog.txt ) -ota( -fs 32000 )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : C:\Temp\DSPguru\Berlin200210_6_DVtype2.pcm
[00:00:00:000] | Output: C:\Temp\DSPguru\Berlin200210_6_DVtype2.wav
[00:00:00:000] | Floating-Point Process: No
[00:00:00:000] | Source Sample-Rate: 48.0KHz
[00:00:00:000] +---------------------
[00:00:49:152] Conversion Completed !
[00:00:49:152] Actual Avg. Bitrate : 1536kbps
[00:00:00:000] <-- Transcoding Duration
Logging ends : 12/05/02 , 12:47:03.

The first command resulted in a 9 MB PCM file (9.437.184 Bytes), the second in a 9 MB WAV file (9.437.228 Bytes).

It seems as if the avi reader always stops at the same point for some reason.

bb

bb
11th December 2002, 07:24
Anything else for me to test?

bb

DSPguru
11th December 2002, 07:55
maybe testing other AVI streams..

bb
11th December 2002, 08:03
Ok, I'll be back...

bb

DSPguru
17th December 2002, 19:13
@bb
please retest your "problematic" avi with beta9 (http://BeSweet.notrace.dk/beta.html) :)

bb
18th December 2002, 11:22
Oh, thanks,

I read this just after having finished some further testing on an MJPEG capture. Here are the results (still beta 8):

PicVideo MJPEG capture 767.162 KB (4 min 1 sec)
Audio: PCM WAV 44.100 Hz 16 Bit

Results:
1: PCM file 10.884 KB
2: WAV file 10.884 KB (58 sec, skips somewhere in the middle)
3: OGG file 660 KB (1 min 2 sec, skips somewhere in the middle)

The skips appear to occur at the same position (localized one after a few seconds). The first and the last few seconds are ok.

Log 1:

BeSweet v1.5b8 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using hip.dll v1.17 by Myers Carpenter <myers@users.sf.net>

Logging start : 12/18/02 , 10:58:58.

C:\Video\BeSweet1.5b8\BeSweet.exe -core( -input G:\DSPguru\CAPTURE000.00.avi -output G:\DSPguru\CAPTURE000.00.pcm -payload -logfile G:\DSPguru\besweetlog1.txt )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : G:\DSPguru\CAPTURE000.00.avi
[00:00:00:000] | Output: G:\DSPguru\CAPTURE000.00.pcm
[00:00:00:000] +---------------------
[ 11144688] Conversion Completed !
[00:00:02:000] <-- Transcoding Duration
Logging ends : 12/18/02 , 10:59:00.


Log 2:

BeSweet v1.5b8 by DSPguru.
--------------------------

Logging start : 12/18/02 , 11:00:23.

C:\Video\BeSweet1.5b8\BeSweet.exe -core( -input G:\DSPguru\CAPTURE000.00.pcm -output G:\DSPguru\CAPTURE000.00.wav -2ch -logfilea G:\DSPguru\besweetlog2.txt ) -ota( -fs 44100 )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : G:\DSPguru\CAPTURE000.00.pcm
[00:00:00:000] | Output: G:\DSPguru\CAPTURE000.00.wav
[00:00:00:000] | Floating-Point Process: No
[00:00:00:000] | Source Sample-Rate: 48.0KHz
[00:00:00:000] +---------------------
[00:00:58:045] Conversion Completed !
[00:00:58:045] Actual Avg. Bitrate : 1536kbps
[00:00:01:000] <-- Transcoding Duration
Logging ends : 12/18/02 , 11:00:24.


Log 3:

BeSweet v1.5b8 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using hip.dll v1.17 by Myers Carpenter <myers@users.sf.net>
Using Ogg Vorbis v1.0 dlls (http://www.vorbis.com).

Logging start : 12/18/02 , 11:07:36.

C:\Video\BeSweet1.5b8\BeSweet.exe -core( -input G:\DSPguru\CAPTURE000.00.avi -output G:\DSPguru\CAPTURE000.00.OGG -logfilea G:\DSPguru\besweetlog3.txt ) -azid( -n1 -c normal -L -3db --maximize ) -ogg( -q 0.250 )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : G:\DSPguru\CAPTURE000.00.avi
[00:00:00:000] | Output: G:\DSPguru\CAPTURE000.00.OGG
[00:00:00:000] | Floating-Point Process: Yes
[00:00:00:000] | Source Sample-Rate: 44.1KHz
[00:00:00:000] +-------- OGG --------
[00:00:00:000] | VBR Quality : 0.250
[00:00:00:000] +---------------------
[00:01:02:944] Conversion Completed !
[00:01:02:944] Actual Avg. Bitrate : 85kbps
[00:00:11:000] <-- Transcoding Duration
Logging ends : 12/18/02 , 11:07:47.


Sincerely
bb

bb
18th December 2002, 11:59
Now the DV file again, this time using beta 9:

DV type-2 AVI 4.432.342 KB (20 min 10 sec)
Audio: PCM WAV 32.000 Hz 16 Bit

Results:
1: PCM file 151.255 KB
2: WAV file 151.256 KB (13 min 26 sec, no skips, "mickey mouse voices, i.e. high pitch)
3: OGG file 7.576 KB (12 min 06 sec, no skips, no high pitch, but kind of stuttering and crackling, like samples are skipped regularly)

The audio seems to be complete, it just plays too fast, or it's too short.


Log 1:

BeSweet v1.5b9 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using hip.dll v1.17 by Myers Carpenter <myers@users.sf.net>
Using VOBInput.dll v1.3 by DVD2SVCD (http://www.dvd2svcd.org)

Logging start : 12/18/02 , 11:29:35.

C:\Video\Audio\BeSweet1.5b9\BeSweet.exe -core( -input C:\Temp\DSPguru\Berlin200210_6_DVtype2.avi -output C:\Temp\DSPguru\Berlin200210_6_DVtype2.pcm -payload -logfile C:\Temp\DSPguru\besweetlog.txt )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : C:\Temp\DSPguru\Berlin200210_6_DVtype2.avi
[00:00:00:000] | Output: C:\Temp\DSPguru\Berlin200210_6_DVtype2.pcm
[00:00:00:000] +---------------------
[ 154885120] Conversion Completed !
[00:03:23:000] <-- Transcoding Duration
Logging ends : 12/18/02 , 11:32:58.


Log 2:

BeSweet v1.5b9 by DSPguru.
--------------------------

Logging start : 12/18/02 , 11:34:09.

C:\Video\Audio\BeSweet1.5b9\BeSweet.exe -core( -input C:\Temp\DSPguru\Berlin200210_6_DVtype2.pcm -output C:\Temp\DSPguru\Berlin200210_6_DVtype2.wav -2ch -logfilea C:\Temp\DSPguru\besweetlog.txt ) -ota( -fs 32000 )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : C:\Temp\DSPguru\Berlin200210_6_DVtype2.pcm
[00:00:00:000] | Output: C:\Temp\DSPguru\Berlin200210_6_DVtype2.wav
[00:00:00:000] | Floating-Point Process: No
[00:00:00:000] | Source Sample-Rate: 48.0KHz
[00:00:00:000] +---------------------
[00:13:26:693] Conversion Completed !
[00:13:26:693] Actual Avg. Bitrate : 1536kbps
[00:00:36:000] <-- Transcoding Duration
Logging ends : 12/18/02 , 11:34:45.


Log 3:

BeSweet v1.5b9 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using hip.dll v1.17 by Myers Carpenter <myers@users.sf.net>
Using VOBInput.dll v1.3 by DVD2SVCD (http://www.dvd2svcd.org)
Using Ogg Vorbis v1.0 dlls (http://www.vorbis.com).

Logging start : 12/18/02 , 11:44:15.

C:\Video\Audio\BeSweet1.5b9\BeSweet.exe -core( -input C:\Temp\DSPguru\Berlin200210_6_DVtype2.avi -output C:\Temp\DSPguru\Berlin200210_6_DVtype2.ogg -logfilea C:\Temp\DSPguru\besweetlog3.txt ) -ota( -g max ) -ogg( -q 0.250 )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : C:\Temp\DSPguru\Berlin200210_6_DVtype2.avi
[00:00:00:000] | Output: C:\Temp\DSPguru\Berlin200210_6_DVtype2.ogg
[00:00:00:000] | Floating-Point Process: Yes
[00:00:00:000] | Overall Track Gain: 0.017dB
[00:00:00:000] | Source Sample-Rate: 32.0KHz
[00:00:00:000] +-------- OGG --------
[00:00:00:000] | VBR Quality : 0.250
[00:00:00:000] +---------------------
[00:12:06:040] Conversion Completed !
[00:12:06:040] Actual Avg. Bitrate : 85kbps
[00:06:38:000] <-- Transcoding Duration
Logging ends : 12/18/02 , 11:50:53.


bb

DSPguru
18th December 2002, 23:16
thanks for all inputs, bb. it seems like we're getting closer !
please try the following commandline :

C:\Video\Audio\BeSweet1.5b9\BeSweet.exe -core( -input C:\Temp\DSPguru\Berlin200210_6_DVtype2.avi -output C:\Temp\DSPguru\Berlin200210_6_DVtype2.wav -logfilea C:\Temp\DSPguru\besweetlog4.txt -2ch )

bb
19th December 2002, 10:01
You're welcome. Here's the requested test result:


DV type-2 AVI 4.432.342 KB (20 min 10 sec)
Audio: PCM WAV 32.000 Hz 16 Bit

Result:
WAV file 90.756 KB (12 min 06 sec, no skips, no high pitch, but kind of stuttering and crackling, like samples are skipped regularly). The effect is the same as with the OGG file in my last test, and the duration is the same, too.

The audio seems to be complete, it just plays too fast, or it's too short.


BeSweet v1.5b9 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using hip.dll v1.17 by Myers Carpenter <myers@users.sf.net>
Using VOBInput.dll v1.3 by DVD2SVCD (http://www.dvd2svcd.org)

Logging start : 12/19/02 , 09:42:23.

C:\Video\Audio\BeSweet1.5b9\BeSweet.exe -core( -input C:\Temp\DSPguru\Berlin200210_6_DVtype2.avi -output C:\Temp\DSPguru\Berlin200210_6_DVtype2.wav -logfilea C:\Temp\DSPguru\besweetlog4.txt -2ch )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : C:\Temp\DSPguru\Berlin200210_6_DVtype2.avi
[00:00:00:000] | Output: C:\Temp\DSPguru\Berlin200210_6_DVtype2.wav
[00:00:00:000] | Floating-Point Process: No
[00:00:00:000] | Source Sample-Rate: 32.0KHz
[00:00:00:000] +---------------------
[00:12:06:040] Conversion Completed !
[00:12:06:040] Actual Avg. Bitrate : 1024kbps
[00:04:43:000] <-- Transcoding Duration
Logging ends : 12/19/02 , 09:47:06.


bb

DSPguru
21st December 2002, 20:41
i believe i nailed it! thank you for all those helpful inputs !

check attachment :

bb
22nd December 2002, 10:30
Well, I checked my DV file with the test scripts and your new software, but unfortunately... :p No, just kiddin', all worked fine. PCM, WAV, and OGG outputs were exactly 20min 10sec as they were supposed to be. The sound was perfect (I mean as perfect as the crappy source...).

Thank you very much, great job!

May I recommend your beta to the users in the DV forum?

Three more comments:

1. For the capture guys (like me) multisegment support would be great. Should not be a big thing: The multiple segments are just like one file split at certain byte positions without caring about the internal file structure. All you need to do is read one file after another instead of just one, following a numbering scheme (.00, .01, .02, etc.).

2. AviSynth support would be even greater. Just for completeness, no pushing, I know you are working on BeSynth.

3. Concerning the max. gain feature -ota( -g max ): If the max. gain found drops to 0.0 dB, would it be possible to break the loop instead of reading the entire file till the end? That would save quite some time if there's nothing to gain.


I'll be back soon with single file MJPEG capture test results. I don't expect any problems, though.

bb

DSPguru
22nd December 2002, 12:04
great news bb !-)
yes, you can recommend more users to work with the latest beta.

1. not sure i understand your request..
isn't your request already covered by BeSweet's support for batch-processing (using .lst files) ?
3. yea, it's in my todo list.. :D

Cheers,
Dg.

bb
22nd December 2002, 18:14
Some more good news: the MJPEG captures work well with the new version, too.

Umm, the .lst support: wouldn't it create a separate audio file for each AVI in the list? With AVS support the segmented file support would be obsolete, because AviSynth has a SegmentedAviSource command.

bb

DSPguru
22nd December 2002, 20:12
.lst is meant for merging streams.

DSPguru
23rd December 2002, 00:05
Originally posted by bb
3. Concerning the max. gain feature -ota( -g max ): If the max. gain found drops to 0.0 dB, would it be possible to break the loop instead of reading the entire file till the end? That would save quite some time if there's nothing to gain.i've written something to handle this, but didn't have the time to debug, let me know if this works well in v1.5b10.

bb
23rd December 2002, 19:47
Ok, I'll test that .lst option. Won't help much, because I'm afraid we have to deal with cut-out commercials as well. So I guess it's better to wait for BeSynth.

The beta10 addition did not work. Here's the log:

BeSweet v1.5b10 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using hip.dll v1.17 by Myers Carpenter <myers@users.sf.net>
Using VOBInput.dll v1.3 by DVD2SVCD (http://www.dvd2svcd.org)
Using Ogg Vorbis v1.0 dlls (http://www.vorbis.com).

Logging start : 12/23/02 , 19:41:31.

C:\Video\Audio\BeSweet1.5b10\BeSweet.exe -core( -input c:\Temp\Banditen.avi -output c:\Temp\Banditen.ogg ) -azid( -n1 -c normal -L -3db --maximize ) -ogg( -q 0.200 )C:\Video\Audio\BeSweet1.5b10\BeSweet.exe -core( -input c:\Temp\Banditen.avi -output c:\Temp\Banditen.ogg -logfile C:\Temp\BeSweet.log ) -azid( -n1 -c normal -L -3db --maximize ) -ogg( -q 0.200 )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : c:\Temp\Banditen.avi
[00:00:00:000] | Output: c:\Temp\Banditen.ogg
[00:00:00:000] | Floating-Point Process: Yes
[00:00:00:000] | A/V Delay found : 0msec
[00:00:00:000] | Source Sample-Rate: 48.0KHz
[00:00:00:000] +-------- OGG --------
[00:00:00:000] | VBR Quality : 0.200
[00:00:00:000] +---------------------



The original on-screen output looked like this:
BeSweet v1.5b10 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using hip.dll v1.17 by Myers Carpenter <myers@users.sf.net>
Using VOBInput.dll v1.3 by DVD2SVCD (http://www.dvd2svcd.org)
Using Ogg Vorbis v1.0 dlls (http://www.vorbis.com).

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : c:\Temp\Banditen.avi
[00:00:00:000] | Output: c:\Temp\Banditen.ogg
[00:00:00:000] | Floating-Point Process: Yes
[00:00:00:000] | A/V Delay found : 0msec
[00:00:00:000] | Source Sample-Rate: 48.0KHz
[00:00:00:000] +-------- OGG --------
[00:00:00:000] | VBR Quality : 0.200
[00:00:00:000] +---------------------
_ÂÜÛ¦e?âÍ?@?_qP)©ÆØîv¦£ý¦ü»?Î_ÂÜÛ¦e?âÍ?@?_qP)©ÆØîv¦£ý¦ü»?Î_ÂÜÛ¦e?âÍ?@?_qP)©ÆØîv¦
£ý¦ü»?Î_ÂÜÛ¦e?âÍ?@?_qP)©ÆØîv¦£ý¦ü»?Î_ÂÜÛ¦e?âÍ?@?_qP)©ÆØîv¦£ý¦ü»?Î_ÂÜÛ¦e?âÍ?@?_qP
)©ÆØîv¦£ý¦ü»?Î_ÂÜÛ¦e?âÍ?@?_qP)©ÆØîv¦£ý¦ü»?Î_ÂÜÛ¦e?âÍ?@?_qP)©ÆØîv¦£ý¦ü»?Î_ÂÜÛ¦e?â
Í?@?_qP)©ÆØîv¦£ý¦ü»?Î_ÂÜÛ¦e?âÍ?@?_qP)©ÆØîv¦£ý¦ü»?Î_ÂÜÛ¦e?âÍ?@?_qP)©ÆØîv¦£ý¦ü»?Î_

... and some more weird characters (seemed to be a regular pattern).

bb

bb
23rd December 2002, 19:54
Umm, regarding my above post: This time the source AVI had an Ogg Vorbis compressed audio stream, not PCM WAV. Seems like BeSweet's audio reader does not decompress.

Unfortunately I had to clean up my HDD, so I don't have my Berlin DV file any more. But I have an equivalent one (same settings) which I will use for another test.

Stay tuned.

bb

bb
23rd December 2002, 20:44
Here we go:

Test DV file (type-2, 44.1 kHz this time) has a length of 10 min 0 sec.
"Maximum Gain Found" drops to 0.0 dB after 1 min 50 sec, but BeSweet 1.5 beta 10 continues till the end (the whole 10 minutes).

So I'd say no, your quick fix didn't work. :scared:

By the way: what do you think about type-1 support? :)

bb

DSPguru
24th December 2002, 06:36
Ok, I'll test that .lst option. Won't help much, because I'm afraid we have to deal with cut-out commercials as well. So I guess it's better to wait for BeSynth.1. i guess you could first edit the .avi .
2. BeSynth will take time..

Umm, regarding my above post: This time the source AVI had an Ogg Vorbis compressed audio stream, not PCM WAV. Seems like BeSweet's audio reader does not decompress.no, ogg vorbis decoding isn't supported yet.
ps, could you attach the header of that avi file ?

So I'd say no, your quick fix didn't work. :scared::logfile: :-)

By the way: what do you think about type-1 support? :) can you supply info :) ?

bb
24th December 2002, 12:24
Originally posted by DSPguru
1. i guess you could first edit the .avi .
Yes, but then you'll loose the speed advantage, because you need to save the edited AVI before you can proceed with BeSweet. You'd need huge amounts of HDD space as well, because while saving the edits you need to have enough space for the original and the edited file. In that case I prefer to use the original file and VirtualDub's edits or AviSynth Trims for the video, and Save WAV for the audio...

2. BeSynth will take time..
Oh well... ;)

no, ogg vorbis decoding isn't supported yet.
ps, could you attach the header of that avi file ?
See attachment.

:logfile: :-)
Here we go:

BeSweet v1.5b10 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using hip.dll v1.17 by Myers Carpenter <myers@users.sf.net>
Using VOBInput.dll v1.3 by DVD2SVCD (http://www.dvd2svcd.org)
Using Ogg Vorbis v1.0 dlls (http://www.vorbis.com).

Logging start : 12/23/02 , 20:10:20.

C:\Video\Audio\BeSweet1.5b10\BeSweet.exe -core( -input c:\Temp\Kegeln2002_DV_type2.avi -output c:\Temp\Kegeln2002_DV_type2.ogg -logfile C:\Video\Audio\BeSweet1.5b10\BeSweet.log ) -azid( -n1 -c normal -L -3db --maximize ) -ogg( -q 0.200 ) -profile( ~~~~~ Default Profile ~~~~~ )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : c:\Temp\Kegeln2002_DV_type2.avi
[00:00:00:000] | Output: c:\Temp\Kegeln2002_DV_type2.ogg
[00:00:00:000] | Floating-Point Process: Yes
[00:00:00:000] | A/V Delay found : 0msec
[00:00:00:000] | Source Sample-Rate: 44.1KHz
[00:00:00:000] +-------- OGG --------
[00:00:00:000] | VBR Quality : 0.200
[00:00:00:000] +---------------------
[00:10:00:254] Conversion Completed !
[00:10:00:254] Actual Avg. Bitrate : 83kbps
[00:02:54:000] <-- Transcoding Duration
Logging ends : 12/23/02 , 20:13:14.

can you supply info :) ?
DV type-1 contains the audio intermuxed in the video stream instead of a separate auds stream. In fact this is true for both, type-1 and type-2, so type-2 contains the audio twice: in the vids stream and in the auds stream.

For technical info see:
http://www.microsoft.com/hwdev/tech/stream/vidcap/dvavip.asp

See also:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dx8_c/directx_cpp/htm/dvdataintheavifileformat.asp
http://www.adamwilt.com/


bb

DSPguru
24th December 2002, 15:00
Originally posted by bb
Yes, but then you'll loose the speed advantage, because you need to save the edited AVI before you can proceed with BeSweet. You'd need huge amounts of HDD space as well, because while saving the edits you need to have enough space for the original and the edited file. In that case I prefer to use the original file and VirtualDub's edits or AviSynth Trims for the video, and Save WAV for the audio...i know, i know..


C:\Video\Audio\BeSweet1.5b10\BeSweet.exe -core( -input c:\Temp\Kegeln2002_DV_type2.avi -output c:\Temp\Kegeln2002_DV_type2.ogg -logfile C:\Video\Audio\BeSweet1.5b10\BeSweet.log ) -azid( -n1 -c normal -L -3db --maximize ) -ogg( -q 0.200 ) -profile( ~~~~~ Default Profile ~~~~~ ) as suspected :), in beta10 i only handled tha ota's maxgain algo to stop on 0db. didn't handle azid's maxgain yet.

DV type-1 contains the audio intermuxed in the video stream instead of a separate auds stream. In fact this is true for both, type-1 and type-2, so type-2 contains the audio twice: in the vids stream and in the auds stream.

For technical info see:
http://www.microsoft.com/hwdev/tech/stream/vidcap/dvavip.asp

See also:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dx8_c/directx_cpp/htm/dvdataintheavifileformat.asp
http://www.adamwilt.com/


bb 10x, i'll check that out!

Dg.

DSPguru
24th December 2002, 17:54
your attachment (banditen) looks like avi+mp3 to me. doesn't look like vorbis..

bb
26th December 2002, 15:16
Yes, you're right, the file has an MP3 track (was that one really that old?!), not Ogg Vorbis. So I should better say BeSweet's AVI reader does not yet support MP3 decompression. But I guess the same is true for Ogg Vorbis.

Regarding the max. gain thing: could you suggest an appropriate ota commandline? (Ok, I'm lazy. I'll see if I can do that myself...)

Merry Christmas,

bb

DSPguru
27th December 2002, 02:18
Originally posted by bb
Yes, you're right, the file has an MP3 track (was that one really that old?!), not Ogg Vorbis. So I should better say BeSweet's AVI reader does not yet support MP3 decompression. But I guess the same is true for Ogg Vorbis.mp3 decompression should be supported..
i suspect there's an issue with the length of filenames.
can you rename that file to a.avi and try again ?

Regarding the max. gain thing: could you suggest an appropriate ota commandline? (Ok, I'm lazy. I'll see if I can do that myself...)remove -azid( --maximize ) and add -ota( -g max ).

Merry Christmas,
Dg.

EDIT :
BeSweet v1.5b10 package have been updated and will now stop on 0db also on azid's maxgain.

Zeus
27th December 2002, 10:01
Hi,
between all the sad news, I'm surely allowed to post a success, hm? :)

I have an DV-file type-2 with 32 kHz PCM audio, and managed to convert the audio to AC-3 directly from the AVI with beta 10. BTW: beta 9 was buggy for that, but that's fixed in beta 10. Here is the log:

BeSweet v1.5b10 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using hip.dll v1.17 by Myers Carpenter <myers@users.sf.net>
Using VOBInput.dll v1.3 by DVD2SVCD (http://www.dvd2svcd.org)
Using Shibatch.dll v0.24 by Naoki Shibata & DSPguru (shibatch.sourceforge.net).
Using AC3enc.dll v0.21 by Fabrice Bellard (http://ffmpeg.org).

Logging start : 12/27/02 , 09:46:09.

BeSweet -core( -input E:\Video\DV-AVI\Test-scenes04.avi -output E:\Video\DV-AVI\Test-scenes04.avi! -logfile BeSweet_log.txt ) -ac3enc( -b 384 ) -shibatch( --rate 48000 )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : E:\Video\DV-AVI\Test-scenes04.avi
[00:00:00:000] | Output: E:\Video\DV-AVI\Test-scenes04.avi!
[00:00:00:000] | Floating-Point Process: No
[00:00:00:000] | A/V Delay found : 0msec
[00:00:00:000] +------ Shibatch -----
[00:00:00:000] | Source Sample-Rate: 32.0KHz
[00:00:00:000] | Dest. Sample-Rate: 48.0KHz
[00:00:00:000] | Attenuation : 0.0db
[00:00:00:000] +------- AC3ENC ------
[00:00:00:000] | Bitrate method : CBR
[00:00:00:000] | AC3 bitrate : 384
[00:00:00:000] | Channels Mode : 2.0
[00:00:00:000] | Error Protection: Yes
[00:00:00:000] +---------------------
[00:01:02:717] Conversion Completed !
[00:01:02:717] Actual Avg. Bitrate : 383kbps
[00:00:37:000] <-- Transcoding Duration
Logging ends : 12/27/02 , 09:46:46.

Don't get confused about the "AVI!" extension, I used a batch file to automaticly rename the output file to *.ac3 :)

Good job for now! I like your BeSweet!

CU,
Zeus.

DSPguru
27th December 2002, 10:19
very very nice zeus ! here's what BeSweet did in a single shot :
avi-> 32khz pcm-> 48khz pcm-> ac3.

bb
27th December 2002, 14:27
Here's the log of "Banditen" AVI renamed to a.avi. Same result as in my previous post (strange characters on screen again: is stdout used as the decompressor's output stream?).
May I add that I believe it's a VBR audio stream?


BeSweet v1.5b10 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using hip.dll v1.17 by Myers Carpenter <myers@users.sf.net>
Using VOBInput.dll v1.3 by DVD2SVCD (http://www.dvd2svcd.org)

Logging start : 12/27/02 , 14:07:30.

C:\Video\Audio\BeSweet1.5b10\BeSweet.exe -core( -input C:\Temp\DSPguru\a.avi -output C:\Temp\DSPguru\a.wav -logfilea C:\Temp\DSPguru\besweetlog4.txt -2ch )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : C:\Temp\DSPguru\a.avi
[00:00:00:000] | Output: C:\Temp\DSPguru\a.wav
[00:00:00:000] | Floating-Point Process: No
[00:00:00:000] | A/V Delay found : 0msec
[00:00:00:000] | Source Sample-Rate: 48.0KHz
[00:00:00:000] +---------------------


Now the -ota ( -g max ) problem again:

Commandline:
C:\Video\Audio\BeSweet1.5b10\BeSweet.exe -core( -input C:\Temp\DSPguru\Kegeln2002_DV_Type2.avi -output C:\Temp\DSPguru\Kegeln2002_DV_Type2.ogg -logfilea C:\Temp\DSPguru\besweetlog5.txt ) -ota( -g max ) -ogg( -q 0.250 )

The max gain search does not end when 0.0dB is reached.

Using this commandline (generated by BeSweet GUI 0.6 b66):
"C:\Video\Audio\BeSweet1.5b10\BeSweet.exe" -core( -input "c:\Temp\DSPguru\Kegeln2002_DV_type2.avi" -output "c:\Temp\DSPguru\Kegeln2002_DV_type2.ogg" -logfile "C:\Video\Audio\BeSweet1.5b10\BeSweet.log" ) -azid( -n1 -c normal -L -3db --maximize ) -ogg( -q 0.200 ) -profile( ~~~~~ Default Profile ~~~~~ )

I can't see the max gain search starting (directly transcodes).

bb

DSPguru
27th December 2002, 14:40
Originally posted by bb
Here's the log of "Banditen" AVI renamed to a.avi. Same result as in my previous postcould you try using the payload method ?
-core( -input ..avi -output ..mp3 -logfile .. -payload )
is stdout used as the decompressor's output stream?could be..


maxgain,
i would need the logfiles. (at least, the last one).

bb
27th December 2002, 15:45
"Banditen" via payload:

BeSweet v1.5b10 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using hip.dll v1.18 by Myers Carpenter <myers@users.sf.net>
Using VOBInput.dll v1.3 by DVD2SVCD (http://www.dvd2svcd.org)
Using MP2enc.dll v1.129 (23/5/2002), Engine 1.129 <http://www.cdex.n3.net>.

Logging start : 12/27/02 , 15:07:06.

C:\Video\Audio\BeSweet1.5b10\BeSweet.exe -core( -input C:\Temp\DSPguru\a.avi -output C:\Temp\DSPguru\a.mp3 -logfilea C:\Temp\DSPguru\besweetlog4.txt -payload )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : C:\Temp\DSPguru\a.avi
[00:00:00:000] | Output: C:\Temp\DSPguru\a.mp3
[00:00:00:000] | A/V Delay found : 0msec
[00:00:00:000] +------- MP2ENC ------
[00:00:00:000] | Bitrate method : CBR
[00:00:00:000] | MP2 bitrate : 128
[00:00:00:000] | Channels Mode :
[00:00:00:000] | Error Protection: No
[00:00:00:000] +---------------------
[ 134105952] Conversion Completed !
[00:03:07:000] <-- Transcoding Duration
Logging ends : 12/27/02 , 15:10:13.


Worked fine, got a correct MP3 file. But I got an invalid WAV file when changing the extension of the output file to .MP3 instead of .WAV:
BeSweet v1.5b10 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using hip.dll v1.18 by Myers Carpenter <myers@users.sf.net>
Using VOBInput.dll v1.3 by DVD2SVCD (http://www.dvd2svcd.org)
Using MP2enc.dll v1.129 (23/5/2002), Engine 1.129 <http://www.cdex.n3.net>.

Logging start : 12/27/02 , 15:38:26.

C:\Video\Audio\BeSweet1.5b10\BeSweet.exe -core( -input C:\Temp\DSPguru\a.avi -output C:\Temp\DSPguru\a.wav -logfilea C:\Temp\DSPguru\besweetlog7.txt -payload )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : C:\Temp\DSPguru\a.avi
[00:00:00:000] | Output: C:\Temp\DSPguru\a.wav
[00:00:00:000] | A/V Delay found : 0msec
[00:00:00:000] +------- MP2ENC ------
[00:00:00:000] | Bitrate method : CBR
[00:00:00:000] | MP2 bitrate : 128
[00:00:00:000] | Channels Mode :
[00:00:00:000] | Error Protection: No
[00:00:00:000] +---------------------
[ 134105952] Conversion Completed !
[00:00:49:000] <-- Transcoding Duration
Logging ends : 12/27/02 , 15:39:15.


The -ota ( -g max ) log:


BeSweet v1.5b10 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using hip.dll v1.18 by Myers Carpenter <myers@users.sf.net>
Using VOBInput.dll v1.3 by DVD2SVCD (http://www.dvd2svcd.org)
Using Ogg Vorbis v1.0 dlls (http://www.vorbis.com).

Logging start : 12/27/02 , 15:08:10.

C:\Video\Audio\BeSweet1.5b10\BeSweet.exe -core( -input C:\Temp\DSPguru\Kegeln2002_DV_Type2.avi -output C:\Temp\DSPguru\Kegeln2002_DV_Type2.ogg -logfilea C:\Temp\DSPguru\besweetlog5.txt ) -ota( -g max ) -ogg( -q 0.250 )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : C:\Temp\DSPguru\Kegeln2002_DV_Type2.avi
[00:00:00:000] | Output: C:\Temp\DSPguru\Kegeln2002_DV_Type2.ogg
[00:00:00:000] | Floating-Point Process: Yes
[00:00:00:000] | A/V Delay found : 0msec
[00:00:00:000] | Overall Track Gain: 0.000dB
[00:00:00:000] | Source Sample-Rate: 44.1KHz
[00:00:00:000] +-------- OGG --------
[00:00:00:000] | VBR Quality : 0.250
[00:00:00:000] +---------------------
[00:10:00:172] Conversion Completed !
[00:10:00:172] Actual Avg. Bitrate : 87kbps
[00:05:39:000] <-- Transcoding Duration
Logging ends : 12/27/02 , 15:13:49.


Using this commandline (generated by BeSweet GUI 0.6 b66):
"C:\Video\Audio\BeSweet1.5b10\BeSweet.exe" -core( -input "c:\Temp\DSPguru\Kegeln2002_DV_type2.avi" -output "c:\Temp\DSPguru\Kegeln2002_DV_type2.ogg" -logfile "C:\Video\Audio\BeSweet1.5b10\BeSweet.log" ) -azid( -n1 -c normal -L -3db --maximize ) -ogg( -q 0.200 ) -profile( ~~~~~ Default Profile ~~~~~ )

I can't see the max gain search starting (directly transcodes).

BeSweet v1.5b10 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using hip.dll v1.18 by Myers Carpenter <myers@users.sf.net>
Using VOBInput.dll v1.3 by DVD2SVCD (http://www.dvd2svcd.org)
Using Ogg Vorbis v1.0 dlls (http://www.vorbis.com).

Logging start : 12/27/02 , 15:35:23.

C:\Video\Audio\BeSweet1.5b10\BeSweet.exe -core( -input c:\Temp\DSPguru\Kegeln2002_DV_type2.avi -output c:\Temp\DSPguru\Kegeln2002_DV_type2.ogg -logfile c:\Temp\DSPguru\besweetlog6.txt ) -azid( -n1 -c normal -L -3db --maximize ) -ogg( -q 0.200 ) -profile( ~~~~~ Default Profile ~~~~~ )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : c:\Temp\DSPguru\Kegeln2002_DV_type2.avi
[00:00:00:000] | Output: c:\Temp\DSPguru\Kegeln2002_DV_type2.ogg
[00:00:00:000] | Floating-Point Process: Yes
[00:00:00:000] | A/V Delay found : 0msec
[00:00:00:000] | Source Sample-Rate: 44.1KHz
[00:00:00:000] +-------- OGG --------
[00:00:00:000] | VBR Quality : 0.200
[00:00:00:000] +---------------------
[00:10:00:254] Conversion Completed !
[00:10:00:254] Actual Avg. Bitrate : 83kbps
[00:02:26:000] <-- Transcoding Duration
Logging ends : 12/27/02 , 15:37:49.


I start getting sick from logfiles... (hope you don't)

bb

DSPguru
27th December 2002, 16:03
Originally posted by bb
Worked fine, got a correct MP3 file.ok, so now we know that the mp3 extraction works well, and the bug is somewhere in the decoder.
I got an invalid WAV file when changing the extension of the output file to .MP3 instead of .WAVBeSweet doesn't care about the file's Name. for a wav file, you need to add '-2ch' to -core(), but i believe you tried that already.

The -ota ( -g max ) log:


BeSweet v1.5b10 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using hip.dll v1.18 by Myers Carpenter <myers@users.sf.net>
Using VOBInput.dll v1.3 by DVD2SVCD (http://www.dvd2svcd.org)
Using Ogg Vorbis v1.0 dlls (http://www.vorbis.com).

Logging start : 12/27/02 , 15:08:10.

C:\Video\Audio\BeSweet1.5b10\BeSweet.exe -core( -input C:\Temp\DSPguru\Kegeln2002_DV_Type2.avi -output C:\Temp\DSPguru\Kegeln2002_DV_Type2.ogg -logfilea C:\Temp\DSPguru\besweetlog5.txt ) -ota( -g max ) -ogg( -q 0.250 )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : C:\Temp\DSPguru\Kegeln2002_DV_Type2.avi
[00:00:00:000] | Output: C:\Temp\DSPguru\Kegeln2002_DV_Type2.ogg
[00:00:00:000] | Floating-Point Process: Yes
[00:00:00:000] | A/V Delay found : 0msec
[00:00:00:000] | Overall Track Gain: 0.000dB
[00:00:00:000] | Source Sample-Rate: 44.1KHz
[00:00:00:000] +-------- OGG --------
[00:00:00:000] | VBR Quality : 0.250
[00:00:00:000] +---------------------
[00:10:00:172] Conversion Completed !
[00:10:00:172] Actual Avg. Bitrate : 87kbps
[00:05:39:000] <-- Transcoding Duration
Logging ends : 12/27/02 , 15:13:49.
ok, so maxgain is 0db, but you say that BeSweet doesn't stop.. ? weird..
would you remind me your home configuration ? (pc's processoer, mainly)

Using this commandline (generated by BeSweet GUI 0.6 b66):
"C:\Video\Audio\BeSweet1.5b10\BeSweet.exe" -core( -input "c:\Temp\DSPguru\Kegeln2002_DV_type2.avi" -output "c:\Temp\DSPguru\Kegeln2002_DV_type2.ogg" -logfile "C:\Video\Audio\BeSweet1.5b10\BeSweet.log" ) -azid( -n1 -c normal -L -3db --maximize ) -ogg( -q 0.200 ) -profile( ~~~~~ Default Profile ~~~~~ )

I can't see the max gain search starting (directly transcodes).

BeSweet v1.5b10 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using hip.dll v1.18 by Myers Carpenter <myers@users.sf.net>
Using VOBInput.dll v1.3 by DVD2SVCD (http://www.dvd2svcd.org)
Using Ogg Vorbis v1.0 dlls (http://www.vorbis.com).

Logging start : 12/27/02 , 15:35:23.

C:\Video\Audio\BeSweet1.5b10\BeSweet.exe -core( -input c:\Temp\DSPguru\Kegeln2002_DV_type2.avi -output c:\Temp\DSPguru\Kegeln2002_DV_type2.ogg -logfile c:\Temp\DSPguru\besweetlog6.txt ) -azid( -n1 -c normal -L -3db --maximize ) -ogg( -q 0.200 ) -profile( ~~~~~ Default Profile ~~~~~ )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : c:\Temp\DSPguru\Kegeln2002_DV_type2.avi
[00:00:00:000] | Output: c:\Temp\DSPguru\Kegeln2002_DV_type2.ogg
[00:00:00:000] | Floating-Point Process: Yes
[00:00:00:000] | A/V Delay found : 0msec
[00:00:00:000] | Source Sample-Rate: 44.1KHz
[00:00:00:000] +-------- OGG --------
[00:00:00:000] | VBR Quality : 0.200
[00:00:00:000] +---------------------
[00:10:00:254] Conversion Completed !
[00:10:00:254] Actual Avg. Bitrate : 83kbps
[00:02:26:000] <-- Transcoding Duration
Logging ends : 12/27/02 , 15:37:49.
i don't see an AZID section in the logfile and that means the stream ins't ac3, therefore the whole -azid() section is being ignored. same goes for azid's maxgain.


I start getting sick from logfiles... (hope you don't)no, i don't. it's a great working-tool!

10q bb !
Dg.

bb
27th December 2002, 16:22
Originally posted by DSPguru
ok, so maxgain is 0db, but you say that BeSweet doesn't stop.. ? weird..
would you remind me your home configuration ? (pc's processoer, mainly)

Athlon XP 1800+ (Socket A FSB 266 MHz), 512MB RAM, 80GB RAID0, OS: WinXP

i don't see an AZID section in the logfile and that means the stream ins't ac3, therefore the whole -azid() section is being ignored. same goes for azid's maxgain.
Oh, of course. Didn't think of that. So I have to test a DVD rip if I want to know...

bb

bb
8th January 2003, 08:32
Any news? (I found this thread to be on the bottom of page 3 already...)

bb

DSPguru
8th January 2003, 18:39
sorry, i'm having a very dense time these days...

bb
9th January 2003, 07:45
No need to apologize. Recently I reminded Nic of looking into the DV type-1 thing. He may have some news this weekend.

Please keep me up-to-date.

bb

arno
24th January 2003, 12:55
I tried transcoding the audio of several AVI's which have (VBR) audio, but this doesn't work. The previous beta just crashed and the new beta (b12) tries to use azid.dll to decode the input MP3 stream (of the AVI), which obviously causes azid.dll to fail as it only works with AC3 streams.

Do you need any more info? I don't know how to obtain BeSweet's log file, if you tell me I will post it too.

arno
24th January 2003, 20:52
It seems that at least beta12 (but probably also older versions) hog my CPU. When I have WinAMP running next to BeSweet it causes WinAMP to hang momentarily. The task manager also shows 99% usage (which under other circumstances would be ok of course) but when one is running also other programs at the same time it can be a hassle.... Maybe the priority of besweet could be lowered?

DSPguru
25th January 2003, 09:23
Originally posted by arno
It seems that at least beta12 (but probably also older versions) hog my CPU. "beta12 hog my cpu" ? this isn't a bug report!
tell me what you were trying to do with BeSweet. post your logfile, compare to beta11, etc'.. :
http://forum.doom9.org/showthread.php?s=&threadid=15738

Maybe the priority of besweet could be lowered? this iZ possible via one of the BeSweet GUIs.

DSPguru
26th January 2003, 20:46
beta13 (http://DSPguru.doom9.org/beta.html) at your service.

arno
26th January 2003, 21:24
Is this a bug or I'm I doing something wrong here. This is my commandline:

[h:\temp]besweet -core( -input test_with_MP3.avi -output output.mp3 ) -ssrc ( -norm 95% ) -lame ( --cbr -b 128 -h )
BeSweet v1.5b13 by DSPguru.
--------------------------
Error 67: azid.dll wasn't found, or dll version is too old
Quiting...

DSPguru
26th January 2003, 21:26
Originally posted by DSPguru (http://forum.doom9.org/showthread.php?s=&threadid=15738)
1 a. make sure you're using the latest release of BeSweet. (i can't support old versions).
2 b. feel free to report bugs for beta releases, unLess i already released a newer stable release.
3 c. don't send me bug-reports on Private-Message, this isn't a private issue! lots of people are interested in those bugs.
4 d. please state the command line was used. (if you use the GUI - click the "Copy command to clipboard" button).
5 e. always create a logfile and paste it in your thread. the whole logfile ! (let me decide what is relevant, and what isn't)
6 f. if BeSweet raised gpf (crashed), please state the process that raised the gpf (for instance : BeSweet.exe , hip.dll , azid.dll,...).
7 g. if it could be relevant - point out the operating system/computer system was used.


8 Latest stable release is : v1.4. Latest beta release is v1.5b13.
9 if you've downloaded a beta version, beware it's sometimes an upgrade to the latest stable version, and you must unpack the stable version first.
did you upgrade from v1.4 ?

arno
26th January 2003, 21:39
Originally posted by DSPguru
did you upgrade from v1.4 ?

That was the mistake I made at home! Sorry about that... Here at home it seems to work know when I first install 1.4 and then put 1.5b13 over it... I'll check whether the GPF is also gone with the files I have at work (I'll check it rightaway tomorrow).

p.s. : Though I think its odd that BeSweet complains about the azid.dll being out-of-date.

arno
26th January 2003, 21:42
One other odd think I noted is that there seems to be a sync problem at the beginning of my AVI file:


[00:00:00:000] | Output: output.mp3
[00:00:00:000] | Floating-Point Process: Yes
[00:00:00:000] | A/V Delay found : 0msec
[00:00:00:000] | Source Sample-Rate: 11.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:104] Stream error : Sync found after 384 bytes
[00:09:11:833] transcoding ...


Is this normal, meaning is it a big issue?

I also note that there seems to be another bug. I know for sure that the audio track has 44.1khz samplerate. BeSweet says its 11 khz. Seems like a bug to me

arno
27th January 2003, 18:55
Originally posted by DSPguru
@arno
until you start submitting bugreports the way you should, i will be ignoring all your posts.

Sorry about that...

Is this better?:

BeSweet v1.5b13 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using hip.dll v1.18 by Myers Carpenter <myers@users.sf.net>
Using VOBInput.dll v1.3 by DVD2SVCD (http://www.dvd2svcd.org)
Using lame_enc.dll v1.28 (4/6/2002), Engine 3.92 <http://www.mp3dev.org/>.

Logging start : 01/27/03 , 18:45:59.

besweet.exe -core( -input h:\test [divx5pro & vbr mp3].avi -output d:\test.mp3 -logfile d:\besweet.log ) -ssrc ( -norm 95 ) -lame ( --cbr -b 128 -h )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : h:\test [divx5pro & vbr mp3].avi
[00:00:00:000] | Output: d:\test.mp3
[00:00:00:000] | Floating-Point Process: Yes
[00:00:00:000] | A/V Delay found : 0msec
[00:00:00:000] | Source Sample-Rate: 11.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:104] Stream error : Sync found after 384 bytes
[07:48:49:778] Conversion Completed !
[07:48:49:778] Actual Avg. Bitrate : 128kbps
[00:17:42:000] <-- Transcoding Duration
Logging ends : 01/27/03 , 20:25:41.


This is the result of a DivX5Pro movie with VBR (or actually) ABR sound. The AVI was created with GordianKnot with the default MP3 128kbit, 48 khz ABR LAME setting. Note the fact that BeSweet thinks its source sample-rate is 11.0KHz. Let me now if you need any more info or want an AVI clip of the movie.

As far as I can see are the GPF's concerning MP3 sound in AVI files solved with beta12 :-)

arno
28th January 2003, 08:31
I just tried transcoding a XviD movie with AC3 sound but this also gives problems:

BeSweet v1.5b13 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using hip.dll v1.18 by Myers Carpenter <myers@users.sf.net>
Using VOBInput.dll v1.3 by DVD2SVCD (http://www.dvd2svcd.org)
Using lame_enc.dll v1.32 (3/12/2002), Engine 3.93 <http://www.mp3dev.org/>.

Logging start : 01/28/03 , 08:28:25.

e:\Program Files\AviWAV Extract\BeSweet.exe -core( -input g:\new cds\incoming\2CD\007 - Die Another Day.AC3.2ch.XviD-CD2.avi -output 007cd1.wav -logfile g:\besweet.log ) -ssrc ( -norm 95 )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : g:\new cds\incoming\2CD\007 - Die Another Day.AC3.2ch.XviD-CD2.avi
[00:00:00:000] | Output: 007cd1.wav
[00:00:00:000] | Substream ID: 0
[00:00:00:000] | Floating-Point Process: Yes
[00:00:00:000] | A/V Delay found : 0msec
[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] | 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] +---------------------
Error 32: No input-data was found (wrong substream?)
Quiting...
[00:00:00:000] Conversion Completed !
Logging ends : 01/28/03 , 08:28:25

bb
2nd February 2003, 15:21
Hi DSPguru,

my DV type-2 test file went just fine with beta 14. But "Banditen" containing VBR MP3 didn't. Here are some logs:


BeSweet v1.5b14 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using hip.dll v1.18 by Myers Carpenter <myers@users.sf.net>
Using VOBInput.dll v1.3 by DVD2SVCD (http://www.dvd2svcd.org)
Using Ogg Vorbis v1.0 dlls (http://www.vorbis.com).

Logging start : 02/02/03 , 15:00:56.

C:\Video\Audio\BeSweet1.5b14\BeSweet.exe -core( -input c:\Temp\DSPguru\Kegeln2002_DV_type2.avi -output c:\Temp\DSPguru\Kegeln2002_DV_type2.ogg -logfile C:\Video\Audio\BeSweet1.5b14\BeSweet.log ) -ogg( -q 0.250 )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : c:\Temp\DSPguru\Kegeln2002_DV_type2.avi
[00:00:00:000] | Output: c:\Temp\DSPguru\Kegeln2002_DV_type2.ogg
[00:00:00:000] | Floating-Point Process: Yes
[00:00:00:000] | A/V Delay found : 0msec
[00:00:00:000] | Source Sample-Rate: 44.1KHz
[00:00:00:000] +-------- OGG --------
[00:00:00:000] | VBR Quality : 0.250
[00:00:00:000] +---------------------
[00:10:00:254] Conversion Completed !
[00:10:00:254] Actual Avg. Bitrate : 87kbps
[00:02:49:000] <-- Transcoding Duration
Logging ends : 02/02/03 , 15:03:45.

______________________________________________________________________________________


BeSweet v1.5b14 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using hip.dll v1.18 by Myers Carpenter <myers@users.sf.net>
Using VOBInput.dll v1.3 by DVD2SVCD (http://www.dvd2svcd.org)
Using Ogg Vorbis v1.0 dlls (http://www.vorbis.com).

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

C:\Video\Audio\BeSweet1.5b14\BeSweet.exe -core( -input d:\Banditen.avi -output c:\Temp\DSPguru\Banditen.ogg -logfile C:\Video\Audio\BeSweet1.5b14\BeSweet.log ) -ogg( -q 0.250 )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : d:\Banditen.avi
[00:00:00:000] | Output: c:\Temp\DSPguru\Banditen.ogg
[00:00:00:000] | Floating-Point Process: Yes
[00:00:00:000] | A/V Delay found : 0msec
[00:00:00:000] | Source Sample-Rate: 48.0KHz
[00:00:00:000] +-------- OGG --------
[00:00:00:000] | VBR Quality : 0.250
[00:00:00:000] +---------------------
[ 4018] Conversion Completed !
[00:00:00:000] <-- Transcoding Duration
Logging ends : 02/02/03 , 15:05:22.

______________________________________________________________________________________

BeSweet v1.5b14 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using hip.dll v1.18 by Myers Carpenter <myers@users.sf.net>
Using VOBInput.dll v1.3 by DVD2SVCD (http://www.dvd2svcd.org)
Error 41: Unable to get MP2enc interfaces
Quiting...
[00:00:00:000] Conversion Completed !
Logging ends : 02/02/03 , 15:08:33.


Sincerely
bb

arno
2nd February 2003, 15:35
Originally posted by bb
Hi DSPguru,

my DV type-2 test file went just fine with beta 14. But "Banditen" containing VBR MP3 didn't. Here are some logs:


BeSweet v1.5b14 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using hip.dll v1.18 by Myers Carpenter <myers@users.sf.net>
Using VOBInput.dll v1.3 by DVD2SVCD (http://www.dvd2svcd.org)
Using Ogg Vorbis v1.0 dlls (http://www.vorbis.com).

Logging start : 02/02/03 , 15:00:56.

C:\Video\Audio\BeSweet1.5b14\BeSweet.exe -core( -input c:\Temp\DSPguru\Kegeln2002_DV_type2.avi -output c:\Temp\DSPguru\Kegeln2002_DV_type2.ogg -logfile C:\Video\Audio\BeSweet1.5b14\BeSweet.log ) -ogg( -q 0.250 )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : c:\Temp\DSPguru\Kegeln2002_DV_type2.avi
[00:00:00:000] | Output: c:\Temp\DSPguru\Kegeln2002_DV_type2.ogg
[00:00:00:000] | Floating-Point Process: Yes
[00:00:00:000] | A/V Delay found : 0msec
[00:00:00:000] | Source Sample-Rate: 44.1KHz
[00:00:00:000] +-------- OGG --------
[00:00:00:000] | VBR Quality : 0.250
[00:00:00:000] +---------------------
[00:10:00:254] Conversion Completed !
[00:10:00:254] Actual Avg. Bitrate : 87kbps
[00:02:49:000] <-- Transcoding Duration
Logging ends : 02/02/03 , 15:03:45.

______________________________________________________________________________________


BeSweet v1.5b14 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using hip.dll v1.18 by Myers Carpenter <myers@users.sf.net>
Using VOBInput.dll v1.3 by DVD2SVCD (http://www.dvd2svcd.org)
Using Ogg Vorbis v1.0 dlls (http://www.vorbis.com).

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

C:\Video\Audio\BeSweet1.5b14\BeSweet.exe -core( -input d:\Banditen.avi -output c:\Temp\DSPguru\Banditen.ogg -logfile C:\Video\Audio\BeSweet1.5b14\BeSweet.log ) -ogg( -q 0.250 )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : d:\Banditen.avi
[00:00:00:000] | Output: c:\Temp\DSPguru\Banditen.ogg
[00:00:00:000] | Floating-Point Process: Yes
[00:00:00:000] | A/V Delay found : 0msec
[00:00:00:000] | Source Sample-Rate: 48.0KHz
[00:00:00:000] +-------- OGG --------
[00:00:00:000] | VBR Quality : 0.250
[00:00:00:000] +---------------------
[ 4018] Conversion Completed !
[00:00:00:000] <-- Transcoding Duration
Logging ends : 02/02/03 , 15:05:22.

______________________________________________________________________________________

BeSweet v1.5b14 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using hip.dll v1.18 by Myers Carpenter <myers@users.sf.net>
Using VOBInput.dll v1.3 by DVD2SVCD (http://www.dvd2svcd.org)
Error 41: Unable to get MP2enc interfaces
Quiting...
[00:00:00:000] Conversion Completed !
Logging ends : 02/02/03 , 15:08:33.


Sincerely
bb

I'm also currently looking into this (these) type of issue/issue's. I still have to post the latest results (which are at work -> I'll post them this week) but my conclusion for now is that what is causing causing the problem(s) doesn't have anything to do with avi itself as BeSweet 1.4 seems to suffer from the same problem when you extract the audio track from the avi first.

The problems only seem to occur when transcoding from VBR MP3 or AC3 directly to LAME CBR MP3 (with the lame dll). If I first transcode to wav (with -core ( -2ch) ) and later on use lame.exe to do the actual compression there's no problem!

Maybe this also applies to you (bb), you might wanna check it out.

bb
2nd February 2003, 18:59
Thanks for the reply (although it was not necessary to quote the whole bunch of log files). I'll investigate in what you found out so far as soon as I get the time.

bb

arno
4th February 2003, 12:24
Currently I'm testing BeSweet 1.5b14. The only problem I can find for the moment (maybe I find more later on) is that the source audio sample-rate (from the avi) is sometimes(!) invalid:

BeSweet v1.5b14 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using hip.dll v1.18 by Myers Carpenter <myers@users.sf.net>
Using VOBInput.dll v1.3 by DVD2SVCD (http://www.dvd2svcd.org)
Using lame_enc.dll v1.28 (4/6/2002), Engine 3.92 <http://www.mp3dev.org/>.

Logging start : 02/04/03 , 09:58:03.

e:\Program Files\AviWAV Extract\BeSweet.exe -core( -input 007 - Die Another Day.AC3.2ch.XviD-CD2.avi -output 007 - Die Another Day.AC3.2ch.XviD-CD2.mp3 -logfile g:\besweet2.log ) -ssrc ( -norm 95 ) -lame ( -cbr -b 128 -h ) -azid ( -c normal )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : 007 - Die Another Day.AC3.2ch.XviD-CD2.avi
[00:00:00:000] | Output: 007 - Die Another Day.AC3.2ch.XviD-CD2.mp3
[00:00:00:000] | Substream ID: 0
[00:00:00:000] | Floating-Point Process: Yes
[00:00:00:032] | A/V Delay found : 0msec
[00:00:00:000] +-------- AZID -------
[00:00:00:000] | Input Channels Mode: 3/0, Bitrate: 32kbps
[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 -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] | Source Sample-Rate: 32.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:032] Stream error : Sync found after 288 bytes
[00:16:44.128] E7: CRC error
[01:05:36:448] Conversion Completed !
[01:05:36:448] Actual Avg. Bitrate : 192kbps
[00:34:18:000] <-- Transcoding Duration
Logging ends : 02/04/03 , 10:32:21.


BeSweet says its 32.0KHz (as you can see) while it is 48.0KHz (as determined by both VirtualDub and G-Spot). The odd thing is that the other CD of this movie (CD1) is correctly identified by BeSweet as having 48.0 khz samplerate.

One other comment, but I don't whether its a big issue, is that I often see a CRC error (E7 in this case) (while none are *really* there).

DSPguru
5th February 2003, 20:17
try forcing sample-rate by using -ota( -fs ... )

arno
6th February 2003, 08:23
Originally posted by DSPguru
try forcing sample-rate by using -ota( -fs ... )

I tried it but then BeSweet just crashes after first showing this:
[g:\new cds\incoming\2cd]"e:\Program Files\AviWAV Extract\BeSweet.exe" -core ( -input "007 - Die Another Day.AC3.2ch.XviD-CD2.avi" -output test.mp3 -log g:\crash.log ) -azid ( -c normal ) -ota ( -fs 48.0 )
BeSweet v1.5b14 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using hip.dll v1.18 by Myers Carpenter <myers@users.sf.net>
Using VOBInput.dll v1.3 by DVD2SVCD (http://www.dvd2svcd.org)
Using lame_enc.dll v1.28 (4/6/2002), Engine 3.92 <http://www.mp3dev.org/>.

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : 007 - Die Another Day.AC3.2ch.XviD-CD2.avi
[00:00:00:000] | Output: test.mp3
[00:00:00:000] | Substream ID: 0
[00:00:00:000] | Floating-Point Process: Yes
[00:00:00:032] | A/V Delay found : 0msec
[00:00:00:000] +-------- AZID -------
[00:00:00:000] | Input Channels Mode: 3/0, Bitrate: 32kbps
[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 -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] | Source Sample-Rate: 0.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:032] Stream error : Sync found after 288 bytes

arno
6th February 2003, 15:11
I've put an AVI sample file on my FTP server which manifests the problem. The downloadlink is ftp://rulhmpc57.leidenuniv.nl/sample.avi

DSPguru
7th February 2003, 06:11
should be : -fs 48000

arno
7th February 2003, 10:18
Originally posted by DSPguru
should be : -fs 48000

Ok, thanks. That fixes the problem. Though I have still have a few comments:
1) Shouldn't the -fs be limited to prevent AV's ?
2) Could you still check out the sample I put on my ftp to see why BeSweet misinterprates the samplerate (and fix it maybe?)?

DSPguru
8th February 2003, 13:56
1. i'm afraid i didn't understand your question.
2. no need to. i already found the flaw :D

arno
8th February 2003, 17:05
Originally posted by DSPguru
1. i'm afraid i didn't understand your question.
2. no need to. i already found the flaw :D

1. It seems that when I use for example "-ota ( -fs 48 )" that BeSweet crashes because the samplerate is 48 Hz. I don't know what is or what isn't allowed but you might consider putting min/max limit checking on the -fs value (for example only the range 11000-96000). Please note that I find this bug trivial and may only be caused because the documentation isn't really clear about the fact that the samplerate is in "KHz" or "Hz".

2. Great :-) I'm just curious what caused it, you might wanna explain?

DSPguru
8th February 2003, 17:45
1a. the whole idea behind forcing a sample-rate is assuming that BeSweet cannot know what is the reasonable (right) source sample-rate.
there are no reasonable limits for this value.
1b. i understand that BeSweet crashed when trying to encode mp3 @ 48hz, but BeSweet won't crash if you had tried to encode a wave file @ 48hz.
1c. i agree that the documentation isn't detailed enough, and i will fix this.
1d. you could use BeSweetGUI where there are 3 example values of fs : 48000,44100,32000.

2. i was extracting information from the first frame using the pointer to the start of the datablock instead of the pointer that points to the first frame inside that datablock.

3. bugfix is intorduced in beta15 (http://DSPguru.doom9.org/beta.html).

arno
9th February 2003, 21:39
Originally posted by DSPguru
1a. the whole idea behind forcing a sample-rate is assuming that BeSweet cannot know what is the reasonable (right) source sample-rate.
there are no reasonable limits for this value.
1b. i understand that BeSweet crashed when trying to encode mp3 @ 48hz, but BeSweet won't crash if you had tried to encode a wave file @ 48hz.
1c. i agree that the documentation isn't detailed enough, and i will fix this.
1d. you could use BeSweetGUI where there are 3 example values of fs : 48000,44100,32000.

2. i was extracting information from the first frame using the pointer to the start of the datablock instead of the pointer that points to the first frame inside that datablock.

3. bugfix is intorduced in beta15 (http://DSPguru.doom9.org/beta.html).

Everything is clear now to me, thanks for the explanation :-)

Btw. I hate GUI's, that's why I like the fact the core of your program is a console utility which I can use in my batch files...

arno
20th February 2003, 08:22
It seems that BeSweet 1.5b15 still has problems with certain (minority) avi's with AC3 encoded sound. Example (from BeSweet log):

BeSweet v1.5b15 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using hip.dll v1.18 by Myers Carpenter <myers@users.sf.net>
Using VOBInput.dll v1.3 by DVD2SVCD (http://www.dvd2svcd.org)

Logging start : 02/20/03 , 08:22:51.

e:\Program Files\AviWAV Extract\BeSweet.exe -core ( -input sample.avi -2ch -output test.wav -logfile g:\ac3problem.log )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : sample.avi
[00:00:00:000] | Output: test.wav
[00:00:00:000] | Substream ID: 0
[00:00:00:000] | Floating-Point Process: No
[00:00:00:032] | A/V Delay found : 0msec
[00:00:00:000] +-------- AZID -------
[00:00:00:000] | Input Channels Mode: 3/2, Bitrate: 448kbps
[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] | Source Sample-Rate: 48.0KHz
[00:00:00:000] +---------------------
[00:00:00:032] Stream error : Sync found after 1512 bytes
[00:00:11:296] Conversion Completed !
[00:00:11:296] Actual Avg. Bitrate : 3840kbps
[00:00:03:000] <-- Transcoding Duration
Logging ends : 02/20/03 , 08:22:54.


The final sound output file is stuttering. This problem persists when encoding: avi->pcm wav & avi->mp3 but also when one first extracts the ac3 sound (with aviwavcmd.exe) and then transcode to mp3 or pcm wav (converting from ac3 wav to pcm wav).

I also tried my own old way to do this:
- extract avi ac3 stream with aviwavcmd.exe
- then use azid.exe (1.8) to convert to a pcm wav file
- finally compress with lame.exe

And this DOES work. So it really seems a bug in either the azid.dll or besweet itself.

I've put a sample file manifesting the problem on my ftp: ftp://132.229.96.157/sample.avi

p.s. : I also have a (small) feature request. Could you (still) add a parameter (for -core) to specify the priority of BeSweet (idle, normal, high etc.)? This because (as I previously stated) I don't use the BeSweet GUI, I always use the commandline. Thanks!

arno
27th February 2003, 13:44
As far as I can tell the b16 release of BeSweet also fixed the hicking problem I previously experienced. Only problem left which I just noted recently is that the when I use "--ssrc ( -norm 95% ) that the final output isn't amplified (normalized at all). I don't know whether this is a human error made by me or that it just doesn't work. For log files you an check my previous posts.

DSPguru
28th February 2003, 10:42
switch is -ota( -norm 0.95 )

arno
1st March 2003, 17:06
Originally posted by DSPguru
switch is -ota( -norm 0.95 )

That probably everybody uses it the wrong way as this is a quote from your ota.txt:

-norm VALUE
-----------
Default: not used.

This option is an alternative to "-g max", and can be used to set gain of a track to a lower value than its maximum.
"-norm 90%", for example, will normalize a track to 90% of its maximal gain.
"-norm 100%" is equivalent to "-g max".


You might wanna correct this in your helpfiles and might also add some error checking for it to the besweet binary.

DSPguru
1st March 2003, 17:17
95%=0.95
just like :
20db=10

anyway, you didn't use OTA, you used SSRC ;)