Path of exe that will be executed, only for 'filebuffer' it will be 'flvtool2. To convert without re-encoding video, choose 'Copy' (not recommended). String AppPath = Request.PhysicalApplicationPath System.IO.FileInfo a = new System.IO.FileInfo(Server.MapPath(outPutFile)) OutPutFile = '~/OriginalVideo/' + fileName Onvico can help convert Youtube video to mp4. Just use the 3 steps above, and Onvico will do all it can to help you convert video from Youtube to save for access offline later. Here you can easily convert Youtube video to mp4. String ext = fileName.Substring(dotPos + 1) įileName = namewithoutext + j + '.' + ext įilepath = Server.MapPath('~/OriginalVideo/' + fileName) Onvico is universal online video converter. String namewithoutext = fileName.Substring(0, dotPos) String filepath = Server.MapPath('~/OriginalVideo/' + fileName) mp4 you will get your answer private bool ReturnVideo(string fileName)ĪppPath = Request.PhysicalApplicationPath