Postby mcannistra » 06 Nov 2013 17:55
Hi Jean-Baptiste.
I did some tests on my ubuntu setup of VLC.
In these few lines you can see what I am able to do from both the telnet and lua (terminal) interfaces:
vlm
new ch1 broadcast enabled loop
setup ch1 input "conc1.vob"
setup ch1 input "conc2.vob"
setup ch1 input "conc3.vob"
setup ch1 input "conc4.vob"
setup ch1 output #rtp{dst=MYdestinIPaddressHERE,port=5004,mux=ts,sap,name=test}
control ch1 play
i am able to create and edit the "playlist" removing clips, start and stop the stream.
MYdestinIPaddressHERE is the IP address of the destination laptop on which i open a network stream on vlc with rtp://@:5004/
I can also send the same commands through my http to telnet wrapper with same behavior.
Everything works fine until here.
Then I tried opening the VLC web UI with:
vlc -I http
and then used various commands in this way:
http://localhost:8080/requests/vlm_cmd.xml?command=new ch1 broadcast enabled loop
http://localhost:8080/requests/vlm_cmd.xml?command=setup ch1 input "conc1.vob"
and they worked fine
i got errors when I tried to config the output with method 1:
http://localhost:8080/requests/vlm_cmd.xml?command=setup ch1 output #std{access=rtp{ttl=255},mux=ts,dst=MYdestinIPaddressHERE:5004,sap,group="group1",name="chann1"}
that is, using the output statement built using the vlm UI (http://localhost:8080/vlm.html)
because i get a missing parameter error and i cannot figure out what is missing
i got errors also when I tried configuring the output with method 2:
http://localhost:8080/requests/vlm_cmd.xml?command=setup ch1 output #rtp{dst=MYdestinIPaddressHERE,port=5004,mux=ts,sap,name=test}
that is, using the same output statement that i have been able to use via telnet and lua (see above).
in addition to this, i have got errors also when trying to delete one of the inputs.
Probably I am still doing something wrong or, there is a different behavior between the web UI apis (http://localhost:8080/requests/ ) and the lua/telnet interfaces.
If you have suggestions I will be more than happy to try again.
Thank you for your time,
Mario