From 5b28c8c3552626eb4beda42731232bc697073264 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 21 Aug 2005 22:31:01 +0000 Subject: time_base description by Rich Felker | dalias, aerifal cx Originally committed as revision 4536 to svn://svn.ffmpeg.org/ffmpeg/trunk --- output_example.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'output_example.c') diff --git a/output_example.c b/output_example.c index f61229dedd..6091d85089 100644 --- a/output_example.c +++ b/output_example.c @@ -199,7 +199,10 @@ AVStream *add_video_stream(AVFormatContext *oc, int codec_id) /* resolution must be a multiple of two */ c->width = 352; c->height = 288; - /* frames per second */ + /* time base: this is the fundamental unit of time (in seconds) in terms + of which frame timestamps are represented. for fixed-fps content, + timebase should be 1/framerate and timestamp increments should be + identically 1. */ c->time_base.den = STREAM_FRAME_RATE; c->time_base.num = 1; c->gop_size = 12; /* emit one intra frame every twelve frames at most */ -- cgit v1.2.3