最新构建中通过 CLI 调用时出现错误?

Hi MCEBuddy team,

I recently migrated Plex servers and am getting my environment back up and running. I’ve run into a weird issue with the latest 2.5.8 build (MCEBuddy 2.5.8 64bit - 20230510).

The Plex Post processing batch file which I’ve been using for years has stopped working. After doing some digging, I found out that from Plex’s perspective it was timing out.

In order to test the script, I manually tied to invoke the CLI from the command line against a .TS file that Plex created. The engine is already started, and I’m using the CMDService vs the Windows Service.

"C:\Program Files\MCEBuddy2x\MCEBuddy.UserCLI.exe" --command=addfile --action="Z:\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts"

Doing that results in this log entry:

WARNING> 2023-06-07T17:22:44 MCEBuddy.Engine.QueueManager --> Manually selected file Z:\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts does not exist or MCEBuddy doesn't have read permissions, skipping

I’ve validated that the network credentials are set under system settings. To double check, I tried manually dragging the same file to the GUI. It processes fine and creates the following entry in the log:

2023-06-07T17:24:54 MCEBuddy.Engine.QueueManager --> Attempting to connect to network share \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49
2023-06-07T17:24:54 MCEBuddy.Engine.QueueManager --> Manually selected file \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts added to queue
2023-06-07T17:24:54 MCEBuddy.Engine.QueueManager --> Manual file : Checking Filter and Metadata Matches for File -> \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts, Conversion Task -> Convert to MP4
2023-06-07T17:24:54 MCEBuddy.Engine.QueueManager --> File >PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts<, checking filename filter ><
INFORMATION> --> Extracting metadata from file \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts
2023-06-07T17:24:54 MCEBuddy.MetaData.VideoMetaData --> Extracting metadata from file -> \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts
--> Checking for SiliconDust meta tags
--> Starting to extract payload from TS file, upto 64 TS packets will be processed
--> Extracted 0 of 1 TS packet(s)
2023-06-07T17:24:54 MCEBuddy.MetaData.VideoMetaData --> Video Tags extracted -> 
Title: 
SubTitle: 
Description: 
Network: 
Network Affiliate: 
Parental Rating: 
Media Credits: 
Genres: 
Season: 0
Episode: 0
Banner: 
Banner URL: 
IMDB Id: 
MovieDB Id: 
TVDB Id: 
Is Movie: False
Is Sports: False
OriginalBroadcastDateTime: 1900-01-01T00:00:00
RecordedDateTime: 1900-01-01T00:00:00
SeriesPremiereDate: 1900-01-01T00:00:00
CopyProtected: False
SageTV FileID: 
SageTV MediaFileID: 

2023-06-07T17:24:54 MCEBuddy.MetaData.VideoMetaData --> Trying to match nPVR/SiliconDust/FlixGrab series showname -> PBS NewsHour (2009) - S49E244 - PBS NewsHour
2023-06-07T17:24:54 MCEBuddy.MetaData.VideoMetaData --> Looking for Season/Episode information in text
2023-06-07T17:24:54 MCEBuddy.MetaData.VideoMetaData --> Pattern 1, Found Season/Episode information in text, Season:49, Episode:244
--> Looking for Premiere Year information in text
--> Found Premiere Year information in text, Year:2009
2023-06-07T17:24:54 MCEBuddy.MetaData.VideoMetaData --> Successfully matched nPVR/SiliconDust/FlixGrab series filename metadata
2023-06-07T17:24:54 MCEBuddy.MetaData.VideoMetaData --> Video Tags extracted from file/name metadata -> 
Title: PBS NewsHour
SubTitle: PBS NewsHour
Description: 
Network: 
Network Affiliate: 
Parental Rating: 
Media Credits: 
Genres: 
Season: 49
Episode: 244
Banner: 
Banner URL: 
IMDB Id: 
MovieDB Id: 
TVDB Id: 
Is Movie: False
Is Sports: False
OriginalBroadcastDateTime: 1900-01-01T00:00:00
RecordedDateTime: 1900-01-01T00:00:00
SeriesPremiereDate: 2009-05-05T00:00:00
CopyProtected: False
SageTV FileID: 
SageTV MediaFileID: 

2023-06-07T17:24:54 MCEBuddy.MetaData.VideoMetaData --> Checking for metadata title and ID correction
2023-06-07T17:24:54 MCEBuddy.MetaData.VideoMetaData --> Checking for metadata type correction
INFORMATION> 2023-06-07T17:24:54 MCEBuddy.MetaData.VideoMetaData --> Skipping downloading Series details
2023-06-07T17:24:54 MCEBuddy.MetaData.VideoMetaData --> Updated Video Tags extracted after downloading details -> 
Title: PBS NewsHour
SubTitle: PBS NewsHour
Description: 
Network: 
Network Affiliate: 
Parental Rating: 
Media Credits: 
Genres: 
Season: 49
Episode: 244
Banner: 
Banner URL: 
IMDB Id: 
MovieDB Id: 
TVDB Id: 
Is Movie: False
Is Sports: False
OriginalBroadcastDateTime: 1900-01-01T00:00:00
RecordedDateTime: 1900-01-01T00:00:00
SeriesPremiereDate: 2009-05-05T00:00:00
CopyProtected: False
SageTV FileID: 
SageTV MediaFileID: 

