Web Forms :: Compress Video Size Before Uploading Without Losing Quality
Feb 26, 2014
I am trying to upload large videos(more than 1GB) to youtube from webpage. But youtube is allowing me to upload max 8MB videos. So I want to reduce the size of the video and then upload the reduced video to youtube. So, how to reduce the video size.
I have a script which resizes images, I did not write this script, nor do I know any ASP.NET, but I have been assigned the task of fixing an issue with it!
The problem is, the resulting image from the resize appears to be of less quality than the upload, even if the file uploaded is already set to the correct size.
Uploaded image - [URL] Resized image - [URL]
The script that is doing the resizing is as follows, how to correct the issue?
I want that suppose user upload 2 MB image then from that image i want to generate 1 thumbnail image.To reduce its size , so i can get speed in loading. as my listing page contains many images.so i am getting to much loading time. SO can you tell me how can i compress image or get Thumbnail image?
I have uploaded a .jpg image and resized as Small and Large thumbnail. The small image is (135 X 173) but after resizing the small thumbnail image file size is of 40.8 KB. And mostly all images (around 64) thumbnails having file size more than 40 KB. Due to which thumbnails taking lot of time to get display.
Is there a way through which we can reduce the image file size upto 8 to 12 kb, but without effecting image quaity??
Below is the source code that i am using for resizing an image:
If FileUpload1.HasFile Then Dim stream As Stream = FileUpload1.PostedFile.InputStream Dim x As String = IO.Path.GetExtension(FileUpload1.FileName).ToLower If x = ".jpg" Or x = ".jpeg" Then Dim image As New Bitmap(stream)
I am developing an ASP.NET 3.5 web application in which I am allowing my users to upload either jpeg,gif,bmp or png images. If the uploaded image dimensions are greater then 103 x 32 the I want to resize the uploaded image to 103 x 32. I have read some blog posts and articles, and have also tried some of the code samples but nothing seems to work right.
I am totally desparate with the task of Video Conversion, uploading & streaming. I have gone through various articles, posts, blogs and code snipped but couldnt find any full working solution for that.I was advised to work with ffmpeg and i got the functionality [URL]but later i come to know that most asp.net servers (including mine) do not allow to ffmpeg on the server.
Then i look for other solutions, some are saying to convert video files manually and then upload to website (funny hannn). Some are suggesting other site which can store our video and stream from there servers .....So i am stuck now and dont know where to go. I need a complete solution of this problem. Like Users could upload a video file (of any format or at least a good number of choice for upload file format), then they click an upload button and video conversion (e.g. to .flv took place) and the output should be displayed to a user in video player (showing our own logo, not youtube logo....etc.) and thats it.I will definately appreciate all of your comments and guidence.
i am doing an task about uploading & retrive video file in asp.net. first of all tell me How Can we Upload Video files In sql server? then second one is How Can we displays that uploaded video files in my web page?
While i am Uploading Some Video Files from my asp.net website(C#) for the first time, i foud some error which i am furnishing here under
"Access to the path 'D:inetpubvhostsdemon4netsalt.comhttpdocsStudy MaterialVideo+1' is denied."
Description:An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.UnauthorizedAccessException: Access to the path 'D:inetpubvhostsdemon4netsalt.comhttpdocsStudy MaterialVideo+1' is denied.ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}ASPNET on IIS 5 or Network Service on IIS 6 and IIS 7, and the configured application pool identity on IIS 7.5) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.
i am planning to save my files in side the "
Study MaterialVideo+1, Study MaterialVideo+2, etc.. " Folders
i m uploading file using fileupload control. when i upload mp3 file with more than 4 MB size it gives error like page can not be displayed. how can i increase capasity of uploading file in my project.
Users of my C# web application can upload images. I have configured the max upload size in the web.config file to maxRequestLength="1024" and executionTimeout="180".
How can I check the upload size before uploading? (do you have examlpe or url?) Another option might be to check the dimensions?...
Some web application allow the user to crop the image at client side. Do you have an example of this or url?
I am a Bigner in asp.net c# learning. How can i create a new folder in server from my c# program. in my semester asp.net project, i want to upload video/audio files into my own newly created folder and the storing folder's name must be given by me, which means each time folder name may change during uploading time. and how can i give a picture link to that vodeo files containing in different folders and how can i play that files in the browser using a player.
I need to upload images from client to server as follows:
1. Server is passing the client a file name 2. Client is checking file extensins to ensure it's an image then issues a __dopostback to the server. 3. Server uses the FileUpload control to save the image on the server.
I have that all covered, but, if image is too large, the upload fails with the following error: 'System.Web.HttpException: Maximum request length exceeded.'
Is there a way to check file size on the client (without the use of ActievX which also errors out), before it is passed back to the server?
currently we are configured execution Timeout="1200" (The default is 110 seconds) and maxRequestLength="12288" (The default is 4096 KB)but some times users upload files above 12MB so we are getting "Maximum request length exceeded" error.we are checking the file size using client side javascript ActiveXObject object. but ActiveXObject only works in IE not in others like mozilla,crome,..Jacescript Code are
[Code]....
how can i check the file size before uploading process with support all the browser.any posiblities for checking file size before server side script/object?
i am working on an ecommerce application, user will be uploading several images of a product, instead of stripping the size (i.e the KB or MB size) after uploading it on the server, i want to strip the size of image before uploading it to the server ( bringing the size from any thing over 30KB down to 30KB) i.e on the client machine itself and then upload it to the server. i understand that this requires a download on the client machine which makes me ask the following questions :
a. can i use a java control in dotnet since java control can be used on all OSes b. is there any dotnet control that might be userfriendly to all OSes
does anyone have any sample code/tutorials on processing a video file uploaded to Azure (.mov, .3gp, .avi) and converting it to flash and also creating a thumbnail file after the video has been uploaded as a blob to Azure?
I have figured out that javascript cannot obtain the filesize of a to-be-uploaded file because it is a security risk and it is not allowed access to the clients HD. But I want to see if it is possible to get the file size before uploading the file, perhaps using AJAX.
So by looking at the requests, when you click the submit button on a form that contains a input type=file, the Request actually has the filesize inside of it, so you could therefore get the first request, cancel the request there, and send the file-size data back to the client without actually uploading the file.
I want to do this via AJAX so that it doesn't post back and also without clicking the submit button. It seems impossible to create a submit request with javascript because there is no way to get the file size. But is there a way to fake a submit? How does the submit button get the information? Is there any documentation on how the submit button actually works?