From dd49fbf10e64e5279567468f9fbf4870592496dd Mon Sep 17 00:00:00 2001 From: jstebbins Date: Fri, 18 Jun 2010 20:09:08 +0000 Subject: LinGui: add peak framrate checkbox to video tab git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3391 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/ghb.ui | 19 +++++++++++++++++-- gtk/src/hb-backend.c | 6 +++++- gtk/src/internal_defaults.xml | 2 ++ gtk/src/makedeps.py | 1 + 4 files changed, 25 insertions(+), 3 deletions(-) (limited to 'gtk') diff --git a/gtk/src/ghb.ui b/gtk/src/ghb.ui index a71118907..bae888a31 100644 --- a/gtk/src/ghb.ui +++ b/gtk/src/ghb.ui @@ -1756,6 +1756,21 @@ 1 + + + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + Enables variable framerate output with a peak rate determined by the framerate setting + Peak Framerate (VFR) + True + + + + False + 2 + + True @@ -1768,7 +1783,7 @@ False - 2 + 3 @@ -1791,7 +1806,7 @@ False - 3 + 4 diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c index 19ae7d819..63ce0c063 100644 --- a/gtk/src/hb-backend.c +++ b/gtk/src/hb-backend.c @@ -4678,7 +4678,11 @@ add_job(hb_handle_t *h, GValue *js, gint unique_id, gint titleindex) { job->vrate = 27000000; job->vrate_base = vrate; - job->cfr = 1; + gboolean pfr = ghb_settings_get_boolean(js, "VideoFrameratePFR"); + if (pfr) + job->cfr = 2; + else + job->cfr = 1; } const GValue *audio_list; diff --git a/gtk/src/internal_defaults.xml b/gtk/src/internal_defaults.xml index 2bda44783..d6474329c 100644 --- a/gtk/src/internal_defaults.xml +++ b/gtk/src/internal_defaults.xml @@ -271,6 +271,8 @@ 0 VideoFramerate source + VideoFrameratePFR + VideoGrayScale Mp4HttpOptimize diff --git a/gtk/src/makedeps.py b/gtk/src/makedeps.py index f677241b0..dbc492353 100644 --- a/gtk/src/makedeps.py +++ b/gtk/src/makedeps.py @@ -25,6 +25,7 @@ dep_map = ( DepEntry("vquality_type_constant", "VideoQualitySlider", "TRUE", False, False), DepEntry("vquality_type_constant", "VideoTwoPass", "TRUE", True, False), DepEntry("vquality_type_constant", "VideoTurboTwoPass", "TRUE", True, False), + DepEntry("VideoFramerate", "VideoFrameratePFR", "source", True, False), DepEntry("VideoTwoPass", "VideoTurboTwoPass", "TRUE", False, False), DepEntry("FileFormat", "Mp4LargeFile", "mp4", False, True), DepEntry("FileFormat", "Mp4HttpOptimize", "mp4", False, True), -- cgit v1.2.3