diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-08-13 13:59:28 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-08-13 13:59:28 +0000 |
commit | baced9f5986a466c957456f5cf32a722d8b35512 (patch) | |
tree | 48f9ff3b97449b4b4f93e69eacf759cb575b488c /ffmpeg.c | |
parent | c2b9685ecadbf07e8b351070eb50febb111ab1e3 (diff) | |
download | ffmpeg-baced9f5986a466c957456f5cf32a722d8b35512.tar.gz |
user overrideable level & profile
Originally committed as revision 3385 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -182,6 +182,8 @@ static int intra_dc_precision = 8; static int coder = 0; static int context = 0; static int predictor = 0; +static int video_profile = FF_PROFILE_UNKNOWN; +static int video_level = FF_LEVEL_UNKNOWN; extern int loop_input; /* currently a hack */ static int gop_size = 12; @@ -3150,6 +3152,8 @@ static void opt_output_file(const char *filename) video_enc->coder_type= coder; video_enc->context_model= context; video_enc->prediction_method= predictor; + video_enc->profile= video_profile; + video_enc->level= video_level; if(packet_size){ video_enc->rtp_mode= 1; @@ -3839,6 +3843,8 @@ const OptionDef options[] = { { "coder", OPT_INT | HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)&coder}, "coder type", "" }, { "context", OPT_INT | HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)&context}, "context model", "" }, { "pred", OPT_INT | HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)&predictor}, "prediction method", "" }, + { "vprofile", OPT_INT | HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)&video_profile}, "profile", "" }, + { "vlevel", OPT_INT | HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)&video_level}, "level", "" }, /* audio options */ { "ab", HAS_ARG | OPT_AUDIO, {(void*)opt_audio_bitrate}, "set audio bitrate (in kbit/s)", "bitrate", }, |