]> git.sesse.net Git - nageru/blobdiff - timebase.h
Add an option --http-coarse-timebase for streaming to MP4.
[nageru] / timebase.h
index be2362b2ef7d376222564ccb81d09fa557aea6b5..3d335fd3ca9ccec07a4eb628559f178d1079f33a 100644 (file)
 // going to 44100000; probably a bit excessive.
 #define TIMEBASE 60000
 
+// Some muxes, like MP4 (or at least avformat's implementation of it),
+// are not too fond of values above 2^31. At timebase 60000, that's only
+// about ten hours or so, so we define a coarser timebase that doesn't
+// get 59.94 precisely (so there will be a marginal amount of pts jitter),
+// but can do at least 50 and 60 precisely, and months of streaming.
+#define COARSE_TIMEBASE 300
+
 #endif  // !defined(_TIMEBASE_H)