HDSurfer Plug-in for HDHomeRun

Logos are working great for me.

I wonder if it's possible to start watching a channel, on the Apple TV/PlexConnect, when you select the channel in the channel list?

As it is right now, you have to click on the channel, then you go to the pre-play screen, and you click Watch Channel there. That means when you stop a channel, you have to go back one more time, to get to the channel list.

I hope it makes sense :)

Logos are working great for me.

I wonder if it's possible to start watching a channel, on the Apple TV/PlexConnect, when you select the channel in the channel list?

As it is right now, you have to click on the channel, then you go to the pre-play screen, and you click Watch Channel there. That means when you stop a channel, you have to go back one more time, to get to the channel list.

I hope it makes sense :)

Great to hear about the logos... I have it on my list to come up with a better/easier way to load them... At the moment, it's #8 on the TODO list.  :)

The way that Plex does the video selection layouts requires that last "Play" page to load as it's part of the video object... if you happen to find a Plex plug-in that's working without that page let me know and I can look into how it would be done but from what I've researched it's not possible... with that said... I have been wrong before.  :)

I can confirm that it works on an iPad if you load Plex/Web up in Safari.  Still no go in the iOS app though.

Thanks for your work on this! It is exactly what I'm looking for.  

I'm running HDSurferWave and the PMS on an Ubuntu machine.  I'm trying to access the stream from the mac PLEX app, and also tried plex web on the server machine.

I can successfully access the channel list, but on all plex clients I get a message along the lines of "error while opening the file."

When a look at the terminal where HDSurferWave is running, I do not see any output after "server is now running."  Shouldn't I see some output here after trying to start a stream?

I have left all the port numbers at their default value.  Do I have to make sure these numbers match any values in the Plex Media Server?  I have configured the settings in the client plug-in so that the ports match. But it's not clear to me what the function of each port is.

Any ideas? 

EDIT: more info

My config file is below:

[XMLRPC_ONE]
servernetaddr = 192.168.1.20
xmlrpcport = 8000
tuner0port = 23013
stream0port = 23113
plexserverip = 192.168.1.20

[HDHR-DEVICE]
deviceid = 1037BD58
tunerid = 0

And the output when HDSurferWave is started:

Enter the following info into the HDSurfer Plex plug-in preferences:
---------------------------------------
	Stream Server IP: 192.168.1.20
	Stream Server Port: 23013
	Communication Port: 8000
	HDHomeRun ID: 1037BD58 [FOUND: 192.168.1.125]
	HDHomeRun Tuner: 0
---------------------------------------
Server is now running!

I made some progress, and now it's working to the plex client on the mac.

The problem was that the path was not set up correctly for the hdhomerun_config binary. I ended up using apt-get in ubuntu to install it, but I think i could have changed the command to "./hdhomerun_config" to make it look in the local directory.

So it works in the plex mac client, but not on the Roku (which is my goal). I'm using a Roku HD.

When I request the stream from the mac, here is the output:

Sending channel info to the HDHomeRun:
hdhomerun_config 1037BD58 set /tuner1/channel auto:665000000
Sending program info to the HDHomeRun:
hdhomerun_config 1037BD58 set /tuner1/program 3
Activating re-stream:
hdhomerun_config 1037BD58 set /tuner1/target 192.168.1.20:23113
Sending Plex the URI:
http://192.168.1.20:23013
libdvbpsi error (PSI decoder): TS discontinuity (received 7, expected 10) for PID 48

When I request the stream on the roku, here is the output. It repeats this a few times while the roku waits for the stream, and then the roku reports an error:

Sending channel info to the HDHomeRun:
hdhomerun_config 1037BD58 set /tuner1/channel auto:665000000
Sending program info to the HDHomeRun:
hdhomerun_config 1037BD58 set /tuner1/program 3
Activating re-stream:
hdhomerun_config 1037BD58 set /tuner1/target 192.168.1.20:23113
Sending Plex the URI:
http://192.168.1.20:23013
libdvbpsi error (PSI decoder): TS discontinuity (received 1, expected 0) for PID 0
libdvbpsi error (PSI decoder): TS discontinuity (received 8, expected 0) for PID 48

You can see there is a single libdvbpsi error when requesting from the mac, and two libdvbpsi errors when requesting from the roku.

Any ideas?  Anyone have this working with the Roku HD?

I made some progress, and now it's working to the plex client on the mac.

The problem was that the path was not set up correctly for the hdhomerun_config binary. I ended up using apt-get in ubuntu to install it, but I think i could have changed the command to "./hdhomerun_config" to make it look in the local directory.

So it works in the plex mac client, but not on the Roku (which is my goal). I'm using a Roku HD.

When I request the stream from the mac, here is the output:

