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.


Go Back   Doom9's Forum > Programming and Hacking > Development

Thread Tools Search this Thread Display Modes
Old 24th December 2001, 06:26   #1  |  Link
Registered User
Join Date: Dec 2001
Posts: 34
Bitrate reader for ac3


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

Ocrana is offline   Reply With Quote
Old 24th December 2001, 10:31   #2  |  Link
BeSweet Author
DSPguru's Avatar
Join Date: Oct 2001
Location: On top of a supercompact cardinal
Posts: 3,506
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 :
struct  syncinfo {
	short	syncword;   
	short	crc1;       
        unsigned short frmsizecod:6;
        unsigned short fscod:2;
        unsigned short bsmod:3; 
	unsigned short bsid:5;  
} ;

Last edited by DSPguru; 24th December 2001 at 10:43.
DSPguru is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +1. The time now is 18:57.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.