2024-08-09, 09:44 PM
There isn't really a lot to accelerate for chapter image extraction. Here is an example command that Jellyfin runs for extracting an image.
Literally pulling out a single frame at a particular time stamp. Disk performance for the media storage is the bottleneck, really.
Code:
/usr/lib/jellyfin-ffmpeg/ffmpeg -f matroska -ss 00:19:31.962 -i file:/media/storage2/testMovies/Evangelion 3.0+1.0 Thrice Upon a Time/Evangelion 3.0+1.0 Thrice Upon a Time.mkv -threads 0 -v quiet -vframes 1 -vf scale=round(iw*sar/2)*2:round(ih/2)*2,thumbnail=n=24 -f image2 /cache/temp/628c9eee-454d-496f-95b2-0eeca47d5d73.jpg
Literally pulling out a single frame at a particular time stamp. Disk performance for the media storage is the bottleneck, really.