How to reduce video size before uploading in asp.net C# -


in asp.net application when i'm going upload size of video need decrease(reduce) size of video, 1 have code please me thanks

you can not.

any reduction in video size either compression or recoding lower resolution etc.

this way beyond scope of web browser upload - unless want implement 1 or both of in javascript (!).

any size reduction have done separate step - outside of website - before uploading.

the whole question begs concept whether have understood how web pages work, in principle. there strong separation of responsibilities between web browser , server. in particular, following answer comment - funny:

okay no need instantly decrease size, before save path in database , store file in folder decrease size, save decreasing file in folder

ok, lets upload parth. how help?

  • the path local uploaders machine. c:\videos\largevideo.mpg neither video file, nor location asp.net server can access.
  • this totally not solve problem. unless user transcodes file, still on user's machine , large. saying "ok, package weights - let's write recipient address in font". not try solve problem.

only realistic solutions are:

  • provide bandwidth.
  • provide client side upload application (not webpage) user installs can not upload, can trans-coding necessary before uploading.

you stuck in 2 elements:

  • a strong client/server separation and
  • a limited runtime environment on client (javascript in web browser).

no whining , not acceptance every able change that. there no magical way "nothing convert format, type of videos accepted simple decrease file size only". called transcoding (change 1 encoding 1 - , can example change resolution when doing so) , intensive process not doable in browser.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -