Page 1 of 1

How to remotely Control "program" from the playback menu

Posted: 21 Sep 2010 17:46
by cubalibre
Hey!

I am using vlc for streaming live tv from a dvb-t card to my windows mobile phone (HTC HD2). The streaming as such works very well, the only problem I have is that I haven't been able to find a way to change the channels remotely.

I enabled the http and remote interface from VLC, and there I can use the basic functions, but the "channel" function from the playback menu is not there, and it is right there where I can select the channel that VLC will show/stream.

I tought I could create a playlist with each different channel, but I don't think that's possible since all VLC shows is dvb-t://frequency=746000000 .

tnx in advance.

Re: How to remotely Control "program" from the playback menu

Posted: 21 Sep 2010 19:17
by RĂ©mi Denis-Courmont
You can make playlist items if you know the program ID of each channels. I suppose the HTTP interface pages could also be extended to provide the necessary glue (I have not tried, and I won't).

Re: How to remotely Control "program" from the playback menu

Posted: 21 Sep 2010 20:16
by cubalibre
hei Remi, and thanks for your answer.

could you tell me how would be the string format to add certain program id number to the playlist? ex Id 74 and Id 177.

dvb-t://frequency=746000

Re: How to remotely Control "program" from the playback menu

Posted: 23 Sep 2010 18:29
by cubalibre
Well, after some googling and a lot of reading I managed to do what I was after. I'll give some details if anyone else is trying to stream tv channels to their pda devices from a dvb card and want to be able to change channels remotely.

The first thing to do is to find out the channels SID Number / Program Number, then create a playlist with all the channels you want to stream, there you need to add each channel SID number. Here is an example of my own list...

<playlist version="1" xmlns="http://xspf.org/ns/0/" xmlns:vlc="http://www.videolan.org/vlc/playlist/ns/0/">
<title>Playlist</title>
<trackList>
<track>
<location>dvb-t://frequency=746000000</location>
<title>MTV3</title>
<extension application="http://www.videolan.org/vlc/playlist/0">
<vlc:id>0</vlc:id>
<vlc:option>program=49</vlc:option>
</extension>
</track>

<track>
<location>dvb-t://frequency=746000000</location>
<title>Nelonen</title>
<extension application="http://www.videolan.org/vlc/playlist/0">
<vlc:id>1</vlc:id>
<vlc:option>program=65</vlc:option>
</extension>
</track>
.................

<extension application="http://www.videolan.org/vlc/playlist/0">
<vlc:item tid="0" />
<vlc:item tid="1" />
<vlc:item tid="2" />
<vlc:item tid="3" />
</extension>

I then configured VLC for the streaming, also it is important to enable the http remote interface to be able later to change the channels. In my case I created an script and saved it as a CMD file. this way I just click on it and VLC will automatically stream the playlist .

here is the code I used ( here was importat to add the code :gather, since otherwise the stream would stop after changing to another channel.

"C:\Program Files\AnV\VideoLAN\VLC\vlc.exe" -vvv --ttl 12 D:\Temp\vlc-tv-abe.xspf --sout=#transcode{vcodec=DIV3,vb=200,scale=0.25,acodec=mp3,ab=96,channels=2,samplerate=44100}:gather:http{mux=asf,dst=:8081/} --no-sout-rtp-sap --no-sout-standard-sap --sout-keep

That's it.