diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-12-08 11:46:16 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-12-08 11:46:16 +0000 |
commit | bbf18b21b76f61da7df206a3084cd34341de44d0 (patch) | |
tree | 9c533a760a891661c347bf0b0016a96b5a8e292a /ffmpeg.c | |
parent | 2f3eca0806a0d45c167beae4d42d7473b437c8ae (diff) | |
download | ffmpeg-bbf18b21b76f61da7df206a3084cd34341de44d0.tar.gz |
frame skip support
Originally committed as revision 3742 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
@@ -193,6 +193,8 @@ static int video_level = FF_LEVEL_UNKNOWN; static int nsse_weight = 8; static int subpel_quality= 8; static int lowres= 0; +static int frame_skip_threshold= 0; +static int frame_skip_factor= 0; extern int loop_input; /* currently a hack */ static int gop_size = 12; @@ -3223,6 +3225,8 @@ static void opt_output_file(const char *filename) video_enc->level= video_level; video_enc->nsse_weight= nsse_weight; video_enc->me_subpel_quality= subpel_quality; + video_enc->frame_skip_threshold= frame_skip_threshold; + video_enc->frame_skip_factor= frame_skip_factor; if(packet_size){ video_enc->rtp_mode= 1; @@ -3949,6 +3953,8 @@ const OptionDef options[] = { { "subq", OPT_INT | HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)&subpel_quality}, "", "" }, { "lowres", OPT_INT | HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)&lowres}, "", "" }, { "vtag", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_video_tag}, "force video tag/fourcc", "fourcc/tag" }, + { "skip_threshold", OPT_INT | HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)&frame_skip_threshold}, "frame skip threshold", "threshold" }, + { "skip_factor", OPT_INT | HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)&frame_skip_factor}, "frame skip factor", "factor" }, /* audio options */ { "ab", HAS_ARG | OPT_AUDIO, {(void*)opt_audio_bitrate}, "set audio bitrate (in kbit/s)", "bitrate", }, |