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. |
|
|
#1 | Link |
|
Registered User
Join Date: Dec 2001
Posts: 34
|
Bitrate reader for ac3
Hello,
a few months ago I found a little commandline prog to detect the bitrate of an ac3 stream in a vob file. Anyone has an Idea how to make this, cause the sources of this tool are not aviable.. In eed this for a bitrate calculator
|
|
|
|
|
|
#2 | Link |
|
BeSweet Author
Join Date: Oct 2001
Location: On top of a supercompact cardinal
Posts: 3,506
|
sure.
for each frame in the AC3 stream, there's the frame-size-code in the syncinfo (in BSI). so, if you assume that all frames in the stream are in the same size, just read the syncinfo of the first frame (first 6 bytes of the file would be the first syncinfo), else, compute avarage of all frame-sizes. here's the struct : Code:
struct syncinfo {
short syncword;
short crc1;
unsigned short frmsizecod:6;
unsigned short fscod:2;
unsigned short bsmod:3;
unsigned short bsid:5;
} ;
__________________
FAQs : BeSweet, Audio :readfaq: Homepage : DSPguru's Webpage http://dspguru.notrace.dk/cs.gif Guides : Multilingual Guides of my tools http://dspguru.notrace.dk/1zhelp.gif Last edited by DSPguru; 24th December 2001 at 10:43. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|