View Single Post
Old 4th June 2010, 21:55   #4  |  Link
twazerty
AVCHDCoder developer
 
Join Date: Feb 2009
Location: Oss, Netherlands
Posts: 266
Quote:
Originally Posted by pistacho View Post
Media sizes:
http://en.wikipedia.org/wiki/DVD

and output sizes ...many hours of work and much research

Sample:
Code:
...			
size = audio * Video[i_v].duracion;	
n_packets = size / (1536-head);	
over = n_packets * head;			 
media -= size;
media -= over;
	
n_packets = media / 1536;
over = n_packets * 81;					
media -= over;  									
media -= (300 * 8 * Video[i_v].frame_count);	   
	
bitrate = (int)(media / (Video[i_v].duracion * 0.9893));
....
I used another approach. I calculated hundreds of formulas. Maybe we can share our information sometimes?
twazerty is offline   Reply With Quote