2023-06-07T17:24:54 MCEBuddy.Engine.QueueManager --> Show >PBS NewsHour<, checking for showname filter ><
2023-06-07T17:24:54 MCEBuddy.Engine.QueueManager --> Network ><, checking for network/channel filter ><
2023-06-07T17:24:54 MCEBuddy.Engine.QueueManager --> IsSports >False<, IsMovie >False<, checking for show type filter >Default<
2023-06-07T17:24:54 MCEBuddy.Engine.QueueManager --> Checking for file size ><
2023-06-07T17:24:54 MCEBuddy.Engine.QueueManager --> Checking for video bitrate ><
2023-06-07T17:24:54 MCEBuddy.Engine.QueueManager --> Checking for video width ><
2023-06-07T17:24:54 MCEBuddy.Engine.QueueManager --> Checking for codec filter >Any<
INFORMATION> 2023-06-07T17:24:54 MCEBuddy.Engine.QueueManager --> Manual file : Added new job to queue using conversion task -> Convert to MP4 for \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts
2023-06-07T17:24:55 MCEBuddy.Engine.ConversionJob --> Starting Conversion Thread
INFORMATION> 2023-06-07T17:24:55 MCEBuddy.Engine.Core --> Job for \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts started using conversion task -> Convert to MP4 and profile -> HEVC MKV
2023-06-07T17:24:55 MCEBuddy.Engine.Core --> Temp working path is C:\Program Files\MCEBuddy2x\working0
2023-06-07T17:24:55 MCEBuddy.Engine.Core --> Starting new conversions, allowing system sleep
INFORMATION> 2023-06-07T17:24:55 MCEBuddy.Engine.ConversionJob --> Creating log file : C:\Program Files\MCEBuddy2x\log\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts-Convert to MP4-2023-06-07T17-24-55.log
2023-06-07T17:25:55 MCEBuddy.Engine.QueueManager --> Attempting to connect to network share \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49
2023-06-07T17:25:55 MCEBuddy.Engine.QueueManager --> Manually selected file \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts added to queue
2023-06-07T17:26:55 MCEBuddy.Engine.QueueManager --> Attempting to connect to network share \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49
2023-06-07T17:26:55 MCEBuddy.Engine.QueueManager --> Manually selected file \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts added to queue
2023-06-07T17:27:55 MCEBuddy.Engine.QueueManager --> Attempting to connect to network share \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49
2023-06-07T17:27:55 MCEBuddy.Engine.QueueManager --> Manually selected file \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts added to queue
2023-06-07T17:28:55 MCEBuddy.Engine.QueueManager --> Attempting to connect to network share \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49
2023-06-07T17:28:55 MCEBuddy.Engine.QueueManager --> Manually selected file \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts added to queue
2023-06-07T17:29:55 MCEBuddy.Engine.QueueManager --> Attempting to connect to network share \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49
2023-06-07T17:29:55 MCEBuddy.Engine.QueueManager --> Manually selected file \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts added to queue
2023-06-07T17:30:55 MCEBuddy.Engine.QueueManager --> Attempting to connect to network share \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49
2023-06-07T17:30:55 MCEBuddy.Engine.QueueManager --> Manually selected file \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts added to queue
2023-06-07T17:31:55 MCEBuddy.Engine.QueueManager --> Attempting to connect to network share \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49
2023-06-07T17:31:55 MCEBuddy.Engine.QueueManager --> Manually selected file \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts added to queue
2023-06-07T17:32:55 MCEBuddy.Engine.QueueManager --> Attempting to connect to network share \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49
2023-06-07T17:32:55 MCEBuddy.Engine.QueueManager --> Manually selected file \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts added to queue
<snip>
2023-06-07T17:44:56 MCEBuddy.Engine.QueueManager --> Manually selected file \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts added to queue
2023-06-07T17:45:56 MCEBuddy.Engine.QueueManager --> Attempting to connect to network share \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49
2023-06-07T17:45:56 MCEBuddy.Engine.QueueManager --> Manually selected file \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts added to queue
INFORMATION> 2023-06-07T17:46:01 MCEBuddy.Engine.Core --> Job for \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts completed
2023-06-07T17:46:01 MCEBuddy.Engine.Core --> Deleting original file \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts
INFORMATION> 2023-06-07T17:46:01 --> Job for \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts converted successfully to \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.mkv using conversion task -> Convert to MP4 and profile -> HEVC MKV
2023-06-07T17:46:01 MCEBuddy.Engine.Core --> No conversions running, allowing system sleep

It’s continuing to process now as I type. It’s also continuing to repeat the “added to queue” line as it ticks up in percentage complete in the GUI.

Any other log files I can provide to help troubleshoot?

Thanks! Will.

NOTE: Don’t forget to attach your conversion log or MCEBuddy.log file as appropriate

順帶一提,我搞定了——我把 Plex 改成直接走網路共享,而不是用掛載的磁碟機,現在一切正常。真希望 Windows 對這種事情別這麼敏感……

没错,映射驱动器在系统空间(服务运行的地方)并不存在,只存在于用户登录会话中。如果你的引擎以服务方式运行,应始终使用直接的网络路径。

它不是以服務的形式執行,而是以命令列工具的形式執行。仍然遇到一些奇怪的問題。現在正在設法解決……

我抽空排查了一下——原來是 Bounjour 搞的鬼。它會影響 UNC 路徑的解析方式(我猜是把所有東西都轉成 IP6 URL)。

現在從後製腳本呼叫時,MCEBuddy 已經能抓到檔案,但 Plex 又開始行為怪異。這就是下一個要解決的問題…