diff options
author | Corey Hickey <bugfood-ml@fatooh.org> | 2006-01-22 20:54:52 +0000 |
---|---|---|
committer | Corey Hickey <bugfood-ml@fatooh.org> | 2006-01-22 20:54:52 +0000 |
commit | 39a64e3023436af020fb2846880f99c2160e13f2 (patch) | |
tree | 82fabaad961bfe9d785d5ad4dec2ca82bb6719be /libavcodec/avcodec.h | |
parent | f53a2931cfc62aaf48b549fa6e0ca04c57ec8d4b (diff) | |
download | ffmpeg-39a64e3023436af020fb2846880f99c2160e13f2.tar.gz |
sc_factor support for encoding.
Here's the description I'll add to the mplayer man page:
---
Causes frames with higher quantizers to be more likely to trigger a
scene change detection and make libavcodec use an I-frame (default: 1).
1-16 is a sane range.
Values between 2 and 6 may yield increasing PSNR (up to approximately
0.04 dB) and better placement of I-frames in high-motion scenes.
Higher values than 6 may give very slightly better PSNR (approximately
0.01 dB more than sc_factor=6), but noticably worse visual quality.
---
Original idea from Michael; patch by me.
Originally committed as revision 4883 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index bf54fce05b..532e37565d 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -1989,6 +1989,13 @@ typedef struct AVCodecContext { * - decoding: unused */ int cutoff; + + /** + * multiplied by qscale for each frame and added to scene_change_score + * - encoding: set by user. + * - decoding: unused + */ + int scenechange_factor; } AVCodecContext; /** |