
我試圖僅加速視頻中的某些幀,而不將其分成幾個部分,這是我用來執行此操作的程式碼
AVISource("C:\Users\me\Desktop\source_10FPS.avi") # get the 10 fps video source
b= Trim(0,100) # trim the first 10 seconds
a= Trim(100,200).AssumeFPS(14, sync_audio=TRUE) # trim and speed it up
c= Trim(200,0).AssumeFPS(10, 1, true) #trim and go back to original speed
return (a+b+c) # combine the 3 Trims
但我收到“ video framerate doesn't match
”錯誤
任何幫助,將不勝感激
答案1
如果您使用剪輯串聯,則必須為串聯鏈中的每個剪輯提供相同的格式和幀速率