-I rc --rc-fake-tty does not read from stdin
Hi,
The --rc-fake-tty option is supposed to ``force the rc module to use stdin as if it was a TTY''. It appears that this option does not work with the Windows port of VLC.
The following Python script illustrates the problem:
import os import time os.chdir("/Program Files/VideoLAN/VLC") f = os.popen('vlc -I rc --rc-fake-tty "\foo\bar.mp3"', "w") time.sleep(10) f.write("quit\n") print "VLC should now be stopped." time.sleep(10)
On Windows, this program starts VLC okay, but fails to make it stop after 10 seconds. The same behavior results when sending the sequence "\r\n" instead of "\n" after "quit".
Specifically, the issue appears to be that VLC reads from the terminal instead of the standard input device.
[I guess it does that so that you can pipe a media stream to the VLC process while also controlling it from the terminal. However, this makes it impossible to control VLC remotely. (If not impossible, at least very annoying and difficult.)]
VLC: 0.8.6a OS: Windows XP Pro SP2