- Code: Select all
ffmpeg -i <movie-name>
...command on each movie in the folder. During this time, the interface is more or less unusable.
Whatever information it's gathering with the multiple ffmpeg invocations (I assume play time, codec information, maybe thumbnail generation), it shouldn't need to do that every time I attempt to access the folder. It should gather that information when it's generating its search index, not during casual user interface usage. Furthermore, it should cache that information so that it only needs to run ffmpeg on each movie exactly once.
Currently, every time I access a movie directory, I see a lot of the following processes being run:
- Code: Select all
media> ps aux | grep ffmpeg
root 3340 0.0 0.0 94856 2728 ? D 13:24 0:00 /var/subsonic/transcode/ffmpeg -i /storage/media/movies/Some Movie.avi
The only current solution that I have is to break the monolithic movie directory into several sub-directories (A, B, C, etc.) and move the movies into that. While the ffmpeg commands are still run, far fewer are run during each directory access, so the interface stall is more tolerable. This is, however, not a very good solution, since I prefer the monolithic directory structure, as do several other services that I run that also access the movie directory.
Failing a complete query-on-index and/or caching implementation, a simple option to disable metadata gathering from movies would be greatly appreciated. I'd rather not see play times than have to wait five minutes each time I want to look at my movie directory.
Thanks!