Web Forms :: Pull Video File Duration / Length Information?
Apr 27, 2010
I have a uploader on my page which saves a video file, and then i call ffmpeg to convert it to a .flv standard. The problem is, i need to pull the video duration in from the file, and the ffmpeg output even says it, but when i tell the parameters to do the ffmpeg -i filename > fileinfo.txt it still doesnt take that information.
how i can pull this type of information?
Example of what i was trying:
[Code]....
View 2 Replies
Similar Messages:
Feb 5, 2010
I am using DotNetNuke and I have posted this in their forum. But it is more appropriate here. I am trying to upload a 13 MB video file to my site ( a .flv file) using the file manager function under the host login. I understand that .NET limits the upload size to 4 MB for security reasons. In accordance with other posts here I added this code to my web.config file to allow bigger upload.
<httpRuntime maxRequestLength="51200" enable = "True"
I added it in the system.web section. Now, I still get this error:
"An error has occurred.DotNetNuke.Services.Exceptions.PageLoadException: Maximum request length exceeded. ---> System.Web.HttpException: Maximum request length exceeded. at System.Web.HttpRequest.GetEntireRawContent() at System.Web.HttpRequest.GetMultipartContent() at System.Web.HttpRequest.FillInFormCollection() at System.Web.HttpRequest.get_Form() at System.Web.HttpRequest.get_HasForm() at System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull) at System.Web.UI.Page.DeterminePostBackMode() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace.
View 3 Replies
Aug 24, 2010
I have a web site where i can upload videos. Here i have a requirement that while uploading i should validate that user should not upload video with more than 1 minute duration.
So i doubts how we can implement this validation.
View 1 Replies
Aug 31, 2010
Is there any method for finding the duration of an uploaded video without running any exe (ffmpeg.exe) in asp.net?
View 1 Replies
Oct 18, 2010
I've tried using directshowlib-2005 by installing k-lite mega codec pack. It can't find the duration of an mp4 file or f4v file (avi, wmv and flv has no problem). I use ImediaSeeking interface of directshowlib-2005 to find duration. But in case of mp4 and f4v the GetDuration method returns zero.
I know it is a codec problem, but I do not know which codec is to be installed to get duration of mp4 as well as f4v files.
The code I am using is shown below:
[Code]....
View 1 Replies
Feb 8, 2010
in my application i want to display the duration time of the video ( that is time of the video) in asp.net
View 2 Replies
Sep 1, 2010
My asp.net(c#) method looks as follows:
[Code]....
I got the duration with the above method. But my problem is i can't delete the physical file
after my operation. I used
File.Delete(FilePath);
While performing this action i got an exception as follows:
"The process cannot access the file because it is being used by another process."
My Os is windows 7(IIS 7)
View 1 Replies
Aug 17, 2010
[Code]....
Using class to pull Active Directory Information for forms
View 2 Replies
Mar 27, 2011
How woulld I set this up:
I wanna save what links a user clicks on in a website. I thought of creating a jquery function that would save the link name everytime a link is clicked , then ajax the info to the db after the user closes the site.
Does that sound like a proper way. Anyone have samples of that?
Since there are multiple pages with multpile links, I wanna create something equivalient to a Session variable in javascript so I can append info to it everytime a user clicks a link and send the info only once to the db, instead of everytime a user clicks a link open a db connection and send the info.
The links are products so I wanna save related products, so I wanna save related product infomation. Maybe I need a cookie instead?
View 3 Replies
Mar 21, 2011
I want the user to click the link then the window pops up, but I want the data inside the window to be pulled from a database, and I need to repeat this process for 5 links that are also pulled out of a database. Say the most popular items for the month. My question is how would this be best accomplished? Jquery, or AJAX. I am just trying to see which would be the easier way to go about coding this with .net and C#.
View 1 Replies
Feb 1, 2011
When a user logins, I want to be able to store all his profile information so I can display, for example, his email on different pages of my website, but I don't want to have to keep querying the database for every time I want to display his email. How would I go about doing this?
View 2 Replies
Oct 4, 2010
I am getting this error when I am trying to upload a video in my site. how to fix this?
View 3 Replies
Jul 26, 2010
i am uploading a file through file upload control , file size has greater then 4 MB, I have to give the proper alert msg to the user that file size exceeding the limit.how to do it , because at server side it is crashed on the IIS and not return to the server to check the file size validation.that how it is possible to validate the file size and give the proper alert messege
View 3 Replies
Apr 23, 2010
I am uploading audio files in asp.net using FFMPEG.My question is how can i get the duration of the file(in seconds).
View 3 Replies
Oct 22, 2010
I am trying to find duration of an mp4 file using direct show component of windows using the Dotnet wrapper(directShow-lib 2005). But the method i used was GetDuration of IMediaSeeking interface. But this returns zero as duration.After searching i found the following statement:"It doesn't matter whether it's in a container or not, it only matters whether you have a parser/reader for it. There is no stock DirectShow parser to read raw H.264 files and no third-party one I can think of. Also, whether IMediaSeeking would work with such a raw file is implementation-dependent. Last, most H.264-related filters use MPEG2Video or
VideoInfo2 and neither works with MediaDet, so you would have to build the graph yourself."
View 1 Replies
Mar 17, 2010
I use media player control to play mp3 files in asp.net application. I want to find When the playing process gets end and the total time require to finish the file using javascript.
[Code].....
View 1 Replies
Sep 21, 2010
I have written the following code that successful ftps a file to the proper location as long as the file exists on the server itself....
However, I need the code to pull the file contents from the client computer, not the server.
Here is the code:
[Code]....
When I deploy this application to my staging server and test it, it's looking for the files on the staging server...not my local computer.
View 1 Replies
Jan 7, 2010
i need to get thumbnail from video files using C#.
View 1 Replies
Jan 27, 2010
How to Upload Video file in VS 2008 3.5
View 5 Replies
Aug 3, 2010
am trying to read the metadata of a video file and also change/add some fields to that.
Note: .Net 3.5, VB
View 1 Replies
Aug 7, 2010
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?
View 3 Replies
Dec 16, 2010
Is it possible to have visitors to my website hear and see audio/video "mpg" files? I could not find any controls that output audio or video. Otherwise, is linking to u-tube my only other option?
View 2 Replies
Mar 24, 2011
I've configured progressive video player on my website. When I'm passing direct url to .mp4 file everything works fine.
when I'm trying to pass file bytes from my .ashx file. Player begins to play but if you try to seek it'll write buffering, buffer video till the seekpoint and continue to play.
here is my file download script in .ashx handler
FileStream sourceFile = new FileStream(FileName, FileMode.Open); long FileSize; FileSize = sourceFile.Length; byte[] buffer = new byte[(int)FileSize]; sourceFile.Read(buffer, 0, (int)sourceFile.Length); sourceFile.Close(); context.Response.AddHeader("Content-Disposition", "attachment;filename=file.mp4"); context.Response.ContentType = "application/octet-stream"; context.Response.BinaryWrite(buffer);
View 1 Replies
May 4, 2010
I'm having a problem with file streaming where this file is a video that is streamed to a FLV player.
Essential components for understanding the problem:
- An asp.net page called Viewer.aspx that has de FLV player incorporated in the HTML.
- An asp.net page (It could be an http handler but in this case it's not) called Downloader.aspx that gets a flv file from somewhere on the web and writes it to the Response Output Stream.
Everytime Viewer.aspx is called, it makes Downloader.aspx the source of the the FLV player and the video is correclty presented and streamed into the player.
The problem I am having now is that any user interaction with the page (even typing an URL inside the same website domain on the browser address bar) becames hung until the video download ends.
I can measure this video download with HTTP Watch for example, and confirm that just after the video download into the player ends, the command issued by the user is immediately processed (or the browser goes to another page if the user typed a new address in the browser address bar).
I tought that it could be the limit of 2 connections per domain, but HTTP Watch only shows one active connection (the video download into the FLV player).
Even if it was this 2 connections limit, I think a nice solution would be to somewhat detect the user interaction with the page and abort that video download.
View 1 Replies
Jun 18, 2010
What is the best way to restrict a file upload control to only accept video files only ?
View 3 Replies