Sending channel info to the HDHomeRun:
hdhomerun_config 1037BD58 set /tuner1/channel auto:665000000
Sending program info to the HDHomeRun:
hdhomerun_config 1037BD58 set /tuner1/program 3
Activating re-stream:
hdhomerun_config 1037BD58 set /tuner1/target 192.168.1.20:23113
Sending Plex the URI:
http://192.168.1.20:23013
libdvbpsi error (PSI decoder): TS discontinuity (received 7, expected 10) for PID 48

When I request the stream on the roku, here is the output. It repeats this a few times while the roku waits for the stream, and then the roku reports an error:

Sending channel info to the HDHomeRun:
hdhomerun_config 1037BD58 set /tuner1/channel auto:665000000
Sending program info to the HDHomeRun:
hdhomerun_config 1037BD58 set /tuner1/program 3
Activating re-stream:
hdhomerun_config 1037BD58 set /tuner1/target 192.168.1.20:23113
Sending Plex the URI:
http://192.168.1.20:23013
libdvbpsi error (PSI decoder): TS discontinuity (received 1, expected 0) for PID 0
libdvbpsi error (PSI decoder): TS discontinuity (received 8, expected 0) for PID 48

You can see there is a single libdvbpsi error when requesting from the mac, and two libdvbpsi errors when requesting from the roku.

Any ideas?  Anyone have this working with the Roku HD?

The libdvbpsi errors are coming from VLC and they're "normal"... many are getting the error but streams work.

I only have a Roku 2 XD and Roku 3 and streams work fine... since you can see them on the Mac we know it's, generally, working and if you're seeing those libdvbpsi errors from the Roku connection we also know the stream server was setup and ready... the only thing left would be to play with the Plex settings on the Roku to see if you can get Plex to transcode the stream into a format the Roku can display. I know that on the streaming to my Roku 2 XD is 10x slower than it is on my Roku 3 and I've left the transcode settings to auto.

Had to re-install my server (stupid mistake), and now I cannot seem to get the plugin working ... 

When I try to easy_install vlc, I get this:

sudo easy_install vlc
Searching for vlc
Best match: vlc 0.0.1
Processing vlc-0.0.1-py2.7.egg
vlc 0.0.1 is already the active version in easy-install.pth

Using /usr/local/lib/python2.7/dist-packages/vlc-0.0.1-py2.7.egg
Processing dependencies for vlc
Searching for appscript
Reading http://pypi.python.org/simple/appscript/
Best match: appscript 1.0.1
Downloading https://pypi.python.org/packages/source/a/appscript/appscript-1.0.1.tar.gz#md5=6447b3bef966613bb5ddaedfe32c4558
Processing appscript-1.0.1.tar.gz
Running appscript-1.0.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-Zwonfz/appscript-1.0.1/egg-dist-tmp-w_uqde
appscript_2x/ext/ae.c:11:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: Setup script exited with error: command ‘gcc’ failed with exit status 1

and when I try to load the plugin in PlexWeb I just get "This channel is currently unavailable"

Any thoughts?

Thanks!

@The DBP

Maybe try

pip install vlc --update

Had to re-install my server (stupid mistake), and now I cannot seem to get the plugin working ... 

When I try to easy_install vlc, I get this:

sudo easy_install vlc
Searching for vlc
Best match: vlc 0.0.1
Processing vlc-0.0.1-py2.7.egg
vlc 0.0.1 is already the active version in easy-install.pth

Using /usr/local/lib/python2.7/dist-packages/vlc-0.0.1-py2.7.egg
Processing dependencies for vlc
Searching for appscript
Reading http://pypi.python.org/simple/appscript/
Best match: appscript 1.0.1
Downloading https://pypi.python.org/packages/source/a/appscript/appscript-1.0.1.tar.gz#md5=6447b3bef966613bb5ddaedfe32c4558
Processing appscript-1.0.1.tar.gz
Running appscript-1.0.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-Zwonfz/appscript-1.0.1/egg-dist-tmp-w_uqde
appscript_2x/ext/ae.c:11:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: Setup script exited with error: command ‘gcc’ failed with exit status 1

and when I try to load the plugin in PlexWeb I just get "This channel is currently unavailable"

Any thoughts?

Thanks!

Looks like you need the python headers. Install python-dev (or similar package for your distro):

$ sudo apt-get install python-dev

Thanks for the help guys ... so I installed the python-dev package, rebooted, and tried to do "sudo easy_install vlc" once more, and here's what I get:

Searching for vlc

Best match: vlc 0.0.1

Processing vlc-0.0.1-py2.7.egg

vlc 0.0.1 is already the active version in easy-install.pth

