FFMS / ffms2

An FFmpeg based source library and Avisynth/VapourSynth plugin for easy frame accurate access
Other
582 stars 105 forks source link

Open MP4/MOV without indexing #207

Closed tophf closed 9 years ago

tophf commented 9 years ago

LSMASHVideoSource() can open MP4/MOV files quickly without building the index first (with frame-seeking support), apparently, by reading the file's built-in index. I've been using it for a few years. It'd useful to add such mode to FFMS2 (and, probably, set it as default for mp4/mov).

myrsloik commented 9 years ago

For some containers it is kinda possible to do this. I did experiment with this for AVI in the age of ffms1 but in the end decided that the amount of special casing needed isn't worth it. You'll also get much worse results on files with derpy indexes which there's no shortage of...

tophf commented 9 years ago

The primary benefit as I see it is to open multi-gigabyte mp4 files (100GB, for example) for lossless encoding pass(es) with a healthy index.

myrsloik commented 9 years ago

Your use case is exceptional and since you produce the files yourself you should be able to find an alternative solution that works. Actually you already pointed at once yourself.

The standard use case for ffms2 is to throw it at any random shit downloaded from the interwebs.

tophf commented 9 years ago

wontfix?

myrsloik commented 9 years ago

Nope, too much work and outside the scope of the project in my opinion. If the goal only was to support a few containers instead of all of them it'd be reasonable.

Patches welcome.