Page 1 of 1

changing sout with http interface [macro set inside]?

Posted: 01 Nov 2007 20:05
by wlourf
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 !

Re: changing sout with http interface ?

Posted: 11 Nov 2007 23:37
by wlourf
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

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

Posted: 11 Sep 2008 15:36
by pepepepe24
I'm having the same problem,
did you solve it?