Liisachan
3rd February 2005, 06:51
Sorry if this is a known problem, but I think something is strage in BeSweet's WAV->AC3,
if the sample rate is 44100Hz. Let me report this as something I can always reproduce. Thank you in advance.
Demo: 1567 KB (http://park14.wakwak.com/~flower/demo.zip)
How to Reproduce the Problem
(1) Observe that 10sec.wav in demo.zip is 441001 samples @ 44100Hz
(2) BeSweet -core( -input 10sec.wav -output 10sec.ac3 -logfilea "debug.log" ) -ac3enc( -b 192 )
(3) The resulted AC3, 10sec.ac3, is 439820 samples @ 44100Hz, i.e. 0.27% too short.
I did the same test for a longer WAV too, that is 177877056 samples @ 44100Hz. The resulted AC3 was 177468267 samples @ 44100Hz, 0.23% too short. The original is 4033.49sec, the resulted is 4024.22sec, so eventually out of sync by 9.27 sec--too large to ignore.
Note: This phenomenon doesn't seem to happen if WAV is 48000Hz.
<edit>
I read "ac3enc.dll creates (almost) useless ac3 streams. don't use it to encode things you care for. it's there only for test purposes." but it't not like I'm going to use it for real encoding. I just tested it and found this.
</edit>
BeSweet v1.5b29 by DSPguru.
--------------------------
Using AC3enc.dll v1.20 (Feb 18 2004) by Fabrice Bellard (http://ffmpeg.org).
Logging start : 02/03/05 , 14:35:36.
BeSweet -core( -input 10sec.wav -output 10sec.ac3 -logfilea debug.log ) -ac3enc( -b 192 )
[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : 10sec.wav
[00:00:00:000] | Output: 10sec.ac3
[00:00:00:000] | Floating-Point Process: No
[00:00:00:000] | Source Sample-Rate: 44.1KHz
[00:00:00:000] +------- AC3ENC ------
[00:00:00:000] | Bitrate method : CBR
[00:00:00:000] | AC3 bitrate : 192
[00:00:00:000] | Channels Mode : 2.0
[00:00:00:000] | Error Protection: Yes
[00:00:00:000] +---------------------
[00:00:10:000] Conversion Completed !
[00:00:10:000] Actual Avg. Bitrate : 191kbps
[00:00:01:000] <-- Transcoding Duration
Logging ends : 02/03/05 , 14:35:37.
if the sample rate is 44100Hz. Let me report this as something I can always reproduce. Thank you in advance.
Demo: 1567 KB (http://park14.wakwak.com/~flower/demo.zip)
How to Reproduce the Problem
(1) Observe that 10sec.wav in demo.zip is 441001 samples @ 44100Hz
(2) BeSweet -core( -input 10sec.wav -output 10sec.ac3 -logfilea "debug.log" ) -ac3enc( -b 192 )
(3) The resulted AC3, 10sec.ac3, is 439820 samples @ 44100Hz, i.e. 0.27% too short.
I did the same test for a longer WAV too, that is 177877056 samples @ 44100Hz. The resulted AC3 was 177468267 samples @ 44100Hz, 0.23% too short. The original is 4033.49sec, the resulted is 4024.22sec, so eventually out of sync by 9.27 sec--too large to ignore.
Note: This phenomenon doesn't seem to happen if WAV is 48000Hz.
<edit>
I read "ac3enc.dll creates (almost) useless ac3 streams. don't use it to encode things you care for. it's there only for test purposes." but it't not like I'm going to use it for real encoding. I just tested it and found this.
</edit>
BeSweet v1.5b29 by DSPguru.
--------------------------
Using AC3enc.dll v1.20 (Feb 18 2004) by Fabrice Bellard (http://ffmpeg.org).
Logging start : 02/03/05 , 14:35:36.
BeSweet -core( -input 10sec.wav -output 10sec.ac3 -logfilea debug.log ) -ac3enc( -b 192 )
[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : 10sec.wav
[00:00:00:000] | Output: 10sec.ac3
[00:00:00:000] | Floating-Point Process: No
[00:00:00:000] | Source Sample-Rate: 44.1KHz
[00:00:00:000] +------- AC3ENC ------
[00:00:00:000] | Bitrate method : CBR
[00:00:00:000] | AC3 bitrate : 192
[00:00:00:000] | Channels Mode : 2.0
[00:00:00:000] | Error Protection: Yes
[00:00:00:000] +---------------------
[00:00:10:000] Conversion Completed !
[00:00:10:000] Actual Avg. Bitrate : 191kbps
[00:00:01:000] <-- Transcoding Duration
Logging ends : 02/03/05 , 14:35:37.