我有兩集來自同一節目/來源、使用相同 profile 與 comskip.ini 的檔案,廣告掃描時間卻天差地遠。這個 profile 只是做測試用,所以設定成不轉碼。原始檔案大小差不多,看起來也沒問題。有什麼原因會讓特定檔案花上一小時以上?
「正常」的 log 檔
King of the Hill S05E01 2000-10-01 The Perils of Polling 2023-08-08-1300-wk.mpg-Manual - No crop-2023-08-09T09-04-55.log (518.5 KB)
異常緩慢的 log 檔
[King of the Hill S05E02 2000-11-05 The Buck Stops Here 2023-08-08-1330-wk.mpg-Manual - No crop-2023-08-09T09-09-52.log|attachment](upload://jsjlOvLBTCLQau4hI dynTdsvMUW.log) (1.6 MB)
編輯:進一步測試後,發現內建 profile 沒這問題。目前我用的是兩個自訂 profile,但不知道為什麼在某些錄影檔會觸發 FPS 問題,其他則不會。
comskip log 裡有大量這幾行:
Frame Rate set to 119.880 f/s
DFps[1]= 59.940 f/s
RFps[1]= 59.940 f/s
AFps[1]= 59.940 f/s
Frame Rate corrected to 59.940 f/s
編輯 #2:不太可能是 profile 的問題。雖然換 profile 讓其中一個有問題的錄影檔正常了,但大多數其他錄影檔還是一樣慢。
這是我的兩個自訂 profile,一個用 NVENC 編碼,另一個只產生 comskip log 而不編碼。
[HEVC MKV NVENC 34cq]
Description=HEVC in MKV hard set to use NVidia.
order=handbrake
DisableEncoderReordering=true
handbrake-general=--decomb --auto-anamorphic --verbose=2
handbrake-video=--start-at duration:0 -e nvenc_h265_10bit --encoder-preset slowest -q 34 --encopts="rc-lookahead=32:temporal-aq=1:spatial_aq=1"
handbrake-audio=--aencoder copy --audio-copy-mask ac3,eac3,truehd,dts,dtshd,mp3,flac --audio-fallback ffac3 -R auto
handbrake-audioac3=--aencoder copy --audio-copy-mask aac,ac3,eac3,truehd,dts,dtshd,mp3,flac -R auto
handbrake-ext=.mkv
handbrake-audiodelay=skip
handbrake-UsingHardwareEncoding=true
handbrake-DisableSoftwareEncoderFallback=true
AllowAllCopyRemuxing=true
CustomCommandPath=C:\Windows\System32\curl.exe
CustomCommandParameters= -XPUT http://192.168.50.83:8089/dvr/pruner/deleted
CustomCommandHangPeriod=30
CustomCommandCritical=false
CustomCommandUISession=false
CustomCommandShowWindow=false
CustomCommandExitCodeCheck=false
PostCustomCommandPath=C:\Windows\System32\cmd.exe
PostCustomCommandParameters="/c del "%destinationpath%\%convertedfilename%.srt""
PostCustomCommandHangPeriod=60
PostCustomCommandCritical=false
PostCustomCommandUISession=false
PostCustomCommandShowWindow=false
PostCustomCommandExitCodeCheck=false
[MP4 Unprocessed LOGS]
Description=Logs Only
order=ffmpeg,copy
copy-ext=.ts
copy-remuxto=.mkv
copy-audiodelay=skip
ffmpeg-general=-threads 0
ffmpeg-video=-ss 0 -vcodec copy -map 0:v -sn
ffmpeg-audio=-acodec copy -map 0:a
ffmpeg-audioac3=-acodec copy -map 0:a
ffmpeg-ext=.mkv
ffmpeg-audiodelay=skip
PreConversionCommercialRemover=true
FixedResolution=true
SkipCropping=true
AutoDeinterlace=false
DisableEncoderReordering=true
CopyLogFile=true
編輯 #3:問題出在 MCEBuddy 內建的那個較舊版 comskip。4、5 年前就有類似問題被討論過,見這裡。