Opening videofiles in ONE fullscreen via commandline

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
Luisao
New Cone
New Cone
Posts: 2
Joined: 08 Nov 2006 18:46

Opening videofiles in ONE fullscreen via commandline

Postby Luisao » 08 Nov 2006 19:07

I am using a external application (a videogallery made in flash) to open batch files (Each time a video is selected a .bat is opened) that tell VLC to open a mpeg2 file in fullscreen modus in a second monitor...so far, it somehow works...the problem comes when I want to change the file being played(if another video is selected), since the batch file will just open one more window of vlc, and then one more... and soon there will be hundreds of them and the PC will collapse. Someone have an idea on how to achieve this?

rsande
New Cone
New Cone
Posts: 6
Joined: 06 Nov 2006 20:09

Postby rsande » 08 Nov 2006 21:29

You can download PSKill.exe to kill the old VLC process as the first line of the .bat file:

Code: Select all

pskill.exe vlc.exe
You might want to put in the -t option:

Code: Select all

pskill.exe -t vlc.exe
This will kill all children processes too, in case there were any.

PSKill was created by SysInternals, one of the best clean freeware groups I know of...seems to be the same file as it was before SI was bought by Microsoft :(

Luisao
New Cone
New Cone
Posts: 2
Joined: 08 Nov 2006 18:46

Thank you! But is there some other, "cleaner" way?

Postby Luisao » 09 Nov 2006 09:35

It works efficiently and can be a life saver, but the process killing causes some awful jumps in the screen, and i need something kind of smooth...Isn't there anyway of just changing the file? i.e. Having a playlist and controlling the playlist with the .bat file or with other kind of script? Some suggestions of other forums where I could check?

Thanks again for ur input!


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 68 guests