所有转换的 MP4 到 MKV 文件开头都有 3 秒视频冻结

我在使用下面的 MKV Unprocessed 設定檔,將 HEVC MP4 檔案轉成 MKV 時遇到問題。播放輸出檔案時,畫面會在大約第 3 秒凍結,直到音訊追上為止。我已在 MPC 與 VLC 上驗證過。原始 MP4 不會發生這種情況,若我執行 ffmpeg -i <inputMP4> -c copy <outputMKV> 也正常。

設定檔:

[MKV Unprocessed]
Description=No video processing, just changing the container to MKV.  
order=ffmpeg,copy
AllowAllCopyRemuxing=true
copy-ext=.ts
copy-remuxto=.mkv
copy-audiodelay=skip
ffmpeg-general=-threads 0 -v verbose
ffmpeg-video=-c:v copy -map 0:v -sn
ffmpeg-audio=-c:a copy -map 0:a
ffmpeg-audioac3=-c:a copy -map 0:a
ffmpeg-ext=.mkv
ffmpeg-audiodelay=skip
PreConversionCommercialRemover=true
FixedResolution=true
SkipCropping=true
AutoDeinterlace=false
DisableEncoderReordering=true
PreCustomCommandPath="C:\Program Files\PowerShell\7\pwsh.exe"
PreCustomCommandParameters="\\NAS\Video\Temp\Subtitle-CopyVerify.ps1" -SourcePath "%originalfilepath%" -SourceFileBaseName "%originalfilename%" -DestinationPath "%destinationpath%" -DestinationFileBaseName "%convertedfilename%"
PreCustomCommandPeriod=0
PreCustomCommandCritical=false
PreCustomCommandUiSession=false
PreCustomCommandUiSession=false
PreCustomCommandShowWindows=false
PreCustomCommandExitCodeCheck=false

PreCustomCommand 只是為了根據副檔名檢查 srt 或 vtt 是否有效,並將其移至目的地,因為我不需要 MCEBuddy 處理它們。

New Girl (2011) - S01E01 - Pilot.mp4-Orig-MKV-Stream_Default-2024-07-15T20-47-37.log (701.0 KB)

等我搞定 FTP 後會上傳範例檔案。

这个问题我已经遇到很多年了。当 MCEbuddy 把文件从 mkv 转成 mp4 时,会出现大约 3 到 4 秒的视频延迟:音频正常播放,但画面一开始会卡住 3 到 4 秒。至今仍未找到解决办法。

Try checking the Skip remuxing option in the Conversion task → Advanced options

You can now upload the original video, our server was down for maintenance

这解决了问题。谢谢