bobwillis
9th November 2004, 04:05
Hi,
Here is evidence that indicates besweet may be removing the wrong number of frames, causing a larger synch problem than necessary:
Besweet 1.5b26 (also confirmed with b29).
Besweet is called with the following command:
C:\Program Files\DVD2SVCD\BeSweet\BeSweet.exe -core( -input C:\The wild bunch joined\audio\Extracted_audio_1.ac3 -output C:\THEWIL~3\audio\Encoded_audio_1.ac3 -payload -logfile C:\THEWIL~3\audio\Encoded_audio_1.log ) -ota( -d -80 )
The besweet log shows everything is ok:
BeSweet v1.5b26 by DSPguru.
--------------------------
Using azid.dll v1.9 (b922) by Midas (midas@egon.gyaloglo.hu).
Using AC3enc.dll v1.20 (Feb 18 2004) by Fabrice Bellard (http://ffmpeg.org).
Logging start : 10/28/04 , 16:40:34.
C:\Program Files\DVD2SVCD\BeSweet\BeSweet.exe -core( -input C:\The wild bunch joined\audio\Extracted_audio_1.ac3 -output C:\THEWIL~3\audio\Encoded_audio_1.ac3 -payload -logfile C:\THEWIL~3\audio\Encoded_audio_1.log ) -ota( -d -80 )
[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : C:\The wild bunch joined\audio\Extracted_audio_1.ac3
[00:00:00:000] | Output: C:\THEWIL~3\audio\Encoded_audio_1.ac3
[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 : 5.1
[00:00:00:000] | Error Protection: Yes
[00:00:00:000] +---------------------
[ 399478272] Conversion Completed !
[00:00:50:000] <-- Transcoding Duration
Logging ends : 10/28/04 , 16:41:24.
If we analyse the original ac3 file (extracted_audio_1.ac3) with jsoto's delaycut.exe, we get the following info:
====== INPUT FILE INFO ========================
File is ac3
Bitrate (kbit/s) 384
Act rate (kbit/s) 384.000
File size (bytes) 399484416
Channels mode 3/2: L+C+R+SL+SR
Low Frec Effects LFE: Present
Duration 02:18:42.592
Frame length (ms) 32.000000
Frames/second 31.250000
Num of frames 260081
Bytes per Frame 1536
Size % Framesize 0
CRC present: YES
=============================================
From this we can ascertain that the resolution of the file is 32ms. In other words, we can only delay by multiples of 32ms. Since we require 80ms of delay, the closest we can get is 3 frames (=96ms). This would lead to an error of 16ms (96-80ms). This is the best besweet (or delaycut.exe) can do.
However, besweet does not remove 3 frames. If we look at the resultant besweet encoded_audio_1.ac3 file with jsoto's tool, we get the following info:
====== INPUT FILE INFO ========================
File is ac3
Bitrate (kbit/s) 384
Act rate (kbit/s) 384.000
File size (bytes) 399478272
Channels mode 3/2: L+C+R+SL+SR
Low Frec Effects LFE: Present
Duration 02:18:42.464
Frame length (ms) 32.000000
Frames/second 31.250000
Num of frames 260077
Bytes per Frame 1536
Size % Framesize 0
CRC present: YES
=============================================
As can be seen comparing the number of 'extracted_audio_1.ac3' frames (260081) with the number of 'encoded_audio_1.ac3' frames (260077), it has actually cut 4 frames (=128ms). If you need further confirmation; I compared the input and output filesizes. There is a difference of 6144 bytes. This is equivalent to 4 frames (1536 bytes/frame).
So, to sum up, I required a delay of -80ms, and actually got a delay of -128ms. Can the author of besweet please confirm or check this?
Regards,
Bob
Here is evidence that indicates besweet may be removing the wrong number of frames, causing a larger synch problem than necessary:
Besweet 1.5b26 (also confirmed with b29).
Besweet is called with the following command:
C:\Program Files\DVD2SVCD\BeSweet\BeSweet.exe -core( -input C:\The wild bunch joined\audio\Extracted_audio_1.ac3 -output C:\THEWIL~3\audio\Encoded_audio_1.ac3 -payload -logfile C:\THEWIL~3\audio\Encoded_audio_1.log ) -ota( -d -80 )
The besweet log shows everything is ok:
BeSweet v1.5b26 by DSPguru.
--------------------------
Using azid.dll v1.9 (b922) by Midas (midas@egon.gyaloglo.hu).
Using AC3enc.dll v1.20 (Feb 18 2004) by Fabrice Bellard (http://ffmpeg.org).
Logging start : 10/28/04 , 16:40:34.
C:\Program Files\DVD2SVCD\BeSweet\BeSweet.exe -core( -input C:\The wild bunch joined\audio\Extracted_audio_1.ac3 -output C:\THEWIL~3\audio\Encoded_audio_1.ac3 -payload -logfile C:\THEWIL~3\audio\Encoded_audio_1.log ) -ota( -d -80 )
[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : C:\The wild bunch joined\audio\Extracted_audio_1.ac3
[00:00:00:000] | Output: C:\THEWIL~3\audio\Encoded_audio_1.ac3
[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 : 5.1
[00:00:00:000] | Error Protection: Yes
[00:00:00:000] +---------------------
[ 399478272] Conversion Completed !
[00:00:50:000] <-- Transcoding Duration
Logging ends : 10/28/04 , 16:41:24.
If we analyse the original ac3 file (extracted_audio_1.ac3) with jsoto's delaycut.exe, we get the following info:
====== INPUT FILE INFO ========================
File is ac3
Bitrate (kbit/s) 384
Act rate (kbit/s) 384.000
File size (bytes) 399484416
Channels mode 3/2: L+C+R+SL+SR
Low Frec Effects LFE: Present
Duration 02:18:42.592
Frame length (ms) 32.000000
Frames/second 31.250000
Num of frames 260081
Bytes per Frame 1536
Size % Framesize 0
CRC present: YES
=============================================
From this we can ascertain that the resolution of the file is 32ms. In other words, we can only delay by multiples of 32ms. Since we require 80ms of delay, the closest we can get is 3 frames (=96ms). This would lead to an error of 16ms (96-80ms). This is the best besweet (or delaycut.exe) can do.
However, besweet does not remove 3 frames. If we look at the resultant besweet encoded_audio_1.ac3 file with jsoto's tool, we get the following info:
====== INPUT FILE INFO ========================
File is ac3
Bitrate (kbit/s) 384
Act rate (kbit/s) 384.000
File size (bytes) 399478272
Channels mode 3/2: L+C+R+SL+SR
Low Frec Effects LFE: Present
Duration 02:18:42.464
Frame length (ms) 32.000000
Frames/second 31.250000
Num of frames 260077
Bytes per Frame 1536
Size % Framesize 0
CRC present: YES
=============================================
As can be seen comparing the number of 'extracted_audio_1.ac3' frames (260081) with the number of 'encoded_audio_1.ac3' frames (260077), it has actually cut 4 frames (=128ms). If you need further confirmation; I compared the input and output filesizes. There is a difference of 6144 bytes. This is equivalent to 4 frames (1536 bytes/frame).
So, to sum up, I required a delay of -80ms, and actually got a delay of -128ms. Can the author of besweet please confirm or check this?
Regards,
Bob