Monthly Archives: May 2013

VLC could not open the file and the MRL

I started to get this error on my Video PC Win XP SP3:

File reading failed:
VLC could not open the file
"C:\Profiles\user\Temp\PLUGTM~2\PLUGIN~2.ASH". (Bad file descriptor)
Your input can't be opened:
VLC is unable to open the MRL 
'file:///C:/Profiles/user/Temp/PLUGTM~2/PLUGIN~2.ASH'. 
Check the log for details.

This only happens if VLC is not running when a web page requests VLC to start streaming the video. If VLC is running, the stream is opened without a problem. Looks like some sort of timing issue at the VLC startup. I could not find a solution on the web, fixing VLC is not an option, so I decided to make sure that VLC is always running. Added a shortcut to the Startup dir in Windows, it starts VLC in the minimized mode (tray icon):

"C:\Program Files\VideoLAN\VLC\vlc" --qt-start-minimized

There is a positive side-effect: the first start of a VLC stream is noticeably faster. Unfortunately, killing all instances of VLC will bring back the problem.

There is an option to start VLC as a service, but I have not tried this yet:

 vlc -I ntservice --ntservice-extraintf=http --ntservice-install

Web control interface is at http://127.0.0.1:8080/