你好,
我把一档电视节目录成了 .ts 文件,然后用 MCEBuddy 扫描广告并转成 mkv。原文件时长 1 小时 34 分,输出却显示 2 小时 15 分。但在 VLC 里播放,只要进度超过原时长,画面就定格。之前也多次遇到同样问题。虽然这次用的是 v2.6.6,但我确信 v2.6.5 也有相同症状。遗憾的是 MCEBuddy 设成了删除原文件,所以我已无法找回原片。我保留了日志文件,恳请帮忙看看里面是否有线索。
Tatort 2025_07_20_14_15_00 - Das Mädchen das allein nach Haus’ geht.ts-Convert to MKV with EDL-2025-07-20T15-49-13.log (48.4 KB)
谢谢!
It sounds like you’re experiencing an issue where MCEBuddy is outputting video files with an incorrect length, even though the playable content ends at the correct duration. This has happened to you multiple times across different versions.
Since you’ve provided a log file, I’d be happy to take a look at it to see if there are any clues as to why this is happening. Unfortunately, I can’t directly view attachments.
Could you please paste the content of the log file into our chat? Once I have the log, I can help you troubleshoot the issue.
INFORMATION> 2025-07-20T15:49:13 --> Starting conversion
INFORMATION> --> License -> Premium
INFORMATION> --> Windows OS Version -> Microsoft Windows NT 10.0.20348.0 (WIN_10_2016_SERVER, Standard Edition)
INFORMATION> --> Windows 10+ Details -> Release ID: 2009, Display Version: 21H2, Update Build Revision: 3932
INFORMATION> --> Windows Platform -> 64 Bit
INFORMATION> --> MCEBuddy Build Platform -> 64 Bit
INFORMATION> --> MCEBuddy Build Version : 2.6.6.1
INFORMATION> --> MCEBuddy Build Date : 07/15/2025 15:09:38
INFORMATION> 2025-07-20T15:49:13 --> Build type -> RELEASE
INFORMATION> --> MCEBuddy Running as Service : True
INFORMATION> --> .NET Framework Version -> 4.0, Service Pack -> 0
INFORMATION> --> Current System language is English (United States) (eng)
INFORMATION> --> Converting file -> \\max\media2\Recorded Series\Tatort\Tatort 2025_07_20_14_15_00 - Das Mädchen das allein nach Haus' geht.ts
INFORMATION> --> Max Concurrent Jobs -> 1
INFORMATION> --> Monitor Root Relative SubFolder Path -> \\max\media2\Recorded Series\Tatort
INFORMATION> --> Commercial Skip Cut (profile (CommercialSkipCut) + task) -> True
INFORMATION> --> Auto DeInterlacing (profile (AutoDeinterlace) + task) -> True
INFORMATION> --> Pre-Conversion Commercial Remover (PreConversionCommercialRemover) -> True
INFORMATION> --> Copy LOG File (CopyLogFile) -> False
INFORMATION> --> Copy PROPERTIES file (CopyPropertiesFile) -> False
INFORMATION> --> Free Space Check -> True
INFORMATION> --> Locale Language -> ENG
INFORMATION> --> Manual Add Domain Name ->
Manual Add User Name -> admin
Manual Add Password -> *************
Archive Path Domain Name ->
Archive Path User Name -> Guest
Archive Path Password ->
Failed Path Domain Name ->
Failed Path User Name -> Guest
Failed Path Password ->
Wake Hour -> -1
Wake Minute -> -1
Start Hour -> -1
Start Minute -> -1
Stop Hour -> -1
Stop Minute -> -1
Days of Week -> Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday
Max Concurrent Jobs -> 1
Enable Job Logs -> True
Log Level -> 2
Log Keep Days -> 15
Use Recycle Bin -> False
Delete Manually/CLI added Original -> True
Archive Manually/CLI added Original -> False
Sync Converted -> False
Allow Sleep During Conversions -> False
Pause Conversion on Battery Power -> False
Send eMails -> False
eMail settings -> Send eMail Settings -> SMTP Server ->
Port -> 25
SSL -> False
User Name ->
Password ->
From ->
To ->
Bcc ->
eMail On Success -> True
eMail On Failure -> True
eMail On Cancellation -> True
eMail On Start -> True
eMail On Download Failure -> True
eMail On Queueing -> True
Custom subject for Successful conversion ->
Custom subject for Failed conversion ->
Custom subject for Cancelled conversion ->
Custom subject for Start of conversion ->
Custom subject for Download Failure ->
Custom subject for Queueing conversion ->
Skip eMail Body for notifications -> False
Locale -> en-US
Temp Working Path -> D:\tmp
Archive Folder ->
Failed Folder ->
Space Check -> True
Custom Comskip Path ->
Custom profiles.conf -> C:\Users\admin\AppData\Roaming\Emby-Server\utility\mcebuddy\profiles.conf
App Hang Timeout -> 300
Scan New Files Poll Period -> 60
Process Priority -> Normal
CPU Affinity -> 255 (0xFF)
Engine Running -> True
Subtitle Cut Segment Incremental Offset -> 0
Minimum Segment Size (seconds) -> 4
Local Server Port -> 23332
UPnP Enabled -> False
Firewall Exception Enabled -> True
INFORMATION> --> Task -> Convert to MKV with EDL
Profile -> MKV Normal Quality with EDL
Source File -> \\max\media2\Recorded Series\Tatort\Tatort 2025_07_20_14_15_00 - Das Mädchen das allein nach Haus' geht.ts
Relative Source Path -> \\max\media2\Recorded Series\Tatort
Destination Path -> \\max\media2\Recorded Series\Tatort
Working Path -> D:\tmp\working0
Fallback Destination -> False
Skip ReProcessing -> False
Check Reprocessing History -> False
Auto Increment Filename -> False
Add to iTunes Library -> False
Add to WMP Library -> False
Max Width -> 1280
Quality Multipltier -> 1
FPS ->
Auto DeInterlacing -> True
Prefer Hardware Encoding -> True
Use GPU Brands -> Any
Volume Multipltier -> 0
DRC -> True
Force Stereo -> False
Encoder Select Best Audio Track -> True
Profile Audio Language ->
Audio Offset -> 0
Start Trim -> 0
End Trim -> 0
Closed Captions -> default
Closed Captions Offset -> 0
Save Subtitles -> True
Embed Subtitles -> True
Embed Chapters -> True
Strict Processing -> False
Commercial Removal -> Comskip
Custom Comskip INI Path -> C:\Users\admin\AppData\Roaming\Emby-Server\utility\mcebuddy\comskip.ini
Custom Comskip CLI Params ->
Search Ad markers from chapters -> True
Task Commercial Skip Cut -> True
Keep Advertisements -> False
Download Series Details -> False
Download Banner -> True
Overwrite metata from Title -> False
Overwrite metata from Internet -> Default
Prioritize matching metadata -> Default
Force Show Type -> Default
Write Metadata -> False
Rename by Series -> False
Alt Rename by Series -> False
Custom Rename by Series ->
Rename Only -> False
File Selection Pattern ->
Show Selection Pattern ->
Channel Selection Pattern ->
Show Type Selection -> Default
Codec Type Selection -> Any
DRM Type Selection -> All
File Size Comparator -> LessThan
File Size Threshold -> 0
Video Bitrate Comparator -> LessThan
Video Bitrate Threshold (Kbps) -> 0
Video Width Comparator -> LessThan
Video Width Threshold (pixels) -> 0
Monitor Tasks Selection ->
Insert at Top of Queue -> False
Extract XML -> False
Disable Cropping -> True
Skip Copying Original File for Backup -> False
Skip Remuxing Original File to TS -> False
Ignore Copy Protection -> False
TiVO MAK Key ->
Destination Path Domain Name ->
Destination Path User Name ->
Destination Path Password ->
Task Enabled -> True
INFORMATION> 2025-07-20T15:49:18 MCEBuddy.Engine.ConversionJob --> Checking for disk space
INFORMATION> 2025-07-20T15:49:18 MCEBuddy.Engine.ConversionJob --> Running custom commands
INFORMATION> 2025-07-20T15:49:18 MCEBuddy.Transcode.CustomCommand --> No custom commands found
INFORMATION> 2025-07-20T15:49:18 MCEBuddy.Engine.ConversionJob --> Getting show information and banner from Internet sources
INFORMATION> 2025-07-20T15:49:18 MCEBuddy.MetaData.FileExtractMetadata --> Extracting NFO Tags
INFORMATION> 2025-07-20T15:49:18 MCEBuddy.MetaData.VideoMetaData --> Skipping downloading Series details
INFORMATION> 2025-07-20T15:49:18 MCEBuddy.Engine.ConversionJob --> Running custom commands
INFORMATION> --> Skipping Renaming by Series details
INFORMATION> --> Skipping Renaming by Series details
INFORMATION> 2025-07-20T15:49:18 MCEBuddy.Transcode.CustomCommand --> No custom commands found
WARNING> 2025-07-20T15:49:21 MCEBuddy.AppWrapper.FFmpegMediaInfo --> Impaired audio track reported, likely empty channel with no audio
WARNING> 2025-07-20T15:49:21 MCEBuddy.AppWrapper.FFmpegMediaInfo --> Impaired audio track reported, likely empty channel with no audio
INFORMATION> 2025-07-20T15:49:21 MCEBuddy.Engine.ConversionJob --> Checking for Chapter Files
INFORMATION> 2025-07-20T15:49:21 MCEBuddy.Engine.ConversionJob --> Looking for Chapter files
INFORMATION> 2025-07-20T15:49:21 MCEBuddy.Engine.ConversionJob --> Checking for Subtitle files
INFORMATION> 2025-07-20T15:49:22 MCEBuddy.Engine.ConversionJob --> Checking for EDL, EDLP, VPRJ or DTB XML files
INFORMATION> 2025-07-20T15:49:22 MCEBuddy.Engine.ConversionJob --> Checking for Advertisement Chapter Markers
WARNING> 2025-07-20T15:49:25 MCEBuddy.AppWrapper.FFmpegMediaInfo --> Impaired audio track reported, likely empty channel with no audio
WARNING> 2025-07-20T15:49:25 MCEBuddy.AppWrapper.FFmpegMediaInfo --> Impaired audio track reported, likely empty channel with no audio
INFORMATION> 2025-07-20T15:49:25 MCEBuddy.Engine.ConversionJob --> Copying source file to working directory
INFORMATION> 2025-07-20T15:49:25 MCEBuddy.Engine.ConversionJob --> Copying source video to working directory Source:\\max\media2\Recorded Series\Tatort\Tatort 2025_07_20_14_15_00 - Das Mädchen das allein nach Haus' geht.ts, Target:D:\tmp\working0\UnicodeTempName.ts
ERROR> 2025-07-20T15:50:04 --> StartAppWithAdminPrivilegesFromNonUISession WTSQueryUserToken failed (No logged on users) with error 1008. An attempt was made to reference a token that does not exist.
WARNING> 2025-07-20T15:50:04 MCEBuddy.AppWrapper.Comskip --> Unable to create UI Session process with Admin Privileges from NonUI Session. Is any user logged on?
WARNING> 2025-07-20T15:50:04 MCEBuddy.AppWrapper.Comskip --> Retrying process creation as a NonUI Session process with Admin privileges
WARNING> 2025-07-20T15:50:04 MCEBuddy.AppWrapper.Comskip --> Some functions like hardware encoding may not work in this mode
WARNING> 2025-07-20T15:50:07 MCEBuddy.AppWrapper.Comskip --> Comskip failed
INFORMATION> --> Comskip version : DONATOR
INFORMATION> --> Comskip build : CUSTOM
WARNING> 2025-07-20T15:50:17 MCEBuddy.AppWrapper.FFmpegMediaInfo --> Impaired audio track reported, likely empty channel with no audio
WARNING> 2025-07-20T15:50:17 MCEBuddy.AppWrapper.FFmpegMediaInfo --> Impaired audio track reported, likely empty channel with no audio
ERROR> 2025-07-20T15:50:17 --> StartAppWithAdminPrivilegesFromNonUISession WTSQueryUserToken failed (No logged on users) with error 1008. An attempt was made to reference a token that does not exist.
WARNING> 2025-07-20T15:50:17 MCEBuddy.AppWrapper.Comskip --> Unable to create UI Session process with Admin Privileges from NonUI Session. Is any user logged on?
WARNING> 2025-07-20T15:50:17 MCEBuddy.AppWrapper.Comskip --> Retrying process creation as a NonUI Session process with Admin privileges
WARNING> 2025-07-20T15:50:17 MCEBuddy.AppWrapper.Comskip --> Some functions like hardware encoding may not work in this mode
WARNING> 2025-07-20T15:50:19 MCEBuddy.AppWrapper.Comskip --> Comskip failed
INFORMATION> --> Comskip version : DONATOR
INFORMATION> --> Comskip build : CUSTOM
INFORMATION> 2025-07-20T15:50:19 MCEBuddy.RemuxMediaCenter.RemuxMCERecording --> AllowH264CopyRemuxing/AllowH265CopyRemuxing/AllowAV1CopyRemuxing will run fast for commercial detection, using custom donator version of Comskip. Codec detected -> h264
INFORMATION> 2025-07-20T15:50:19 MCEBuddy.Engine.ConversionJob --> Trimming video recording
INFORMATION> 2025-07-20T15:50:19 MCEBuddy.Engine.ConversionJob --> Analyzing video information
INFORMATION> 2025-07-20T15:50:19 MCEBuddy.VideoProperties.VideoInfo --> Reading MediaInfo from D:\tmp\working0\UnicodeTempName.ts
INFORMATION> 2025-07-20T15:50:31 MCEBuddy.VideoProperties.VideoInfo --> Supplementing Media information using FFMPEG
WARNING> 2025-07-20T15:50:34 MCEBuddy.AppWrapper.FFmpegMediaInfo --> Impaired audio track reported, likely empty channel with no audio
WARNING> 2025-07-20T15:50:34 MCEBuddy.AppWrapper.FFmpegMediaInfo --> Impaired audio track reported, likely empty channel with no audio
INFORMATION> 2025-07-20T15:50:34 MCEBuddy.VideoProperties.VideoInfo --> Reading Original File Media information
WARNING> 2025-07-20T15:50:38 MCEBuddy.AppWrapper.FFmpegMediaInfo --> Impaired audio track reported, likely empty channel with no audio
WARNING> 2025-07-20T15:50:38 MCEBuddy.AppWrapper.FFmpegMediaInfo --> Impaired audio track reported, likely empty channel with no audio
INFORMATION> 2025-07-20T15:50:38 MCEBuddy.VideoProperties.VideoInfo --> Skipping crop information
INFORMATION> 2025-07-20T15:50:38 MCEBuddy.Engine.ConversionJob --> Advertisement scan
WARNING> 2025-07-20T15:50:41 MCEBuddy.AppWrapper.FFmpegMediaInfo --> Impaired audio track reported, likely empty channel with no audio
WARNING> 2025-07-20T15:50:41 MCEBuddy.AppWrapper.FFmpegMediaInfo --> Impaired audio track reported, likely empty channel with no audio
INFORMATION> 2025-07-20T15:50:41 MCEBuddy.CommercialScan.Scanner --> Scanning commercials with Comskip
ERROR> 2025-07-20T15:50:43 --> StartAppWithAdminPrivilegesFromNonUISession WTSQueryUserToken failed (No logged on users) with error 1008. An attempt was made to reference a token that does not exist.
WARNING> 2025-07-20T15:50:43 MCEBuddy.AppWrapper.Comskip --> Unable to create UI Session process with Admin Privileges from NonUI Session. Is any user logged on?
WARNING> 2025-07-20T15:50:43 MCEBuddy.AppWrapper.Comskip --> Retrying process creation as a NonUI Session process with Admin privileges
WARNING> 2025-07-20T15:50:43 MCEBuddy.AppWrapper.Comskip --> Some functions like hardware encoding may not work in this mode
INFORMATION> 2025-07-20T15:50:43 MCEBuddy.AppWrapper.Comskip --> Process priority changed to Normal
INFORMATION> 2025-07-20T16:09:24 MCEBuddy.CommercialScan.Scanner --> Using EDL file for commercial removal
WARNING> 2025-07-20T16:09:24 MCEBuddy.CommercialScan.Scanner --> Empty EDL File
INFORMATION> 2025-07-20T16:09:24 MCEBuddy.Engine.ConversionJob --> Extracting closed captions
INFORMATION> 2025-07-20T16:09:24 MCEBuddy.Transcode.CCandSubtitles --> Extracting Closed Captions as SRT file
INFORMATION> 2025-07-20T16:09:26 MCEBuddy.Transcode.CCandSubtitles --> Video duration : 5657.583
INFORMATION> 2025-07-20T16:09:50 MCEBuddy.Transcode.CCandSubtitles --> Validating and cleaning SRT file
INFORMATION> 2025-07-20T16:09:50 MCEBuddy.Transcode.CCandSubtitles --> Validating and cleaning SRT file
INFORMATION> 2025-07-20T16:09:50 MCEBuddy.Transcode.CCandSubtitles --> Extracted closed captions to MCEBuddy.Globals.SubtitleFile
INFORMATION> 2025-07-20T16:09:50 MCEBuddy.Engine.ConversionJob --> Validating closed captions
INFORMATION> 2025-07-20T16:09:50 MCEBuddy.Transcode.CCandSubtitles --> Validating and cleaning SRT file
INFORMATION> 2025-07-20T16:09:50 MCEBuddy.Engine.ConversionJob --> Running custom commands
INFORMATION> --> Skipping Renaming by Series details
INFORMATION> --> Skipping Renaming by Series details
INFORMATION> 2025-07-20T16:09:50 MCEBuddy.Transcode.CustomCommand --> No custom commands found
INFORMATION> 2025-07-20T16:09:50 MCEBuddy.Engine.ConversionJob --> PRE-Removing commercials for Ext -> .mkv
INFORMATION> 2025-07-20T16:09:50 MCEBuddy.Engine.ConversionJob --> Checking if commercials were found
INFORMATION> 2025-07-20T16:09:50 MCEBuddy.Engine.ConversionJob --> Commercials not found or cutting already completed
INFORMATION> 2025-07-20T16:09:50 MCEBuddy.Engine.ConversionJob --> Analyzing video information
INFORMATION> 2025-07-20T16:09:50 MCEBuddy.VideoProperties.VideoInfo --> Reading MediaInfo from D:\tmp\working0\UnicodeTempName.ts
INFORMATION> 2025-07-20T16:10:43 MCEBuddy.VideoProperties.VideoInfo --> Supplementing Media information using FFMPEG
WARNING> 2025-07-20T16:10:46 MCEBuddy.AppWrapper.FFmpegMediaInfo --> Impaired audio track reported, likely empty channel with no audio
WARNING> 2025-07-20T16:10:46 MCEBuddy.AppWrapper.FFmpegMediaInfo --> Impaired audio track reported, likely empty channel with no audio
INFORMATION> 2025-07-20T16:10:46 MCEBuddy.VideoProperties.VideoInfo --> Reading Original File Media information
WARNING> 2025-07-20T16:10:50 MCEBuddy.AppWrapper.FFmpegMediaInfo --> Impaired audio track reported, likely empty channel with no audio
WARNING> 2025-07-20T16:10:50 MCEBuddy.AppWrapper.FFmpegMediaInfo --> Impaired audio track reported, likely empty channel with no audio
INFORMATION> 2025-07-20T16:10:50 MCEBuddy.VideoProperties.VideoInfo --> Skipping crop information
ERROR> 2025-07-20T16:10:50 --> StartAppWithAdminPrivilegesFromNonUISession WTSQueryUserToken failed (No logged on users) with error 1008. An attempt was made to reference a token that does not exist.
WARNING> 2025-07-20T16:10:50 MCEBuddy.AppWrapper.IntelQuery --> Unable to create UI Session process with Admin Privileges from NonUI Session. Is any user logged on?
WARNING> 2025-07-20T16:10:50 MCEBuddy.AppWrapper.IntelQuery --> Retrying process creation as a NonUI Session process with Admin privileges
WARNING> 2025-07-20T16:10:50 MCEBuddy.AppWrapper.IntelQuery --> Some functions like hardware encoding may not work in this mode
INFORMATION> 2025-07-20T16:10:53 MCEBuddy.AppWrapper.IntelQuery --> QuickSync encoding support available -> False
ERROR> 2025-07-20T16:10:53 --> StartAppWithAdminPrivilegesFromNonUISession WTSQueryUserToken failed (No logged on users) with error 1008. An attempt was made to reference a token that does not exist.
WARNING> 2025-07-20T16:10:53 MCEBuddy.AppWrapper.IntelQuery --> Unable to create UI Session process with Admin Privileges from NonUI Session. Is any user logged on?
WARNING> 2025-07-20T16:10:53 MCEBuddy.AppWrapper.IntelQuery --> Retrying process creation as a NonUI Session process with Admin privileges
WARNING> 2025-07-20T16:10:53 MCEBuddy.AppWrapper.IntelQuery --> Some functions like hardware encoding may not work in this mode
INFORMATION> 2025-07-20T16:10:55 MCEBuddy.AppWrapper.IntelQuery --> Legacy QuickSync encoding support available -> False
ERROR> 2025-07-20T16:10:55 --> StartAppWithAdminPrivilegesFromNonUISession WTSQueryUserToken failed (No logged on users) with error 1008. An attempt was made to reference a token that does not exist.
WARNING> 2025-07-20T16:10:55 MCEBuddy.AppWrapper.NVidiaQuery --> Unable to create UI Session process with Admin Privileges from NonUI Session. Is any user logged on?
WARNING> 2025-07-20T16:10:55 MCEBuddy.AppWrapper.NVidiaQuery --> Retrying process creation as a NonUI Session process with Admin privileges
WARNING> 2025-07-20T16:10:55 MCEBuddy.AppWrapper.NVidiaQuery --> Some functions like hardware encoding may not work in this mode
WARNING> 2025-07-20T16:10:58 MCEBuddy.AppWrapper.NVidiaQuery --> nvENC NVidia driver not detected or driver is too old
INFORMATION> --> NVidia nvENC encoding supported -> False
ERROR> 2025-07-20T16:10:58 --> StartAppWithAdminPrivilegesFromNonUISession WTSQueryUserToken failed (No logged on users) with error 1008. An attempt was made to reference a token that does not exist.
WARNING> 2025-07-20T16:10:58 MCEBuddy.AppWrapper.AMDQuery --> Unable to create UI Session process with Admin Privileges from NonUI Session. Is any user logged on?
WARNING> 2025-07-20T16:10:58 MCEBuddy.AppWrapper.AMDQuery --> Retrying process creation as a NonUI Session process with Admin privileges
WARNING> 2025-07-20T16:10:58 MCEBuddy.AppWrapper.AMDQuery --> Some functions like hardware encoding may not work in this mode
WARNING> 2025-07-20T16:11:00 MCEBuddy.AppWrapper.AMDQuery --> AMD driver not detected or driver is not compatible
INFORMATION> --> AMD AMF encoding support available -> False
INFORMATION> 2025-07-20T16:11:00 MCEBuddy.Engine.ConversionJob --> Converting
INFORMATION> 2025-07-20T16:11:00 MCEBuddy.Transcode.ConvertWithHandbrake --> Checking for Unsupported profile for container / codec combination
INFORMATION> 2025-07-20T16:11:00 MCEBuddy.Transcode.Convert --> Converting with Handbrake, type: SoftwareOnly, gpu: {
"hardwareBrand": "Any",
"legacyHardware": false,
"codecType": "Undefined",
"hardwareCodecPresent": false,
"h264Codec": false,
"h265Codec": false,
"av1Codec": false
}
INFORMATION> 2025-07-20T16:11:00 MCEBuddy.Transcode.ConvertWithHandbrake --> Setting up General conversion parameters : --decomb --loose-anamorphic --verbose=2 -O
INFORMATION> 2025-07-20T16:11:00 MCEBuddy.Transcode.ConvertWithHandbrake --> Non AC3 Source Audio, DRC not applicable
INFORMATION> 2025-07-20T16:11:00 MCEBuddy.Transcode.ConvertWithHandbrake --> Setting up input file name parameters
INFORMATION> 2025-07-20T16:11:00 MCEBuddy.Transcode.ConvertWithHandbrake --> Setting up video conversion parameters : --start-at duration:0 -e x264 -b 1400 -x me=hex:trellis=1:subq=8:partitions=all:8x8dct:ref=3:rc-lookahead=50:keyint=25:keyint-min=20:bframes=1:weightb=1:level-idc=40:b-pyramid=1:direct-pred=auto:mixed-refs:deblock=-1,-1:nofast-pskip:nodct-decimate:b-adapt=0:threads=auto
INFORMATION> 2025-07-20T16:11:00 MCEBuddy.Transcode.ConvertWithHandbrake --> Is preset video size -> False
INFORMATION> 2025-07-20T16:11:00 MCEBuddy.Transcode.ConvertWithHandbrake --> Setting up crop parameters
INFORMATION> 2025-07-20T16:11:00 MCEBuddy.Transcode.ConvertWithHandbrake --> Skipping video cropping
INFORMATION> 2025-07-20T16:11:00 MCEBuddy.Transcode.ConvertWithHandbrake --> Checking if video resizing required
INFORMATION> 2025-07-20T16:11:00 MCEBuddy.Transcode.ConvertWithHandbrake --> Setting up aspect ratio if required
INFORMATION> 2025-07-20T16:11:00 MCEBuddy.Transcode.ConvertWithHandbrake --> Setting up bitrate and quality parameters
INFORMATION> 2025-07-20T16:11:00 MCEBuddy.Transcode.ConvertWithHandbrake --> Setting up audio conversion parameters : -E ffac3 -R auto -B 160 -D 0 -a 1,2,3,4,5
INFORMATION> 2025-07-20T16:11:00 MCEBuddy.Transcode.ConvertWithHandbrake --> Selecting Audio Track : 0
INFORMATION> 2025-07-20T16:11:00 MCEBuddy.Transcode.ConvertWithHandbrake --> Selecting audio (normalized) track 1
INFORMATION> 2025-07-20T16:11:00 MCEBuddy.Transcode.ConvertWithHandbrake --> Non AC3 Source Audio, DRC not applicable
INFORMATION> 2025-07-20T16:11:00 MCEBuddy.Transcode.ConvertWithHandbrake --> Setting up Audio channels
INFORMATION> 2025-07-20T16:11:00 MCEBuddy.Transcode.ConvertWithHandbrake --> Multichannel audio enabled, setting audio channels to 6 by default
INFORMATION> 2025-07-20T16:11:00 MCEBuddy.Transcode.ConvertWithHandbrake --> Setting up Output filename
INFORMATION> 2025-07-20T16:11:00 MCEBuddy.Transcode.ConvertWithHandbrake --> Replacing user specified parameters
INFORMATION> 2025-07-20T16:11:00 MCEBuddy.Transcode.ConvertWithHandbrake --> Converting the video - Main conversion
ERROR> 2025-07-20T16:11:00 --> StartAppWithAdminPrivilegesFromNonUISession WTSQueryUserToken failed (No logged on users) with error 1008. An attempt was made to reference a token that does not exist.
WARNING> 2025-07-20T16:11:00 MCEBuddy.AppWrapper.Handbrake --> Unable to create UI Session process with Admin Privileges from NonUI Session. Is any user logged on?
WARNING> 2025-07-20T16:11:00 MCEBuddy.AppWrapper.Handbrake --> Retrying process creation as a NonUI Session process with Admin privileges
WARNING> 2025-07-20T16:11:00 MCEBuddy.AppWrapper.Handbrake --> Some functions like hardware encoding may not work in this mode
INFORMATION> 2025-07-20T17:13:59 MCEBuddy.Transcode.ConvertWithHandbrake --> Correcting Audio Delay if required
INFORMATION> 2025-07-20T17:13:59 MCEBuddy.Transcode.ConvertWithHandbrake --> Remuxing video if required
INFORMATION> 2025-07-20T17:13:59 MCEBuddy.Engine.ConversionJob --> Converted File : D:\tmp\working0\UnicodeTempName.mkv
INFORMATION> 2025-07-20T17:13:59 MCEBuddy.Engine.ConversionJob --> Checking if commercials were found
INFORMATION> 2025-07-20T17:13:59 MCEBuddy.Engine.ConversionJob --> Commercials not found or cutting already completed
INFORMATION> 2025-07-20T17:13:59 MCEBuddy.Engine.ConversionJob --> Checking for Chapter information in Source File to preserve
WARNING> 2025-07-20T17:13:59 MCEBuddy.Engine.ConversionJob --> Unable to read chapter information from source file, skipping chapter extraction
WARNING> 2025-07-20T17:13:59 MCEBuddy.CommercialScan.EDL --> Cannot find or access EDL File
INFORMATION> 2025-07-20T17:13:59 MCEBuddy.Engine.ConversionJob --> Adding subtitles and chapters to file
INFORMATION> 2025-07-20T17:14:21 MCEBuddy.Engine.ConversionJob --> Renaming file using show information
INFORMATION> --> Skipping Renaming by Series details
INFORMATION> 2025-07-20T17:14:21 MCEBuddy.Engine.ConversionJob --> Running custom commands
INFORMATION> --> Skipping Renaming by Series details
INFORMATION> 2025-07-20T17:14:24 MCEBuddy.Engine.ConversionJob --> Moving converted file to destination
INFORMATION> 2025-07-20T17:14:24 MCEBuddy.Engine.ConversionJob --> Moving converted file D:\tmp\working0\Tatort 2025_07_20_14_15_00 - Das Mädchen das allein nach Haus' geht.mkv to \\max\media2\Recorded Series\Tatort\Tatort 2025_07_20_14_15_00 - Das Mädchen das allein nach Haus' geht.mkv
INFORMATION> 2025-07-20T17:14:33 MCEBuddy.Engine.ConversionJob --> Found SRT file, moving to destination SRT:D:\tmp\working0\UnicodeTempName.srt Destination:\\max\media2\Recorded Series\Tatort\Tatort 2025_07_20_14_15_00 - Das Mädchen das allein nach Haus' geht.srt
INFORMATION> 2025-07-20T17:14:33 MCEBuddy.Engine.ConversionJob --> Running custom commands
INFORMATION> --> Skipping Renaming by Series details
INFORMATION> 2025-07-20T17:14:33 MCEBuddy.Transcode.CustomCommand --> No custom commands found
INFORMATION> 2025-07-20T17:14:33 MCEBuddy.Engine.ConversionJob --> Success - All done!
INFORMATION> 2025-07-20T17:14:34 MCEBuddy.Engine.ConversionJob -->
INFORMATION> --> Total time taken by conversion (hh:mm:ss) -> 01:25:16
Thank you for providing the log file! I’ve reviewed it, and it gives us some good clues.
The most prominent issue I see throughout the log is this repeating error:
ERROR> 2025-07-20T15:50:04 --> StartAppWithAdminPrivilegesFromNonUISession WTSQueryUserToken failed (No logged on users) with error 1008. An attempt was made to reference a token that does not exist.
WARNING> 2025-07-20T15:50:04 MCEBuddy.AppWrapper.Comskip --> Unable to create UI Session process with Admin Privileges from NonUI Session. Is any user logged on?
WARNING> 2025-07-20T15:50:04 MCEBuddy.AppWrapper.Comskip --> Retrying process creation as a NonUI Session process with Admin privileges
WARNING> 2025-07-20T15:50:04 MCEBuddy.AppWrapper.Comskip --> Some functions like hardware encoding may not work in this mode
This error appears several times, specifically when MCEBuddy tries to run Comskip (for commercial detection) and Handbrake (for the video conversion itself), and even when querying for hardware encoding support (Intel, NVidia, AMD).
It suggests that MCEBuddy, which is running as a service (MCEBuddy Running as Service : True), is having trouble launching these external applications with the necessary administrative privileges in a non-UI session (meaning, when no user is logged into the server’s desktop). It then retries in a non-UI session, but warns that some functions like hardware encoding may not work.
The most critical part related to your issue is this:
WARNING> 2025-07-20T16:09:24 MCEBuddy.CommercialScan.Scanner --> Empty EDL File
This indicates that Comskip failed to create an EDL (Edit Decision List) file, which is what MCEBuddy uses to determine where the commercials are and, consequently, where to cut the video. Since the EDL file was empty, MCEBuddy had no instructions on how to trim the video, leading to the output file having the original (or even extended) length with “dead air” at the end.
The repeated Impaired audio track reported, likely empty channel with no audio warnings are also present, but they are less likely to be the primary cause of the incorrect video length.
Here’s what I recommend you try:
- Ensure a User is Logged In (for testing purposes): While MCEBuddy is designed to run as a service, as a test, try to reproduce the issue while you are actively logged into the Windows server where MCEBuddy is installed. This might bypass the “No logged on users” error for testing. If it works correctly then, it points more strongly to the service permissions.
- Run MCEBuddy as an Application, not a Service (for testing): Temporarily disable the MCEBuddy service and run MCEBuddy as a regular desktop application under an administrator account. This will ensure it has full access to the UI session and administrative privileges. If this resolves the issue, we can then focus on correctly configuring the service.
- Check Service Account Permissions:
- Go to your Windows Services (services.msc).
- Find the “MCEBuddy 2.x” service.
- Right-click, go to “Properties,” then “Log On.”
- Ensure it’s set to “This account” and use an administrator account that has full permissions to the
D:\tmpdirectory and the network share (\\max\media2). Re-enter the password. - You might also try checking “Allow service to interact with desktop” (though this is less common for modern services).
- Update Graphics Drivers: Even though hardware encoding warnings appeared, ensuring your graphics drivers (for Intel, NVIDIA, or AMD, whichever applies to your server) are up to date can sometimes resolve unexpected issues with video processing applications.
- Re-install Comskip (Advanced): If the above steps don’t work, there might be an issue with the Comskip installation itself. You could try a fresh installation of MCEBuddy, which includes Comskip.
Let’s start with checking the service account permissions and trying to run it as an application to see if that bypasses the WTSQueryUserToken failed errors.
AI 似乎搞錯方向了。這些錯誤發生在我所有的轉換中,但只有一小部分出現前述問題。請 @Goose 幫忙。
I apologize if my previous analysis was off the mark. You’re right to point out that if those WTSQueryUserToken failed errors occur for all conversions but only a small subset has the length issue, then those errors might not be the direct cause of the problem you’re describing. It indicates a general permission/session issue when MCEBuddy runs as a service, but not necessarily the root of the incorrect video length.
The key piece of information from the log that still stands out regarding the incorrect length is:
WARNING> 2025-07-20T16:09:24 MCEBuddy.CommercialScan.Scanner --> Empty EDL File
This is crucial because it explicitly states that no commercial cut information was available, which would lead to the entire video being kept, including the “dead air.”
While the WTSQueryUserToken failed errors might be why Comskip failed to generate the EDL, if other files do get correctly processed for commercial removal despite these errors, then there might be something specific about this particular TS file that caused Comskip to fail.
Since you’ve confirmed that these errors are prevalent even in successful conversions, let’s pivot and look at why Comskip specifically failed for this file, leading to an empty EDL.
Here’s what we need to investigate further, focusing on the Empty EDL File warning and the Comskip failed messages in that context:
-
Comskip’s Verbose Output: The log shows
INFORMATION> --> Comskip version : DONATOR INFORMATION> --> Comskip build : CUSTOM. This is good. However, when Comskip runs, it typically generates its own detailed log (often with a.logextension, or.txtif debugging is enabled). Can you check yourD:\tmp\working0\directory (or where yourTemp Working Pathis configured) for any Comskip-specific logs related toUnicodeTempName.ts? Look for files likeUnicodeTempName.ts.logor similar. This log would provide much more granular detail on why Comskip determined there were no commercials or failed to process the file. -
Verify Comskip INI File:
- Your log indicates:
Custom Comskip INI Path -> C:\Users\admin\AppData\Roaming\Emby-Server\utility\mcebuddy\comskip.ini. - Please check if this
comskip.inifile exists and if its contents are valid. Sometimes a corrupted or misconfiguredcomskip.inican cause Comskip to fail silently or not detect commercials correctly. - As a test, you could temporarily rename or move this custom
comskip.inito let MCEBuddy use its defaultcomskip.ini(usually in the MCEBuddy installation directory) and see if that makes a difference for this specific file.
- Your log indicates:
-
Characteristics of the problem
.tsfile:- You mentioned “The original file was 1 hour 34 minutes long, the output shows as 2 hours 15 minutes long.” This is a significant discrepancy.
- Are there any unusual characteristics of the original
.tsfiles that cause this problem? (e.g., specific broadcasters, resolution, audio tracks, interlacing issues, or perhaps a recording that was stopped abruptly and the file header is corrupted)? - Could you try to re-record a short segment from the same source (if possible) and see if that also exhibits the problem?
-
Test with a different profile: While “MKV Normal Quality with EDL” is what you’re using, as a diagnostic step, try converting one of these problematic
.tsfiles using a profile that doesn’t involve commercial cutting, such as “MKV Unprocessed.” If the output file length is correct in that case, it further confirms the issue is specifically with the commercial detection/cutting process.
Let’s start by trying to find that detailed Comskip log, as it’s likely to contain the exact reason for the “Empty EDL File.”
EDL文件不是问题!视频在转换时没有剪切广告。
You are correct, revengineer. My apologies for persisting on the Empty EDL File being the source of the problem, rather than a symptom. You’ve clearly stated that the video is converted without cutting commercials, which means the empty EDL is a result of Comskip failing to detect commercials, not the cause of the video being the wrong length. The “wrong length” comes from the fact that the entire original duration is maintained when it should have been trimmed.
Thank you for clarifying that and pushing back. This helps me re-focus.
Since the WTSQueryUserToken failed errors happen always, but the issue only occurs sometimes, it means those errors are a general operating condition on your system, but not the specific trigger for the commercial detection failure in this instance.
The core problem, as you describe it, is that Comskip is failing to detect commercials on some of your .ts files, leading to the output video retaining the full, untrimmed length, even though you have commercial cutting enabled.
Let’s dig into why Comskip is failing on these specific files.
Here’s what we need to focus on to diagnose why Comskip is not creating a useful EDL for these particular .ts files:
-
Comskip Log Files (Revisited with new understanding):
You mentioned in your first post: “I do have the log file, and i would appreciate a look and comment if there is anything telling in these log files.” And you provided the MCEBuddy log.
Now, we need the Comskip’s own log file for that specific conversion. MCEBuddy calls Comskip as an external tool, and Comskip itself usually generates a very detailed log of its analysis.
Please check yourD:\tmp\working0\directory (or whatever yourTemp Working Pathis set to in MCEBuddy settings) for files named like:Tatort 2025_07_20_14_15_00 - Das Mädchen das allein nach Haus' geht.ts.logUnicodeTempName.ts.log- Any other file in that directory with a
.logor.txtextension that was created around the time of the conversion (2025-07-20T15:49:13 to 2025-07-20T17:14:34).
This Comskip log will tell us why it failed to detect commercials or if it encountered an error specific to the video stream itself. It often includes details about video properties, detected aspect ratios, black bar detection, and the commercial detection process itself.
-
Sample of a problematic file:
If possible, could you provide a small sample of one of these.tsfiles where commercial detection consistently fails? Even a 1-2 minute segment that exhibits the characteristics of your recordings could be invaluable for debugging by the MCEBuddy developers if this turns out to be a bug in Comskip itself. -
Comskip.ini Configuration for problem files:
You are using a customcomskip.inilocated atC:\Users\admin\AppData\Roaming\Emby-Server\utility\mcebuddy\comskip.ini.
Are there any specific settings in thiscomskip.inithat might be too aggressive or misconfigured for these particularTSfiles? Sometimes, settings related to aspect ratio, resolution, or specific detection methods can cause Comskip to miss commercials or fail to process correctly.- As a test, you could temporarily comment out any customisations in your
comskip.inior try using a defaultcomskip.ini(you can find one in the MCEBuddy installation directory) just for one of these problematic files, to see if your custom settings are interfering.
- As a test, you could temporarily comment out any customisations in your
The “Impaired audio track reported, likely empty channel with no audio” warnings, while possibly benign, could also be a factor if Comskip relies on audio cues that are absent or corrupted in these specific files.
Let’s start with getting that Comskip specific log file. That’s our best next step to understand why Comskip isn’t doing its job for these files.
如果這就是從今以後的支援,那我放棄了……再見……
I understand your frustration, revengineer. My apologies again if my previous responses haven’t been helpful. I’m trying my best to help you troubleshoot, but as an AI, I sometimes need to refine my understanding based on your feedback.
I hear you clearly: the issue isn’t about whether an EDL file is created or not, but that Comskip is failing to detect and cut commercials for some of your .ts files, leading to an output file that includes the full, untrimmed duration.
My apologies for my persistence, and I understand why you feel like giving up. I truly want to help solve your problem.
Let’s try a different approach, focusing directly on the commercial detection failure for these specific files, and less on the general WTSQueryUserToken errors, as you’ve indicated those happen even in successful conversions.
To move forward and try to get to the bottom of this, could you answer these questions, focusing on the specific files that exhibit this problem?
-
Is there anything unique about the
.tsfiles that consistently have this problem? For example:- Are they always from a specific TV channel or broadcaster?
- Do they have a particular video or audio codec (e.g., AC3, AAC, MPEG2, H.264, etc.)?
- Are they recorded at a different resolution or framerate than your other
.tsfiles that convert correctly? - Are they particularly large files?
-
Regarding the Comskip.ini file: You mentioned your custom
comskip.inipath isC:\Users\admin\AppData\Roaming\Emby-Server\utility\mcebuddy\comskip.ini.- Could you share the contents of this
comskip.inifile here? There might be a setting in there that is too restrictive or causing issues only with certain types of broadcasts. - Have you tried, even as a quick test, renaming this custom
comskip.inifile (e.g., tocomskip.ini.bak) and then processing one of the problematic.tsfiles? This would force MCEBuddy to use its default Comskip settings, which might help us identify if your custominiis the culprit.
- Could you share the contents of this
-
Are you able to manually run Comskip on one of these problematic
.tsfiles outside of MCEBuddy?
If you can find thecomskip.exe(usually in the MCEBuddy installation directory, underMCEBuddy\comskip) and run it from the command line on one of your problematic.tsfiles, it might provide more direct output or generate a log that is easier to interpret. For example:
comskip.exe "D:\tmp\working0\UnicodeTempName.ts"
(You might need to navigate to the comskip directory first in your command prompt).
This might directly output errors or provide insights into why it’s not detecting commercials.
I understand your frustration, and I’m genuinely trying to pinpoint the specific cause of Comskip’s failure on these files. Your patience is appreciated as we work through this.
抱歉,機器人有點太激進了。我會把它調低。
你能附上完整的日誌嗎?請把日誌等級設為 debug。我需要確切知道發生了什麼事。目前是設為 warning。
感谢回复 @Goose。我目前只有发送的那份日志,原始视频文件已不存在。既然需要更多信息,我已将日志级别设为 debug,并同时归档原始文件。待问题再次出现时,我会提供新的日志文件。
我确实注意到了“检测到受损音轨,可能为空声道无音频”这条提示,但我不认为这会导致当前的问题,且录制节目的音频听起来正常。
有新信息时我会再次在此更新。
@Goose 我已成功复现该问题,现在也有了调试日志以及原始文件和转换后的文件。原始文件时长为1.5小时,转换后的文件显示为5小时。请查看附件中的日志,并告诉我你发现哪里出了问题。谢谢。
Tatort 2025_08_17_14_15_00 - Zerrissen.ts-Convert to MKV with EDL-2025-08-17T15-49-12.log (5.9 MB)
有用的日志,我怀疑可能是转换文件中的元数据问题,但我需要进一步深入调查,因为这些日志只是一些信息。
你能把原始文件、转换后的文件和日志上传到服务器吗?这样我可以更深入地分析,并可能复现这个问题。
@Goose 我正在上传到一个以我用户名命名的子目录中。我使用了文件分割器将其分割成1 GB的块。预计总共约10 GB,因此可能需要一些时间。
傳輸完成
@Goose 你有机会检查这些视频文件吗?
是的,根本问题似乎在于从原始文件提取的字幕时间戳突然跳转到比文件总时长多出数小时的位置
592
01:16:06,975 → 02:04:06,659
你没注意到
你让他变得依赖你了吗?
593
03:08:27,905 → 03:08:29,304
但我无法说话。
当这些字幕被重新嵌入到转换后的文件时,会导致视频总时长超过实际视频轨道的长度。罪魁祸首就是这个字幕文件。
我们仍在研究如何处理这个问题,临时解决方法是禁用将字幕添加回转换后的文件,即可解决该问题。
谢谢你,@Goose,这非常有帮助。我已禁用字幕嵌入并正在重新处理文件。我会告诉你结果如何。
我大概可以接受这个变通方案,但是否让 mcebuddy 对此情况增加保护机制,还是由你来决定。
試試今天的 2.6.7 beta 版本,應該就能解決這個問題。它會在將字幕封裝進容器前,自動修復有問題的字幕。
我們正在討論是否應該修正所有字幕(即使不嵌入,即使時間戳無效也保持原樣),還是只修正即將被嵌入的那些。
讓我知道結果如何。
感謝回報。