Plex音轨为EAC格式的视频无法播放的问题及解决方案
问题描述
Plex giving me this error on one specific file the audio is eac3 5.1 everything else in my library plays why only this one gets this message?
原因分析
I sometimes have an issue with Plex Transcoder not being able to decode HD audio formats because it relies on an external binary called Easy Audio Encoder, which apparently will create some temporary files, do its thing, and then Plex Transcoder reads some files. Well, I guess it must set up some inotify directory watches to find the files EAE makes because if the number of directories in my library exceeds the max number of inotify watches that a process is allowed, Plex Transcoder and EAC just hang, constantly using CPU but never actually getting any work done. Increasing the max number of inotify watches to the next higher multiple of 32K, then restarting Plex, solves the issue.
Here's another thread about it from a year ago:
https://www.reddit.com/r/PleX/comments/jng4bn/eae_timeout/
And a plex.tv forum post on how to raise the inotify watch limit: https://forums.plex.tv/t/increase-the-number-of-directories-linux-can-monitor-notify/209156
解决方案
检查系统当前限制,默认应该是 8192:
cat /proc/sys/fs/inotify/max_user_watches
可根据需要调整系统限制,但是目前还不知道如何查看每个进程对 watch 的消耗
在 /etc/sysctl.conf 中添加一行:
fs.inotify.max_user_watches=524288
修改后运行
sysctl -p
0 评论