summaryrefslogtreecommitdiffstats
path: root/libhb/work.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-05-29 09:43:56 -0600
committerJohn Stebbins <[email protected]>2016-05-29 09:46:12 -0600
commit1db4f9898de375ee7d83fdf56e2af5de3ef53671 (patch)
tree09508f3552acd9d169f312529d95e0cc2364315e /libhb/work.c
parentaae64bbd7be3907633e833d30edde605a5887de1 (diff)
vpx: add encoder presets
presets are veryfast - deadline=good:cpu-used=5 faster - deadline=good:cpu-used=4 fast - deadline=good:cpu-used=3 medium - deadline=good:cpu-used=2 slow - deadline=good:cpu-used=1 slower - deadline=good:cpu-used=0 veryslow - deadline=best:cpu-used=0
Diffstat (limited to 'libhb/work.c')
-rw-r--r--libhb/work.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/libhb/work.c b/libhb/work.c
index d318fe447..afb866394 100644
--- a/libhb/work.c
+++ b/libhb/work.c
@@ -422,22 +422,10 @@ void hb_display_job_info(hb_job_t *job)
hb_log(" + encoder: %s",
hb_video_encoder_get_long_name(job->vcodec));
- if (job->encoder_preset && *job->encoder_preset)
+ if (job->encoder_preset && *job->encoder_preset &&
+ hb_video_encoder_get_presets(job->vcodec) != NULL)
{
- switch (job->vcodec)
- {
- case HB_VCODEC_X264_8BIT:
- case HB_VCODEC_X264_10BIT:
- case HB_VCODEC_X265_8BIT:
- case HB_VCODEC_X265_10BIT:
- case HB_VCODEC_X265_12BIT:
- case HB_VCODEC_X265_16BIT:
- case HB_VCODEC_QSV_H264:
- case HB_VCODEC_QSV_H265:
- hb_log(" + preset: %s", job->encoder_preset);
- default:
- break;
- }
+ hb_log(" + preset: %s", job->encoder_preset);
}
if (job->encoder_tune && *job->encoder_tune)
{