4 // Common timebase that allows us to represent one frame exactly in all the
5 // relevant frame rates:
8 // Frame at 50fps: 2400/120000
9 // Frame at 60fps: 2000/120000
10 // Frame at 59.94fps: 2002/120000
11 // Frame at 23.976fps: 5005/120000
13 // If we also wanted to represent one sample at 48000 Hz, we'd need
14 // to go to 300000. Also supporting one sample at 44100 Hz would mean
15 // going to 44100000; probably a bit excessive.
16 #define TIMEBASE 120000
18 // Some muxes, like MP4 (or at least avformat's implementation of it),
19 // are not too fond of values above 2^31. At timebase 120000, that's only
20 // about five hours or so, so we define a coarser timebase that doesn't
21 // get 59.94 precisely (so there will be a marginal amount of pts jitter),
22 // but can do at least 50 and 60 precisely, and months of streaming.
23 #define COARSE_TIMEBASE 300
25 #endif // !defined(_TIMEBASE_H)