changing sout with http interface [macro set inside]?

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
wlourf
Blank Cone
Blank Cone
Posts: 12
Joined: 01 Nov 2007 19:56

changing sout with http interface [macro set inside]?

Postby wlourf » 01 Nov 2007 20:05

Hello

I try to use the http interface in order to change the sout of vlc.

Here is the code I use to launch vlc in ubuntu :

Code: Select all

vlc --open 'v4l:// :v4l-vdev="" :v4l-adev="/dev/dsp" :v4l-norm=3 :v4l-frequency=-1' --sout '#transcode{acodec=mp3,ab=96,channels=2}:duplicate{dst=std{access=file,mux=raw,dst="\home\me\test.mp3"}}' --sout-all --color --extraintf 'http'
This http line works fine to stop VLC :

Code: Select all

wget "http://localhost:8080/requests/status.xml?command=pl_stop" -O /dev/null
but what is the line to change the sout ? or just to change the dst to "\home\me\test2.mp3"
Thanks for any idea !
Last edited by wlourf on 11 Nov 2007 23:37, edited 1 time in total.

wlourf
Blank Cone
Blank Cone
Posts: 12
Joined: 01 Nov 2007 19:56

Re: changing sout with http interface ?

Postby wlourf » 11 Nov 2007 23:37

Hello again,

I found the macro set in the VLC documentation and I created a player.html page with this macro :
<vlc id="set" param1="sout" param2="string" />

with I load this URL :

Code: Select all

http://localhost:8080/player.html?sout=%23transcode%7Bacodec=mp3,ab=48,channels=1%7D:duplicate%7Bdst=std%7Baccess=file,mux=raw,dst=%22/home/me/test2.mp3%22%7D%7D
nothing happen !
I have just this message :

Code: Select all

http debug: 733: value = "#transcode{acodec=mp3,ab=48,channels=1}:duplicate{dst=std{access=file,mux=raw,dst="/home/me/test2.mp3"}}"
and the file test2.mp3 is not created, the recording continue on the first file.
What can I do?

Thanks in advance

pepepepe24
New Cone
New Cone
Posts: 1
Joined: 10 Sep 2008 18:11

Re: changing sout with http interface [macro set inside]?

Postby pepepepe24 » 11 Sep 2008 15:36

I'm having the same problem,
did you solve it?


Return to “Web and scripting”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 8 guests