Trying a very simple interface to VLC, which should work, BUT doesn't
Code: Select all
Dim as string CmndPipe
Dim as Integer pf = Freefile
CmndPipe = "vlc -I rc"
Open Pipe CmndPipe for output As #1
CmndPipe = "add Video1.mov"
Print #1, CmndPipe
Sleep 5000
CmndPipe = "quit"
Print #1, CmndPipe
Close
If I type in manually 'add Video1.mov' then the video runs.
If I type in manually 'quit' it quits in the middle of the video (correctly)
If I don't type anything, it will time out with a statement: [cli] lua interface: Requested shutdown.
I have tried all sorts of combinations, but it seems that after the first Pipe command, no others get through.
Plenty of examples on "Open Pipe for input" but no-one seems to be using output.
Would love some idea as to what is amiss here
Regards
Edit:https://web.archive.org/web/20200203114 ... interface/
Link to rc description.