Project

General

Profile

Tvheadend + VLC front-end playlist

Added by robert D over 11 years ago

Hi im new in the forum but i have used Tvheadend (on debian) for a while

I use different front end solutions to connect to tvheadend mostly XBMC (raspbmc and openelec) and VLC. i have not found any good solution to parse the htsp playlist info into VLC. is there any?
at the moment i have a py script that parse the real IDs from /home/hts/.hts/tvheadend/channels/ and makes a playlist ordered in the same way as the back-end. the playlist is put in a shared folder on the network. So all one need to do on the client is drag a shortcut to the desktop and its always up to date.

Is this the way people usually do it when using VLC? i know one can use the webIF to watch now which is grate for debugging but a playlist seam to be easier and more reliable.
What do you guys think about this?

Best regards


Replies (15)

RE: Tvheadend + VLC front-end playlist - Added by Ron L over 11 years ago

I use this plugin for VLC...

https://github.com/BtbN/vlc-htsp-plugin.git

or binaries here...

https://ci.btbn.de/job/vlc-htsp-plugin/

installed into /usr/lib/vlc/plugins/access

Configure it in Preferences --> Playlist --> Services Discovery --> HTSP Protocol

Your channels will show up in Playlist --> Local Network --> Tvheadend HTSP

RE: Tvheadend + VLC front-end playlist - Added by robert D over 11 years ago

Tnx for sharing interesting
I tested it.
It worked as well but you needed to do some clicking (on each client) to get it to work the solution i have now actually works about the same way but without need of the plugin.

i guess that it comes down to if you want to tweak the server or the client.
What i am missing in my solution after some playing i found the EPG data EPGdata (only channel by channel and no overview) with the plugin but it whas not that grate like in XBMC also schedule recordings on server side would be a nice option.

at the moment i use the browser and a website for program information which work ok as well.

RE: Tvheadend + VLC front-end playlist - Added by Peter Vágner over 11 years ago

Hello,
I have found this verry interesting project however I am unable to get this to run.
Looking into the logs all is well however I can see no channels in the playlist tree.
What I am doing:
- from the vlc view menu open playlist.
- in the playlist navigate to local network > tvheadend.
As long as I click tvheadend the playlist does not populate.

Here is the relevant part from the log...
[code][0x7f1dc8764458] htsp services discovery: Connected to HTSP Server HTS Tvheadend, version 3.5.50~g271165a, protocol 9
[0x7f1dc8764458] htsp services discovery: Authenticating as 'vlc' without a password
[0x7f1dc8764458] htsp services discovery: Successfully authenticated!
[0x7f1dc8764458] htsp services discovery: Finished getting initial metadata sync[/code]

I think I am doing it right since for example I can browse upnp devices on my network. It uses different protocol but behaviour in vlc should hopefully be verry similar if not the same. Do you guys have an idea?

one more stuff.
Here is an output from tvheadend. First I am openning vlc and next opening tvhguide on an android phone. output is similar for both.
mar 10 14:05:15 [ INFO]:htsp: Got connection from 127.0.0.1
mar 10 14:05:15 [ INFO]:htsp: 127.0.0.1: Welcomed client software: VLC media player (HTSPv8)
mar 10 14:05:15 [ INFO]:htsp: 127.0.0.1 [ VLC media player ]: Identified as user vlc
mar 10 14:08:23 [ INFO]:htsp: Got connection from 192.168.2.106
mar 10 14:08:23 [ INFO]:htsp: 192.168.2.106: Identified as user samsung
mar 10 14:08:23 [ INFO]:htsp: 192.168.2.106 [ samsung ]: Welcomed client software: org.me.tvhguide (HTSPv4)

Edit2:
When vlc calls service discovery it prints to the log something like
main debug: adding services_discovery upnp{longname="Universal Plug'n'Play"}...
However nothing like this appears for tvheadend service discovery.

RE: Tvheadend + VLC front-end playlist - Added by Ron L over 11 years ago

Might have something to do with your access permissions as set up in the tvheadend config. I log in with user and pass instead of anon.

RE: Tvheadend + VLC front-end playlist - Added by Peter Vágner over 11 years ago

I have added non default entry into the access list with no change. This is all with John Torblon transcoding branch.
I am currently testing with latest version where I have other issues unfortunatelly.

RE: Tvheadend + VLC front-end playlist - Added by Ron L over 11 years ago

Hmmmmm.... hard to say. I'm using tvheadend built from git master maybe a couple weeks ago. The account I log in as has permission to everything except admin.

