Thanks for the logs.
We have a few things to fix.
-
You have more than 8192 diretories you’re trying to monitor. Linux’s default table size isn’t big enough. We need to increase that. Thanks to Synology getting “sneaky” we now must modify their stuff.
-
As root (sudo sh command) change lines 16 & 17 of /etc/init/s2s_daemon.conf, save the changes, then restart DSM. You will need check this after each DSM update to make certain they didn’t undo you enhancement.
16: env MaxWatches=32768
17: env MaxQueueEvents=163840
- This might be bad codec download. It’s impossible to tell with all the iNotify errors in the way. It also could be obsolete due to age
Jan 05, 2019 12:31:49.843 [0x7f9893a7d700] WARN - Transcode runner appears to have died.
Jan 05, 2019 12:31:49.844 [0x7f989a511700] WARN - Transcode runner appears to have died.
Jan 05, 2019 12:31:57.818 [0x7f9893a7d700] ERROR - [Transcoder] [ac3 @ 0x217cb80] frame sync error
Jan 05, 2019 12:31:57.818 [0x7f989a511700] ERROR - [Transcoder] [ac3 @ 0x32959c0] frame sync error
Jan 05, 2019 12:31:57.819 [0x7f989937d700] ERROR - [Transcoder] Error while decoding stream #0:2: Invalid data found when processing input
Jan 05, 2019 12:31:57.819 [0x7f989a7ff700] ERROR - [Transcoder] Error while decoding stream #0:2: Invalid data found when processing input
Jan 05, 2019 12:31:57.833 [0x7f989378f700] ERROR - [Transcoder] Could not write header for output file #0 (incorrect codec parameters ?): No such file or directory
Jan 05, 2019 12:31:57.834 [0x7f9899c47700] ERROR - [Transcoder] Error initializing output stream 0:0 --
- This, however is a major problem. You are attempting to perform scanning/database activities while trying to transcode (perhaps subtitles?) ? the database is grossly fragmented and preventing PMS from communicating with itself properly.
Jan 22, 2019 17:28:32.796 [0x7fedd8cd7700] WARN - SLOW QUERY: It took 16090.000000 ms to retrieve 79 items.
Jan 22, 2019 17:28:32.818 [0x7fedcc447700] WARN - SLOW QUERY: It took 16110.000000 ms to retrieve 16 items.
Jan 22, 2019 17:28:32.842 [0x7fedd17ff700] WARN - SLOW QUERY: It took 16200.000000 ms to retrieve 79 items.
The remedy for this:
- Stop all Scanning
- Optimize database
- Make certain the iNotify changes above are implemented
- Rescan ONE library section at a time until all have caught back up
- Optimize database between each library section scan
- Retest video transcoding once complete.