fake: command in webinterface

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
Haehnchen
New Cone
New Cone
Posts: 3
Joined: 27 Oct 2008 18:53

fake: command in webinterface

Postby Haehnchen » 27 Oct 2008 19:05

Hello,

is it possible to start a fake command over the webinterface?
(i want to stream a local jpg image that changed every 3 seconds. i found the fake command for is. is there a better one?)

I start the command with parameters like this and it works fine:

Code: Select all

vlc fake:// --fake-file C:\stream.jpg --fake-file-reload 1 --fake-width 800 --fake-height 600 :sout=#transcode{vcodec=mpeg4,vb=1500}:duplicate{dst=display} :sout-all :sout-keep
for example i use this http request to start the streaming:

Code: Select all

/requests/status.xml?command=in_play&input=http%3A%2F%2Fflashvideo.kino.de%2Fvideo%2Fclipfile%2F443%2F000148443.flv
now i need something like that (the same as first one but urlencoded):

Code: Select all

/requests/status.xml?command=in_play&input=fake%3A%2F%2F+--fake-file+C%3A%5Cstream.jpg+%3Asout%3D%23transcode%0D%0A%7Bvcodec%3Dmpeg4%2Cvb%3D1500%7D%3Aduplicate%7Bdst%3Ddisplay%7D+%3Asout-all+%3Asout-keep

Rémi Denis-Courmont
Developer
Developer
Posts: 15337
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: fake: command in webinterface

Postby Rémi Denis-Courmont » 28 Oct 2008 18:05

Well, you just add the "command" as a playlist item, then switch the playlist to that item and play.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Haehnchen
New Cone
New Cone
Posts: 3
Joined: 27 Oct 2008 18:53

Re: fake: command in webinterface

Postby Haehnchen » 28 Oct 2008 19:46

thx but i did this before:

i tested:

Code: Select all

http://127.0.0.1:8080/requests/status.xml?command=in_play&input=fake%3A%2F%2F and http://127.0.0.1:8080/requests/status.xml?command=in_play&input=fake://
both say that the fake module isnt found (translate from germanerror message).
but if i start it over "vlc fake://" with a batchfile it works correct.
also in the playlist there is only "fake://" as playlistitem with batchfile, over the
the webui i get a playlistitem with the trancode and scout part.

Rémi Denis-Courmont
Developer
Developer
Posts: 15337
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: fake: command in webinterface

Postby Rémi Denis-Courmont » 28 Oct 2008 20:42

You are probably missing the parameters.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Haehnchen
New Cone
New Cone
Posts: 3
Joined: 27 Oct 2008 18:53

Re: fake: command in webinterface

Postby Haehnchen » 29 Oct 2008 18:16

sry... clearly i tested it with the parameters. but the result is always the same...
he didnt find any modul like "fake".

Code: Select all

http://127.0.0.1:8080/requests/status.xml?command=in_play&input=fake%3A%2F%2F+--fake-file+C%3A\stream.jpg+--fake-file-reload+1+--fake-width+800+--fake-height+600++%3Asout%3D%23transcode{vcodec%3Dmpeg4%2Cvb%3D1500}%3Aduplicate{dst%3Ddisplay}+%3Asout-all+%3Asout-keep
(urldecoded/urlencoded give some result)

can you give me a working example for use the "fake" command over webui?


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 46 guests