Welcome Guest! You need to login or register to make posts.



Go to last post Go to first unread
#1 Posted : Monday, June 12, 2006 6:01:15 AM(UTC)

Rank: Member

Groups: Member
Joined: 6/12/2006(UTC)
Posts: 12

I am having some problems with retrieving information from varrious video files from one asp page. After the information has been collected from the first file (test.wmv), the page stops responding (as if it is still loading) and the media processor somehow locks the file second file (test.avi). Meaning that I can't delete the file or do anything else with it, untill I reboot the server or wait a long time (> 1 hour). Below is the code that I am running. I suspect the problem occurs when the loop runs "objInfoRetriever.RetrieveInfo" for the second time.

Thanks in advance!

' Test files
Dim file_arr(3)
file_arr(0) = "test.wmv"
file_arr(1) = "test.avi"
file_arr(2) = "test.mpeg"
file_arr(3) = "test.asx"

'Create instabce of Aurigma Media Processors InfoRetriever
Dim objInfoRetriever
Set objInfoRetriever = Server.CreateObject("COMObjectsNET.InfoRetriever")

For i = 0 To UBound(file_arr)
	' Load file
	objInfoRetriever.RetrieveInfo Server.MapPath(file_arr(i))
	MediaType 	= objInfoRetriever.MediaType
	Width 		= objInfoRetriever.Width
	Height		= objInfoRetriever.Height
	Duration	= objInfoRetriever.Duration
	Response.write file_arr(i) & " (MediaType: " & MediaType & " Dimensions: " & Width & "x" & Height & ", Duration: " & Duration & ")"

Edited by user Wednesday, December 19, 2007 4:22:46 PM(UTC)  | Reason: Not specified

Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.