Click here to Skip to main content
15,887,251 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In my asp.net application when i'm going to upload any size of video need to decrease(reduce) the size of video and save decrease video on folder, any one have example code please help me.
Thanks advance
Posted
Updated 8-Feb-16 2:38am
v2
Comments
F-ES Sitecore 8-Feb-16 8:40am    
Have you googled for a solution yet? Chances are there are libraries out there that do this, as mentioned below though, you might be surprised at what a time-intensive process this is going to be so you might need to re-think how you intend on doing this (ie use a queue mechanism to resize the videos via a background task).
Chenna Gadicherla 8-Feb-16 8:44am    
ya i already googled to much time for this solution but i didn't getting any single solution even now, why no one give proper solution, is there no solution for this one?

1 solution

Don't.
Resizing video is a time consuming process - it uses processor and RAM like crazy, and still takes a significant amount of time. Unless you have a dedicated computer (or several) that you can queue the file conversions to, you are going to badly affect your webserver and the delivery of all the pages it serves, not just your own. Since this is a web site, it's very feasible that multiple users will upload simultaneously, and that will place an increasing load on the webserver - and the hosting service (or appropriate admin) will have strongly worded things to say about it!

If you need to restrict video size, get the client to reduce it - don't try to transcode video on the server.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900