[Feature] On demand thumbnail and transcoding #7666
Replies: 7 comments 8 replies
-
Are you suggesting that the small WebP (scroll view) thumbnails would also be generated on demand? Have you considered the I/O requirements to read in that many images in full resolution when scrolling through the timeline? Or is this only for the "mid-size" JPEGs? I guess my point is that there are more things to think about than just raw CPU and GPU power, especially for pictures - video transcoding is a much more doable because videos are viewed at a fixed speed. |
Beta Was this translation helpful? Give feedback.
-
There's also this issue asking for hardware-accelerated decoding #4321 |
Beta Was this translation helpful? Give feedback.
-
Having the option to transcode video on the fly is probably where this feature would be most useful. The (tiny) still image and video thumbnails are hardly a storage concern, but even 720p video adds up. The problem is that this can only be realistically accomplished with hardware decoding and NVENC, QuickSync, etc are much much less robust and flexible than ffmpeg using x265 for example. I sometimes add video in strange resolutions or uncommon bit depths (12bit 4:4:4) which break hardware encoders. It seems like it would be very very tough to account for all the weirdness without having a whitelist for video which should be converted on the fly and which should be pretranscoded in software. |
Beta Was this translation helpful? Give feedback.
-
Well, now there are a lot of options to specify what to trancode and what not. Also there is an option to enable/disable hardware transcoding. I don't see a problem to add option to use on-fly transcoding or not. |
Beta Was this translation helpful? Give feedback.
-
I see no real point in having thumbnails generated on the fly, it would be instead worth to have it kind of be able to detect moved/duplicate files and not generate a new thumbnail again cluttering up more disk space than necessary. When it comes to the video I instead see a real use for on the fly transcoding: having all those transcoded video files adding up does not make much sense for a mostly single user system where even my simple i5 with quicksync could enode on the fly... |
Beta Was this translation helpful? Give feedback.
-
I've been experimenting with Immich for a while now and I have to say that I'm quite happy with it. Clearly, implementing this feature, which impacts both frontend and backend, is far from simple: two of the four famous media servers currently available have it as a paid key feature, and for a reason. While browsing, I noticed that Immich seems to use the ffmpeg library compiled by Jellyfin, and I thought of a possible solution.
Again, I have no idea if it is possible and I think the feasibility is mostly linked to the limitations of the jellyfin plugins, I hope someone can be more helpful in this regard. |
Beta Was this translation helpful? Give feedback.
-
On fly transcoding for 'playback' is surely the best thing to have. But as temporary it would be cool to have something like lazy on-demand transcoding. So that system will generate these video files only when actually needed and cache results just for some time (days/months/years depending on settings). User will need to wait until it's done to start playback. This will add way to not store tons of transcoded videos for old content that may be not played at all.. |
Beta Was this translation helpful? Give feedback.
-
The feature
Hello,
I'd like to see an option to disable thumbnail and transcode creation and to see support for on demand thumbnail creation. I run immich on a 32 core threadripper with an RTX 3080 GPU, so transcoding in real time isn't difficult for my system.
I have searched around, and the closest discussion similar to this is #1334 however my request is that we save disk space by not transcoding and creating thumbnails, but doing so in real time. Maybe the thumbs and encode-video folder can be periodically flushed of files older than a day, that way we can use those folders to temporarily store the needed thumbnail and transcode in a way that's similar to cache in that it gets cleared over time.
The reason I'm wondering about this is currently both of these folders add up to about 400 GB, which is not insignificant even though I have 25 TB free disk space.
Platform
Beta Was this translation helpful? Give feedback.
All reactions