diff options
author | Rodeo <[email protected]> | 2014-02-13 15:18:15 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2014-02-13 15:18:15 +0000 |
commit | 1a1b1591ef5acd8495dc8e736a47852e93694020 (patch) | |
tree | 7c9cd72eff31ee912ad12fa8c6f16b7d01e40a7a /gtk | |
parent | 94d470181e290d89f3be93cd13c28f415dd00ab7 (diff) |
libhb: make encoder options less x264-centric.
profile/level control and, to a lesser extent,
encoder presets and tunes are becoming more common.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6031 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/src/hb-backend.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c index 2c1e568cb..393aad0e5 100644 --- a/gtk/src/hb-backend.c +++ b/gtk/src/hb-backend.c @@ -3174,7 +3174,7 @@ void ghb_set_video_encoder_opts(hb_job_t *job, GValue *js) if (ghb_settings_get_boolean(js, "x264UseAdvancedOptions")) { char *opts = ghb_settings_get_string(js, "x264Option"); - hb_job_set_advanced_opts(job, opts); + hb_job_set_encoder_options(job, opts); g_free(opts); } else @@ -3198,18 +3198,18 @@ void ghb_set_video_encoder_opts(hb_job_t *job, GValue *js) } tunes = g_string_free(str, FALSE); - hb_job_set_x264_preset(job, preset); + hb_job_set_encoder_preset(job, preset); if (tunes != NULL && strcasecmp(tune, "none")) - hb_job_set_x264_tune(job, tunes); + hb_job_set_encoder_tune(job, tunes); if (profile != NULL && strcasecmp(profile, "auto")) - hb_job_set_h264_profile(job, profile); + hb_job_set_encoder_profile(job, profile); if (level != NULL && strcasecmp(level, "auto")) - hb_job_set_h264_level(job, level); + hb_job_set_encoder_level(job, level); - hb_job_set_advanced_opts(job, opts); + hb_job_set_encoder_options(job, opts); g_free(preset); g_free(tune); @@ -3226,7 +3226,7 @@ void ghb_set_video_encoder_opts(hb_job_t *job, GValue *js) gchar *opts = ghb_settings_get_string(js, "lavcOption"); if (opts != NULL && opts[0]) { - hb_job_set_advanced_opts(job, opts); + hb_job_set_encoder_options(job, opts); } g_free(opts); } break; @@ -5233,7 +5233,7 @@ add_job(hb_handle_t *h, GValue *js, gint unique_id, gint titleindex) */ job->pass = -1; job->indepth_scan = 1; - hb_job_set_advanced_opts(job, NULL); + hb_job_set_encoder_options(job, NULL); /* * Add the pre-scan job |