RE: Tvheadend + VLC front-end playlist - Added by Peter Vágner over 11 years ago

I have figured it out finally. While looking at tvheadend web UI under configuration all channels do have notset in the number column. The vlc access module does not list channels with no channel number.
So the fix is either that channels should all be numbered in tvheadend. Or the module it-self can be fixed not to require channel numbers.
I have posted about it on github: https://github.com/BtbN/vlc-htsp-plugin/issues/2

RE: Tvheadend + VLC front-end playlist - Added by Michael Neurohr over 11 years ago

Hi!

Ron L wrote:

I use this plugin for VLC...

https://github.com/BtbN/vlc-htsp-plugin.git

or binaries here...

https://ci.btbn.de/job/vlc-htsp-plugin/

installed into /usr/lib/vlc/plugins/access

Configure it in Preferences --> Playlist --> Services Discovery --> HTSP Protocol

Your channels will show up in Playlist --> Local Network --> Tvheadend HTSP

I copied the plugin into the directory that you mentioned above, but VLC does not include the Plugin. How can I tell VLC to use that plugin?

Thanks,
Michael

RE: Tvheadend + VLC front-end playlist - Added by Ron L over 11 years ago

It will just use it, you don't need to enable it. Did you install binary or from source? If binary it may be compiled against a different VLC version and won't work. Try installing from source.

RE: Tvheadend + VLC front-end playlist - Added by Michael Neurohr over 11 years ago

Now it works. The problem was the permissions of the plugin...

RE: Tvheadend + VLC front-end playlist - Added by Víctor Saiáns about 11 years ago

Hello Michael
I am having the same problem with the plugin,I copied it in the directory but it doesn't appears in VLC.
I have given permissions to the plugin with the command: sudo chmod 777 /usr/lib/vlc/plugins/access/libhtsp_plugin.so
but this didn't work for me.

Could you tell me how did you solve the problem please?

Thanks and sorry for my pour English

Víctor

RE: Tvheadend + VLC front-end playlist - Added by Michael Neurohr about 11 years ago

Víctor Saiáns wrote:

Could you tell me how did you solve the problem please?

You should find the settings for that plugin in Tools -> Preferences.
Choose "Show settings" -> All
Type into the search field in the upper left "htsp".
If something appears, it is working.

Michael

RE: Tvheadend + VLC front-end playlist - Added by Víctor Saiáns about 11 years ago

Thanks for your answer Michael, but the problem what I'm having is just that. I copied the file libhtsp_plugin.so in the directory /usr/lib/vlc/plugins/access but when I open VLC and choose Tools->Preferences->Show All and I type "HTSP" into the search field, Doesn't appear anything.
I don't understand what I'm doing bad.

I repeated the process a lot of times and I tried with the 32 bits version and the 64 bits version (I'm working in Ubuntu 12.04 x64) but the result is the same, the plugin seems not be recognized for VLC.

Any idea?

Víctor

RE: Tvheadend + VLC front-end playlist - Added by Jiri Sobotik almost 11 years ago

Michael Neurohr wrote:

Víctor Saiáns wrote:

Could you tell me how did you solve the problem please?

You should find the settings for that plugin in Tools -> Preferences.
Choose "Show settings" -> All
Type into the search field in the upper left "htsp".
If something appears, it is working.

Michael

Hello Michael,
I have same problem as Victor Saiáns - on Ubuntu 12.04 64bit, VLC 2.0.8 after copy libhtsp_plugin.so to /usr/lib/VLC/plugins/access doesn't appear in VLC (Tools->Preferences->Show All->"HTSP") HTSP preferences. Do you have any idea how to get libhtsp_plugin.so worked on ubuntu 64bit?

And also I would like to ask if there is any news with closing problem while stream channel changing in HTTP protocol [[https://tvheadend.org/boards/5/topics/3997]] ?

My server TVHEADEND is running on Raspberry PI + Openelec (or RASPBMC).

Thanks for any informations in advance
Jiri Sobotik

RE: Tvheadend + VLC front-end playlist - Added by Víctor Saiáns almost 11 years ago

Hello Jiri,
I finally solved this problem. I have been trying to find which is the problem with de libhtsp_plugin.so which I was using, and I discovered that the last compiled version of the proyect doesn't work with VLC 2.0.8 for me (It's a libraries problem) and simply I tried with a older compiled version (of 22-sept-2013 I think), and that version works for me.

I hope that It will help you.

Víctor

    (1-15/15)