public ffmpegMerge(string uri, string name, ffmpegMergeCallBack cb) { this.uri = uri.Replace("\\", "/"); this.filename = name.Replace("\\", "/"); this.callBack = cb; status = Status.Paused; }
void m3u8Merge() { if (!automerge) { return; } ffmpegMergeCallBack cb = new ffmpegMergeCallBack(ffmpegMergeCallBackReceived); ffmpegMerge ffmpegmerge = new ffmpegMerge(@".\Downloads\" + m3u8.name + "\\" + m3u8.name + ".m3u8", @".\Out\" + m3u8.name + ".mp4", cb); ffmpegmerge.Start(); }