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

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
shubb

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

Postby shubb » 23 Jul 2004 02:50

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?

markfm
Big Cone-huna
Big Cone-huna
Posts: 1536
Joined: 22 Feb 2004 17:42

Postby markfm » 23 Jul 2004 03:20

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)

Critt
Blank Cone
Blank Cone
Posts: 13
Joined: 09 May 2004 07:31

Postby Critt » 24 Jul 2004 06:16

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

shubb

Postby shubb » 26 Jul 2004 23:06

Excellent! Works perfect! Thanks guys.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 23 guests