Jellyfin Forum
SOLVED: media scan takes a long time - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+---- Forum: Media Scanning & Identification (https://forum.jellyfin.org/f-media-scanning-identification)
+---- Thread: SOLVED: media scan takes a long time (/t-solved-media-scan-takes-a-long-time)

Pages: 1 2


media scan takes a long time - SuperficialNight - 2023-12-20

I have a dir with around 8000 videos. Total, all have thumbnails, etc.

They are populated with metadata already from previous scans, but regardless, the scans can take up to 4-6 hours to scan just that one folder. If everything is already there, it should be a lot shorter.

I'm doing a scan media library right now.

I did some investigations. It seems ffmpeg is constantly running in the background and actively writing to disk, regardless if anyone is connected or if a scan is actively happening.

Is there some settings in the libraries that could cause this or maybe something I'm doing wrong?

Edit:
Could it also be due to low core counts?

Edit2:
it seems to be writing to my home dir im assuming it possibly is writing to .cache/jellyfin
img link


RE: media scan takes a long time - tmsrxzar - 2023-12-20

disable these 2 in your library entries

Enable chapter image extraction
Extract chapter images during the library scan


RE: media scan takes a long time - SuperficialNight - 2023-12-20

(2023-12-20, 05:32 PM)tmsrxzar Wrote: disable these 2 in your library entries

Enable chapter image extraction
Extract chapter images during the library scan

Thanks for the reply but i already have them off so its not those settings

img link


RE: media scan takes a long time - Venson - 2023-12-20

What plugins do you have enabled?


RE: media scan takes a long time - tmsrxzar - 2023-12-20

then for further recommendations i would need to see the server log and get the server specs
*some plugins also cause high utilization


RE: media scan takes a long time - SuperficialNight - 2023-12-20

(2023-12-20, 05:52 PM)Venson Wrote: What plugins do you have enabled?

I have these enabled

img link


RE: media scan takes a long time - Venson - 2023-12-20

Well i would point onto the Subtitle extract plugin causing the high utilization.


RE: media scan takes a long time - SuperficialNight - 2023-12-20

(2023-12-20, 06:16 PM)Venson Wrote: Well i would point onto the Subtitle extract plugin causing the high utilization.

Does not seem to be it here are some images

ffmpeg sessions

cpu usage and home dir i/o usage

Note the I/O and the low CPU usage. The HDD where everything is stored has no reads or writes; its only activity is on the home partition.


RE: media scan takes a long time - Venson - 2023-12-20

Could you please upload your latest logfile to an external site like pastebin? Without seeing the arguments for the ffmpeg processes i cannot tell you what they are doing.

Also, are you running two jellyfin instances at once?


RE: media scan takes a long time - SuperficialNight - 2023-12-20

(2023-12-20, 06:44 PM)Venson Wrote: Could you please upload your latest logfile to an external site like pastebin? Without seeing the arguments for the ffmpeg processes i cannot tell you what they are doing.

Also, are you running two jellyfin instances at once?

where are log files generated to?


.local/share/jellyfin/log

if it is that then there are logs from a few days ago inside it but no recent ones

Edit: 
nevermind i figured it out

give me a few