Using /usr/local/lib/python2.7/dist-packages/vlc-0.0.1-py2.7.egg
Processing dependencies for vlc
Searching for appscript
Reading https://pypi.python.org/simple/appscript/
Best match: appscript 1.0.1
Downloading https://pypi.python.org/packages/source/a/appscript/appscript-1.0.1.tar.gz#md5=6447b3bef966613bb5ddaedfe32c4558
Processing appscript-1.0.1.tar.gz
Writing /tmp/easy_install-ze9f1c/appscript-1.0.1/setup.cfg
Running appscript-1.0.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ze9f1c/appscript-1.0.1/egg-dist-tmp-PCQgIm
In file included from appscript_2x/ext/ae.c:12:0:
appscript_2x/ext/aetoolbox.h:17:27: fatal error: Carbon/Carbon.h: No such file or directory
compilation terminated.
error: Setup script exited with error: command 'gcc' failed with exit status 1

I also attempted "pip install vlc" (it claims there is no --update option) and that didn't work either:

In file included from appscript_2x/ext/ae.c:12:0:

appscript_2x/ext/aetoolbox.h:17:27: fatal error: Carbon/Carbon.h: No such file or directory

compilation terminated.

error: command 'gcc' failed with exit status 1

In file included from appscript_2x/ext/ae.c:12:0:

appscript_2x/ext/aetoolbox.h:17:27: fatal error: Carbon/Carbon.h: No such file or directory

compilation terminated.

error: command ‘gcc’ failed with exit status 1

Here's my question - should I be seeing references to Carbon at all?  I'm on Linux so I'm not sure why that's coming up ...

Thanks all!

Also, when I start the server it seems to fire up just fine.

Still trying to get this working after my re-install.

At this point, I can load the plug-in, but the only item it shows is the Settings, which when I try to select it doesn't do anything.

I've changed owner and group to "plex" and permissions to 775 for the .bundle

Server scanned for channels and started up with no problem

IP set to manual IP of my server and also 127.0.0.1, neither work

Gah!  This is killing me, I had it running, not sure what the problem is now ... 


Still trying to get this working after my re-install.

At this point, I can load the plug-in, but the only item it shows is the Settings, which when I try to select it doesn't do anything.

I've changed owner and group to "plex" and permissions to 775 for the .bundle

Server scanned for channels and started up with no problem

IP set to manual IP of my server and also 127.0.0.1, neither work

Gah!  This is killing me, I had it running, not sure what the problem is now ... 

It doesn't look like there's a problem with the Plex plug-in, it looks like you need to get the HDSurferWave server up and running first.

The installation requirements are coming from VLC dependency. "Processing dependencies for vlc"

Did you ensure that VLC is installed on the system?

$ sudo apt-get install vlc

If that needs to be installed do it and try the eay_install again as it might install the other weird python library dependencies along with it...

What distro are you running?

It doesn't look like there's a problem with the Plex plug-in, it looks like you need to get the HDSurferWave server up and running first.

The installation requirements are coming from VLC dependency. "Processing dependencies for vlc"

Did you ensure that VLC is installed on the system?

$ sudo apt-get install vlc

If that needs to be installed do it and try the eay_install again as it might install the other weird python library dependencies along with it...

What distro are you running?

I'm running Elementary OS Luna, which is pretty much Ubuntu 12.04 ... I've had VLC installed the whole time.  I also tried installing VLC from the official VLC PPA as opposed to the Ubuntu repos.  The error message seems to indicate it's looking for a Carbon.h file during compiling, but isn't that Mac specific?  I don't think there's any Carbon libraries for Linux...

Server is loaded and running fine, but I can't get the plugin to do anything.  It shows the Preferences item but won't actually go into the Preferences...

Is "easy_install vlc" even necessary if I have installed VLC from PPA?

Has anyone got this running on an unRAID box yet?  Thanks!

Any updates on the Windows version? Thanks, this looks phenomenal!

TwoOneSix,

Have you seen 'wallop'?

https://github.com/maddox/wallop

Maybe it could simplify development/installation even more, if it was incorporated in a Plex channel.

TwoOneSix,

Have you seen 'wallop'?

https://github.com/maddox/wallop

Maybe it could simplify development/installation even more, if it was incorporated in a Plex channel.

Doesn't Wallop only work on the newer SD devices? It doesn't support the HDHR1 or HDHR3.

https://github.com/maddox/wallop/issues/1

Doesn't Wallop only work on the newer SD devices? It doesn't support the HDHR1 or HDHR3.

https://github.com/maddox/wallop/issues/1

Thanks for the info, you're right, too bad, I hadn't seen that. I have a HDHR3 myself.

When the new HDHR4's with built-in transcoding comes out in the next couple of months, it should be possible to do a really nice Plex channel (that doesn't tax the CPU at all) :)

Is "easy_install vlc" even necessary if I have installed VLC from PPA?

Any updates on your progress getting things running? Have you tried launcing hdhomerun_config_gui to see if you can discover and view the streams outside of HDSurferWave?

Sorry I've been slow to respond to this thread... life...happens. :-)