]> git.sesse.net Git - mlt/commit
make speed of editing AVCHD tolerable
authorDan Dennedy <dan@dennedy.org>
Mon, 2 Apr 2012 01:39:03 +0000 (18:39 -0700)
committerDan Dennedy <dan@dennedy.org>
Mon, 2 Apr 2012 01:41:36 +0000 (18:41 -0700)
commitb17e3e9f4eadc0dc53ded8a14df2059bb642afb1
tree7b21da51d85d831c75e2e349212c9d89fcbb64d7
parent89f844b45de385c5fa960064f522a5ff22fc87ac
make speed of editing AVCHD tolerable

This only works for FFmpeg v0.9.1 or newer but not yet for libav.
This uses the image scaling interpolation mode as a hint to perform less
(nearest) or more (bilinear or bicubic) diligent seeking. Since most
editors are using the SDL consumer with rescale=nearest, this makes
scrubbing and cuts/transitions faster. Then, upon encoding, since the
avformat consumer uses bilinear by default, it will use the slower, more
accurate seeking to ensure the integrity of cuts with an in
point. This change has some quirks: frame-stepping backwards sometimes
does not update the image, and sometimes a big jump forward shows
artifacts.
src/modules/avformat/producer_avformat.c