2
我已經編寫了使用NReco庫剪輯視頻的功能。NReco視頻剪輯
public void SplitVideo(string SourceFile,string DestinationFile,int StartTime,int EndTime)
{
var ffMpegConverter = new FFMpegConverter();
ffMpegConverter.ConvertMedia(SourceFile, null, DestinationFile, null,
new ConvertSettings()
{
Seek = StartTime,
MaxDuration = (EndTime-StartTime), // chunk duration
VideoCodec = "copy",
AudioCodec = "copy"
});
}
這是工作,並給我一個視頻,從視頻開始到我分配的最長持續時間。它不是從搜尋值位置開始到最大持續時間。有人能幫我解決這個問題嗎?
更多樣品使用*** FFMpegConverter ***? –