PDA

View Full Version : Problem with Windows Service


tspiva
01-25-2007, 12:10 PM
I'm having a problem getting the flixee engine to convert some files when it is run as a service. I'm not sure if it is related to http://www.flixforums.com/showthread.php?t=99 or not.

I wrote a manager that would convert files as they come in. The manager can either be started via a windows service that I wrote or a command line executable. When it starts via the command line, it converts files just fine. Also, the c# example that ships with the engine converts the files just fine.

When it is run from a service though, it fails on our production machine for mpeg 2 files. When I turned logging all the way up, this is what is output in the conversion log file:

[fe_core] 0000089c 16:30:03.272 [fe] infile:'C:\work\problemvid.mpg'
[fe_core] 0000089c 16:30:03.272 [fe] opened C:\work\problemvid.mpg
[fe_core] 0000089c 16:30:03.272 [fe] attempting open on: dshow, fname:C:\work\problemvid.mpg
[fe_core] 0000089c 16:30:07.194 [dshow] numstreams:0
[fe_core] 0000089c 16:30:07.194 [fe] attempting open on: fsvr, fname:C:\work\problemvid.mpg
[fe_core] 0000089c 16:30:07.194 [fe] flix error set (-4,183)


Any ideas on how to fix this? Or even find out what that error is?

jschaf01
02-09-2007, 08:03 PM
When running as a service, it seems to fail to initialize the built in sound layer, at least in Windows 2003. Console mode always worked fine.

My experience however, has been that running as a service is not a good way to go. We would have videos that would start converting and then the thread would just hang, for various reasons, and that would prevent other videos from being converted. Instead, I changed my service to launch a console application when it got a new video to convert. Much cleaner, and I can kill off any hung applications.