aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-08-13 13:59:28 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-08-13 13:59:28 +0000
commitbaced9f5986a466c957456f5cf32a722d8b35512 (patch)
tree48f9ff3b97449b4b4f93e69eacf759cb575b488c /ffmpeg.c
parentc2b9685ecadbf07e8b351070eb50febb111ab1e3 (diff)
downloadffmpeg-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.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 94571cce0f..49df083331 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -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", },