Forums

Welcome Guest Search | Active Topics | Members

Media Processor 'kills' site on server Options
Tblaster
Posted: Tuesday, August 22, 2006 12:10:35 PM
Rank: Member
Groups: Member

Joined: 6/12/2006
Posts: 12
Points: 0
I'm having some very serious problems with The Aurigma Media Processor. In short then I've created a code that runs through all video files on my server (>1000). The code uses Media Processor to get information about the clip and also create a screenshot. Everything works fine, but after having processed about 20-30 files then the code stops (without any errors) and suddenly my site won't work. If I try accessing any page on my server (php, asp or htm) then all I get is one of the following errors:
error '800a0007' Out of memory
Not enough storage is available to process this command.

And the only solutiong that I've found so far, so that the site runs as it should again, is to reboot the server. Have anybody else experienced the same problems and does anyone know of a solution to this problem?

Also, It takes minutes for the to run through the code for each file. Is this normal and something to do with the Media Processor? If, then I send all my pleases to the Aurigma team to create a new version that runs better with the modern serveres running Windows 2003 or better!

Code:

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

' Create instabce of Aurigma Media Processors
Dim objMediaProcessor
Set objMediaProcessor = Server.CreateObject("COMobjectsNET.MediaProcessor")

' Load file
MapPath_Sti      = Server.MapPath(Mappe & "/" & FuldSti)
objInfoRetriever.RetrieveInfo MapPath_Sti

MediaType       = objInfoRetriever.MediaType
Width             = objInfoRetriever.Width
Height            = objInfoRetriever.Height
Varighed      = objInfoRetriever.Duration
BitRate            = 0 ' objInfoRetriever.BitRate

If MediaType = 2 Then ' Video
      ' Create a thumbnail for the video
      objMediaProcessor.LoadFromFile MapPath_Sti
      objMediaProcessor.StartTime = round(Varighed)/2
      objMediaProcessor.SmoothFactor = 50
      objMediaProcessor.OptimizationOn = True
      objMediaProcessor.Quality = 100
      objMediaProcessor.SaveToFileAsJpeg(MapPath_Sti & ".jpeg") ' Save to file
End If

' Clean Up
Set objInfoRetriever = Nothing
Set objMediaProcessor = Nothing
Andrew
Posted: Wednesday, August 23, 2006 8:45:23 PM

Rank: Advanced Member
Groups: Administration , Member

Joined: 8/2/2003
Posts: 705
Points: 96
Media Processor relies on the third-party code to decode videos. Depending on file format it uses DirectShow, QuickTime, etc. If some of, say, DirectShow codecs is unstable Media Processor will not be able to handle this. So if it crashes, it does not mean that it is a fault of Media Processor.

But anyway, if you submit case with one of files which crashes, we will take a look into it.

Meanwhile I would recommend to configure isolation of your application as well as recycling to prevent other sites to stop working when problems with Media Processor are encountered. For more information about it, refer Microsoft docs. Also, there is a nice article that explains how to configure application recycling clearly:

http://www.windowsnetworking.com/articles_tutorials/Working-Application-Pools-Internet-Information-Server.html

Hope this helps.

Sincerely yours,
Andrew Simontsev from Aurigma Team
Tblaster
Posted: Tuesday, August 29, 2006 4:18:37 AM
Rank: Member
Groups: Member

Joined: 6/12/2006
Posts: 12
Points: 0
All the video clips are .wmv files.

I now set up the code to display any errors and the processor returns the following message:
Not enough storage is available to complete this operation.

What can cause this error and what is the solution to this?
Andrew
Posted: Thursday, August 31, 2006 2:36:15 AM

Rank: Advanced Member
Groups: Administration , Member

Joined: 8/2/2003
Posts: 705
Points: 96
Please submit case with one of WMV files that cause a problem.

Sincerely yours,
Andrew Simontsev from Aurigma Team
Tblaster
Posted: Thursday, August 31, 2006 3:59:00 AM
Rank: Member
Groups: Member

Joined: 6/12/2006
Posts: 12
Points: 0
I've send a mail with some of the files that I'm working with. The files range from 500 kb to 10 mb and are all in the wmv format.
Tblaster
Posted: Thursday, August 31, 2006 5:46:01 AM
Rank: Member
Groups: Member

Joined: 6/12/2006
Posts: 12
Points: 0
I just tried disabeling the part of the code that creates the thumbnail but eventually (after running through some 30 video files which takes about 5 minutes) the same problem occurs. My only guess is that the component does not clear the memory and temp files after it finishes processing a file. Is this true?
Tblaster
Posted: Tuesday, September 05, 2006 2:59:29 AM
Rank: Member
Groups: Member

Joined: 6/12/2006
Posts: 12
Points: 0
Do you have any status on the problem? I would be really happy if I could test my code on one of your servers so that I can find out if it is a server problem or not.
Users browsing this topic
Guest


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.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Yet Another Forum.net version 1.9.1.6 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.