diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-11-04 13:41:43 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-11-04 13:41:43 +0000 |
| commit | c366d41af080b9ac37117a9b27a249722c77f74e (patch) | |
| tree | 29e26d4b0877fd0212c3867eb42c32df47d9bcd3 /src/lib/examine_content_job.cc | |
| parent | 09fcd95ff5125d7238188c59aa40430acb45ecbc (diff) | |
Skip every other frame with 50fps sources.
Diffstat (limited to 'src/lib/examine_content_job.cc')
| -rw-r--r-- | src/lib/examine_content_job.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/examine_content_job.cc b/src/lib/examine_content_job.cc index 943e9fbf7..6d1233a8c 100644 --- a/src/lib/examine_content_job.cc +++ b/src/lib/examine_content_job.cc @@ -84,7 +84,11 @@ ExamineContentJob::run () o->out_size = _film->size (); o->apply_crop = false; o->decode_audio = false; - o->decode_video_frequency = 128; + if (_film->length() > 0) { + o->decode_video_skip = _film->length().get() / 128; + } else { + o->decode_video_skip = 0; + } o->decode_subtitles = true; shared_ptr<ImageMagickEncoder> e (new ImageMagickEncoder (_film, o)); Transcoder w (_film, o, this, e); |
