Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 Get Video file duration in Asp.net Code

Author  Topic 

seyha_moth
Yak Posting Veteran

74 Posts

Posted - 2007-03-12 : 09:07:38
Dear sir or madam

I have a problem related to getting video duration when I upload the video file because I want restrict the maximum size and time length to user. I want to set maximum file size:100MB and maximum length:10 minutes.

I look forward to hearing from you.

Thank you in advance!




seyha moth

jsmith8858
Dr. Cross Join

7423 Posts

Posted - 2007-03-12 : 10:08:57
you can check the ContentLength of the file input very easily in Asp.net (see other thread), but to verify other attributes of the file uploaded, you must have libraries installed that let you examine the file's properties to determine things like length, bit rate, etc. There is no generic "check file x to see if it is a video and then get the length" piece of code that does this for you, since there are many, many video file formats and many ways to encode video.

- Jeff
http://weblogs.sqlteam.com/JeffS
Go to Top of Page

seyha_moth
Yak Posting Veteran

74 Posts

Posted - 2007-03-12 : 22:08:54
So I can't check the video duration with asp.net code according to your above instruction.

Thank you for your reply!
Best wish.

seyha moth
Go to Top of Page

jsmith8858
Dr. Cross Join

7423 Posts

Posted - 2007-03-12 : 22:21:08
Yes. You can do it in ASP.NET. But, as I said, you need to use the proper libraries to examine the file that is uploaded. You are really, really in the wrong forum to be asking questions like this .... Please tell me: What google searches have you tried so far to assist you with this? Specifically, what key words have you tried searching for to find help?

- Jeff
http://weblogs.sqlteam.com/JeffS
Go to Top of Page

seyha_moth
Yak Posting Veteran

74 Posts

Posted - 2007-03-13 : 01:06:04
According your instruction I find with google search engine with keyword

"free component to get video duration during upload"

seyha moth
Go to Top of Page

jsmith8858
Dr. Cross Join

7423 Posts

Posted - 2007-03-13 : 08:06:45
No, I am not asking you that. I am asking: What research have you done, through google or elsewhere, to help you with this project, so far (before asking questions here)? Because I strongly suggest that you do some searching elsewhere. This is a Microsoft SQL Server website!



- Jeff
http://weblogs.sqlteam.com/JeffS
Go to Top of Page

seyha_moth
Yak Posting Veteran

74 Posts

Posted - 2007-03-13 : 21:40:00
Ok,I understand about your comment,but now I am posting on asp.net point of sqlteam forum. I don't know why you told me that I'm posting wrong forum.

I hope that u don't be mind about my above comment.

Best regards.
Thank for your reply!





seyha moth
Go to Top of Page

AndrewMurphy
Master Smack Fu Yak Hacker

2916 Posts

Posted - 2007-03-14 : 04:33:12
You miss Jeff's point. We specialise in SQLServer, and the ASP.NET forum is for ASP.NET topics WHERE they link in with SQLServer.....and NOT for ASP.NET problems in general.
Go to Top of Page
   

- Advertisement -