User User name Password  
   
Friday 29.8.2025 / 18:55
Search AfterDawn Forums:        In English   Suomeksi   På svenska
afterdawn.com > forums > digital video > video - everything else > mpeg bitrate extraction
Show topics
 
Forums
Forums
MPEG bitrate extraction
  Jump to:
 
Posted Message
hata7up
Newbie
_
7. March 2004 @ 14:14 _ Link to this message    Send private message to this user   
Hi all!

I want to make a c++ program which will extract the bitrate from MPEG video files. I'm also wanting to extract other information such as total playing time. For those with programing knowledge and MPEG codec knowledge, can you please give me some insight on how to do this? Thanks!!
Advertisement
_
__
Minion
AfterDawn Addict
_
7. March 2004 @ 15:38 _ Link to this message    Send private message to this user   
Quote:
Extract the Bitrate
No such a Thing...You must mean you want to find out the bitrate of the Mpeg file you have?? Well the Max and Min Bitrates of a Mpeg file are Inbeded in the header of the mpeg File But the actual Bitrates of every Frame have to be analized useing a bitrate Viewer..
I use a Program called "Terac bitrate Viewer" maybe you can decompile the Program and figure out how it works but you would Probably need a Very advanced Knowlege of the Structure of Mpeg files becides haveing advanced Programming skills...Well Good Luck

P-4 2.6ghz (Overclocked to 3.2ghz)
Abit IS7
1gb Dual Chanell DDR 400mhz
Zalman CNPS7000-CU Cooler(Modded with 50cfm Fan)
XFX Gforce 6600GT 128mb GDDR3 (500/1000)
Pinnacle DV500 ADVC Editing Card
RaidMax Scorpio ATX Case + 5 Led
hata7up
Newbie
_
7. March 2004 @ 17:28 _ Link to this message    Send private message to this user   
Thanks for the reply,

Are all MPEG files (ie: MPEG 1/2/4) variable bit rate... or are some fixed bit rate? Since extracting bitrate is very difficult, is there an easier way to extract the total playing time (length) of the MPEG file? With that, at least I can approximate a bitrate with the file size and playing time.
Minion
AfterDawn Addict
_
7. March 2004 @ 17:54 _ Link to this message    Send private message to this user   
Mpeg1 and Mpeg2 are Totally Different From Mpeg4 so theory"s that work for Mpeg 1/2 will not nescessarilly work with Mpeg4....Both Mpeg1 and 2 can use Both Constant bitrate or Variable bitrate but even Constant Bitrates Fluctuate a Little Bit...There are quite a Few Tools that you can use to find out the bitrate of your Mpeg1/2 file like the bitrate Viewer I mentioned Before, If you go here :
http://www.tecoltd.com/bitratev.htm
You can download a bitrate Viewer that will tell you the bitrate used to encode your Mpeg files...Cheers

P-4 2.6ghz (Overclocked to 3.2ghz)
Abit IS7
1gb Dual Chanell DDR 400mhz
Zalman CNPS7000-CU Cooler(Modded with 50cfm Fan)
XFX Gforce 6600GT 128mb GDDR3 (500/1000)
Pinnacle DV500 ADVC Editing Card
RaidMax Scorpio ATX Case + 5 Led
hata7up
Newbie
_
8. March 2004 @ 19:01 _ Link to this message    Send private message to this user   
Hi,
You mentioned that the max and min bitrates of an mpeg file are imbedded in the header. Would you happen to have a link or something that shows the header structure for mpeg 1/2 (video) files? I can only find audio mpeg header information... (ie: mp3).
Thanks
Advertisement
_
__
 
_
Minion
AfterDawn Addict
_
8. March 2004 @ 19:10 _ Link to this message    Send private message to this user   
Sory I can not help you there but you Might try a Hex editor and Look the the Appropriate Values in the Header...There is a Program Called "DVD Patcher" that can read the headers of Mpeg2 files and even Change some of the headers Information Like the Frame Rate and Aspect ratio and bitrate and Resolution, so if you can Decompile that program then you can Probably find out were the bitrate Values in the headers are or you can use it on a Mpeg2 file and then see were the changes have been Made to the Mpeg2 file ...well good Luck

P-4 2.6ghz (Overclocked to 3.2ghz)
Abit IS7
1gb Dual Chanell DDR 400mhz
Zalman CNPS7000-CU Cooler(Modded with 50cfm Fan)
XFX Gforce 6600GT 128mb GDDR3 (500/1000)
Pinnacle DV500 ADVC Editing Card
RaidMax Scorpio ATX Case + 5 Led
afterdawn.com > forums > digital video > video - everything else > mpeg bitrate extraction
 

Digital video: AfterDawn.com | AfterDawn Forums
Music: MP3Lizard.com
Gaming: Blasteroids.com | Blasteroids Forums | Compare game prices
Software: Software downloads
Blogs: User profile pages
RSS feeds: AfterDawn.com News | Software updates | AfterDawn Forums
International: AfterDawn in Finnish | AfterDawn in Swedish | AfterDawn in Norwegian | download.fi
Navigate: Search | Site map
About us: About AfterDawn Ltd | Advertise on our sites | Rules, Restrictions, Legal disclaimer & Privacy policy
Contact us: Send feedback | Contact our media sales team
 
  © 1999-2025 by AfterDawn Ltd.

  IDG TechNetwork