Page 1 of 1

How do you make the VLC program terminate when video is done

Posted: 23 Jul 2004 02:50
by shubb
I am trying to use VLC from the command line. I am able to get the stream to start, and I receive it fine on the other end, but when the video is done, the program does not exit, and it just stays hung. How can I make VLC program end when the video file is done?

I am using VLC 0.7.2 on Slackware Linux 9.1
Here's the output from the command line when I try to run it.

[17:46:41][root@server:]# vlc movie.mpg --sout udp:224.5.1.1
VLC media player 0.7.2 Bond
Remote control interface initialized, `h' for help
[00000186] main input: playlist item `movie.mpg'
[00000195] mpeg_audio packetizer: MPGA channels:2 samplerate:48000 bitrate:128

Movie is playing here, and after movie stops...

[00000186] main input: EOF reached
[00000186] access_file input: closing `/://movie.mpg'

But the session is stuck here. If I issue Ctrl-C...

signal 2 received, terminating vlc - do it again in case it gets stuck
[17:48:45][root@server:]#

Any suggestions?

Posted: 23 Jul 2004 03:20
by markfm
try:
vlc --longhelp --advanced

I believe what you need is vlc:quit. after the name of the movie (possibly also works after the sout section)

Posted: 24 Jul 2004 06:16
by Critt
shubb --

I am using VLC on Windoze, but I had the same problem. As markfm suggests, I use vlc:quit to make the application exit.

Here is the code I use inside a desktop shortcut that gives me the desired result:

Shortcut: "C:\Program Files\VideoLAN\VLC\vlc.exe" "D:\DVD_VIDEO\Clips\Mike's New Car.mpeg" "vlc:quit"

-- Critt

Posted: 26 Jul 2004 23:06
by shubb
Excellent! Works perfect! Thanks guys.