changeset 9297:8a19be9649e7

use fraction for time_base
author michael
date Thu, 06 Feb 2003 18:03:11 +0000
parents 735babeba1eb
children 9d247c54923e
files DOCS/tech/mpcf.txt
diffstat 1 files changed, 11 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/DOCS/tech/mpcf.txt	Thu Feb 06 17:46:23 2003 +0000
+++ b/DOCS/tech/mpcf.txt	Thu Feb 06 18:03:11 2003 +0000
@@ -85,7 +85,8 @@
 	fourcc					v
 	average_bitrate				v
 	language_code				v
-	time_base				v
+	time_base_nom				v
+	time_base_denom				v
 	lsb_timestamp_length			v
 	fixed_fps				u(1)
 	codec_specific_header_flag		u(1)
@@ -191,10 +192,17 @@
 	something like 'u'<<24 + 's'<<16 + 'e'<<8 + 'n' (US english), can be 0
 	if unknown
 
-time_base
+time_base_nom / time_base_denom = time_base
 	the number of timer ticks per second, this MUST be equal to the fps
 	if the fixed_fps is 1
-	MUST be < 2^15
+	time_base_denom MUST not be 0
+	time_base_nom and time_base_denom MUST be relative prime
+	time_base_nom MUST be < 2^15
+	examples:
+        	fps	time_base_nom	time_base_denom
+		30	30		1
+		29.97	30000		1001
+		23.976	24000		1001
 
 lsb_timestamp_length
 	length in bits of the lsb_timestamp