jweathers7
19th December 2005, 23:47
What is the granularity for BeSweet's -split functionality? I understand that you can specify up to the millisecond, but I'm getting strange results when I try to correct some silence problems in my AC3 file.
I have six small 3.008 second WAV files that I encode into one 5.1 AC3 file. When I use BeSweet and ac3enc to encode the file it appears to truncate the last 5.333 ms of audio, insert 5.333 ms of silence at the beginning of the AC3 file, invert the waveform of the individual WAVs, and cut the volume in half.
I have attempted to get around these issues by doing the following before encoding:
1) Inverting my individual WAV files
2) Boosting my individual WAV files by +6 dB
3) Adding 4.667ms of silence to the start of each WAV
4) Adding 1 second of silence to the end of each WAV
The result is that I get a AC3 file that is almost correct. However, it has precisely 10ms of silence at the beginning and a little less than a second of silence at the end of the AC3.
When I then try to trim these silences from the AC3 file using BeSweet, I get a file that is the correct length of time, but it is not the correct interval for some reason with the result that a small bit of audio from the beginning is missing and a little bit of silence remains at the end.
I used the following command:
BeSweet -core( -input ./AOTC04-new.ac3 -output ./AOTC04-corrected.ac3 -payload ) -split( -start 0.01 -end 3.018 )
I did an experiment with this command:
BeSweet -core( -input ./AOTC04-new.ac3 -output ./AOTC04-corrected.ac3 -payload ) -split( -end 0.01 )
The result was an AC3 file of length 0.064 ms instead of one of the desired length of 0.01.
I also have noticed that when I use BeSplit, the timestamps at which it makes the cuts are almost never precisely the timestamps that I specify on the command line.
So what are the limitations of the granularity when working with AC3 files?
I have six small 3.008 second WAV files that I encode into one 5.1 AC3 file. When I use BeSweet and ac3enc to encode the file it appears to truncate the last 5.333 ms of audio, insert 5.333 ms of silence at the beginning of the AC3 file, invert the waveform of the individual WAVs, and cut the volume in half.
I have attempted to get around these issues by doing the following before encoding:
1) Inverting my individual WAV files
2) Boosting my individual WAV files by +6 dB
3) Adding 4.667ms of silence to the start of each WAV
4) Adding 1 second of silence to the end of each WAV
The result is that I get a AC3 file that is almost correct. However, it has precisely 10ms of silence at the beginning and a little less than a second of silence at the end of the AC3.
When I then try to trim these silences from the AC3 file using BeSweet, I get a file that is the correct length of time, but it is not the correct interval for some reason with the result that a small bit of audio from the beginning is missing and a little bit of silence remains at the end.
I used the following command:
BeSweet -core( -input ./AOTC04-new.ac3 -output ./AOTC04-corrected.ac3 -payload ) -split( -start 0.01 -end 3.018 )
I did an experiment with this command:
BeSweet -core( -input ./AOTC04-new.ac3 -output ./AOTC04-corrected.ac3 -payload ) -split( -end 0.01 )
The result was an AC3 file of length 0.064 ms instead of one of the desired length of 0.01.
I also have noticed that when I use BeSplit, the timestamps at which it makes the cuts are almost never precisely the timestamps that I specify on the command line.
So what are the limitations of the granularity when working with AC3 files?