summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaowu Xu <yaowu@google.com>2010-11-03 12:56:31 -0700
committerPaul Wilkins <paulwilkins@google.com>2010-11-04 09:26:47 +0000
commita5397dbaf13c87516bbf404dea35fe49bfe805e3 (patch)
treecd65907d6cfd156b5ac4039537e947f78ba1c97d
parent77e6b4504b97724fb3dbfdcf26365b68c3cf5f3c (diff)
downloadlibvpx-a5397dbaf13c87516bbf404dea35fe49bfe805e3.tar
libvpx-a5397dbaf13c87516bbf404dea35fe49bfe805e3.tar.gz
libvpx-a5397dbaf13c87516bbf404dea35fe49bfe805e3.tar.bz2
libvpx-a5397dbaf13c87516bbf404dea35fe49bfe805e3.zip
Increase the resolution of default timebase
The old value 1000 was too low, which caused the effective duration and frame rate calculation to have an 1% error for typical 30 frame/second inputs. Symptom of the issue has been that most 2 pass encodings were undershooting target bit rate by 1% or so for 30 fps input. Change-Id: Ice204e86f844ceb9ce973456f2b995cc095283cf
-rw-r--r--vpxenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vpxenc.c b/vpxenc.c
index 45ec7e5c9..032e2e8d8 100644
--- a/vpxenc.c
+++ b/vpxenc.c
@@ -1188,7 +1188,7 @@ int main(int argc, const char **argv_)
/* Change the default timebase to a high enough value so that the encoder
* will always create strictly increasing timestamps.
*/
- cfg.g_timebase.den = 1000;
+ cfg.g_timebase.den = 100000;
/* Never use the library's default resolution, require it be parsed
* from the file or set on the command line.