How to remotely Control "program" from the playback menu

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
cubalibre
New Cone
New Cone
Posts: 8
Joined: 21 Sep 2010 04:19

How to remotely Control "program" from the playback menu

Postby cubalibre » 21 Sep 2010 17:46

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.

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

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

Postby Rémi Denis-Courmont » 21 Sep 2010 19:17

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).
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

cubalibre
New Cone
New Cone
Posts: 8
Joined: 21 Sep 2010 04:19

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

Postby cubalibre » 21 Sep 2010 20:16

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

cubalibre
New Cone
New Cone
Posts: 8
Joined: 21 Sep 2010 04:19

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

Postby cubalibre » 23 Sep 2010 18:29

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.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 71 guests