I am trying to get the Rivendell Radio Automation software to use vlc to play videos where it wants to play audio. If anyone is interested in this and it is appropriate here, I can add links to a github repository and a wiki page.
I try starting vlc on the machine that will play the videos like this:
/usr/bin/cvlc --fullscreen -I rc --rc-host 192.168.86.145:4212 --extraintf http --http-src /usr/share/vlc/lua/http --http-host 192.168.86.145 --http-port 9090 --http-password foo
Cut to the chase:
in a browser, this works:
http://192.168.86.145:9090/requests/status.xml?command=in_enqueue&input=file:///var/vid/700011.mp4
From a terminal, this fails:
Code: Select all
curl -u ':foo' --data-urlencode "input=file:///var/vid/700012.mp4" http://192.168.86.145:9090/requests/status.xml?command=in_enqueue
From a terminal, this fails:<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Error loading /requests/status.xml</title>
</head>
<body>
<h1>Error loading /requests/status.xml</h1><pre>lua/intf/modules/httprequests.lua:96: bad argument #1 to 'make_uri' (string expected, got nil)</pre>
<p>
<a href="http://www.videolan.org/">VideoLAN</a><br/>
<a href="http://www.lua.org/manual/5.1/">Lua 5.1 Reference Manual</a>
</p>
</body>
</html>
Code: Select all
wget -O zzz.txt -d --user="" --password=foo http://192.168.86.145:9090/requests/status.xml?command=in_enqueue&input=file:///var/vid/700012.mp4
Code: Select all
---response end---
200 OK
Length: 420 [text/xml]
Saving to: ‘zzz.txt’
zzz.txt 100%[===================>] 420 --.-KB/s in 0s
Closed fd 5
2020-03-02 14:15:09 (46.0 MB/s) - ‘zzz.txt’ saved [420/420]
Can someone give me a working example of adding a file to a playlist using wget or curl from a terminal?<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Error loading /requests/status.xml</title>
</head>
<body>
<h1>Error loading /requests/status.xml</h1><pre>lua/intf/modules/httprequests.lua:96: bad argument #1 to 'make_uri' (string expected, got nil)</pre>
<p>
<a href="http://www.videolan.org/">VideoLAN</a><br/>
<a href="http://www.lua.org/manual/5.1/">Lua 5.1 Reference Manual</a>
</p>
</body>
</html>
I seem to be able to get curl/wget to work when I am only trying to "get" info back from the http interface / status.xml, but when I am trying to enqueue or delete a playlist entry, I cannot get anything to work.
Thanks in advance...
I am trying to figure this out so I can drop the rc interface all together as I have been advised that
...the RC interface cannot be reliably accessed more than once
drew