Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected void Upload_Click(object sender, EventArgs e)
- {
- //File Uploads to Server
- Thread t1 = new Thread(
- unused => compressVideo(Video_Path, Final_Path,User_id)
- );
- t1.Start();
- }
- public static void compressVideo(string Video_Path, string Final_Path,string UID)
- {
- var ffMpeg = new NReco.VideoConverter.FFMpegConverter();
- ffMpeg2.ConvertProgress += (o, args) =>
- {
- //SignalR calls.Doing this to update the ui
- };
- ffMpeg.ConvertMedia(Video_Path, Final_Path, NReco.VideoConverter.Format.mp4);
- File.Delete(Video_Path);
- _waitHandle.Set();
- }
- ffMpeg.ConvertMedia(Video_Path, Final_Path, NReco.VideoConverter.Format.mp4);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement