summaryrefslogtreecommitdiffstats
path: root/libhb/work.c
diff options
context:
space:
mode:
authorRodeo <[email protected]>2012-03-24 19:26:12 +0000
committerRodeo <[email protected]>2012-03-24 19:26:12 +0000
commitbe4abed142e5d2b9fe2b8801d129de90450fbc2e (patch)
tree6b3522c679a3de4350d56e01466017e258c9219e /libhb/work.c
parentc6401fab7c5f1daf36cdb3f99c640477c19bdc01 (diff)
Add hb_apply_h264_level(). Sets and ensures compliance with the specified H.264 level. Does not modify framerate and resolution but prints warnings when they are incompatible with the requested level.
Exposed to CLI users only via the --h264-level option. GUI support may come later, once we decide how to handle x264 presets/tunes/profiles. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4534 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/work.c')
-rw-r--r--libhb/work.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/libhb/work.c b/libhb/work.c
index 530defde9..0487a07f0 100644
--- a/libhb/work.c
+++ b/libhb/work.c
@@ -327,23 +327,28 @@ void hb_display_job_info( hb_job_t * job )
if( job->x264_preset && *job->x264_preset &&
job->vcodec == HB_VCODEC_X264 )
{
- hb_log( " + x264 preset: %s", job->x264_preset);
+ hb_log( " + x264 preset: %s", job->x264_preset );
}
if( job->x264_tune && *job->x264_tune &&
job->vcodec == HB_VCODEC_X264 )
{
- hb_log( " + x264 tune: %s", job->x264_tune);
+ hb_log( " + x264 tune: %s", job->x264_tune );
}
if( job->advanced_opts && *job->advanced_opts &&
( ( job->vcodec & HB_VCODEC_FFMPEG_MASK ) ||
( job->vcodec == HB_VCODEC_X264 ) ) )
{
- hb_log( " + options: %s", job->advanced_opts);
+ hb_log( " + options: %s", job->advanced_opts );
}
if( job->x264_profile && *job->x264_profile &&
job->vcodec == HB_VCODEC_X264 )
{
- hb_log( " + x264 profile: %s", job->x264_profile);
+ hb_log( " + x264 profile: %s", job->x264_profile );
+ }
+ if( job->h264_level && *job->h264_level &&
+ job->vcodec == HB_VCODEC_X264 )
+ {
+ hb_log( " + h264 level: %s", job->h264_level );
}
if( job->vquality >= 0 )