Kodi Community Forum
Release CetonTV+HDHomeRun - Watch TV on XBMC (WIN/OSX) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: Release CetonTV+HDHomeRun - Watch TV on XBMC (WIN/OSX) (/showthread.php?tid=119865)



- europorsche914 - 2012-03-06

uspino Wrote:I have opened ports 8555 to 8563. I found out I can stream in GoodPlayer if I use the internal 192.168.1.X address, but not it I use my dyndns address or my external IP...

You must have a router/port forwarding problem because if it works within the your LAN it should work outside your LAN provided you have your router setup properly Wink


- LehighBri - 2012-03-06

mcheng89 Wrote:@synapseattack: uploading new version... done 1.9.0

@ceton users: please test this Smile... cleaned up some code...
DELETE YOUR OLD SETTINGS FILE

1.9.0 working great for me on my ceton!

2 questions:
-Any update on supporting 1080p resolution on iOS?
-Any update on deinterlacing the iOS stream?

Keep up the fantastic work!


- mcheng89 - 2012-03-06

LehighBri Wrote:1.9.0 working great for me on my ceton!

2 questions:
-Any update on supporting 1080p resolution on iOS?
-Any update on deinterlacing the iOS stream?

Keep up the fantastic work!

-I'm thinking about 1080p since no iOS devices support it yet
-Will test it later

Todo (v2.0 - fix all of these):
- Fix iOS favorite if epg is disabled
- Error check hdhomerun stream commands
- Airplay iOS streaming
- iPad Inteface
- Fill in info bar + EPG description
- Channel logo api
- Channels filter list
- Deinterlace


- synapseattack - 2012-03-06

mcheng89 Wrote:@synapseattack: uploading new version... done 1.9.0

@ceton users: please test this Smile... cleaned up some code...

DELETE YOUR OLD SETTINGS FILE (INCLUDING HDHOMERUN TEST USERS)

Awesome, it completed the scan. I'm just now starting to play around with the rest.

Couple quick notes that you may already be aware of...
  • The tuner dropdown has four tuners in it even through my line was set to "HDHOMERUN_TUNER=3"
  • "Server: Client requested channel map data" shows up over and over when I got to the web page for it
  • I assume the above error is why I don't have any channel options on the web page and haven't been able to tune a channel.


Actually I'm a little confused by this
Quote:DELETE YOUR OLD SETTINGS FILE (INCLUDING HDHOMERUN TEST USERS)
. What do you mean test users?


- mcheng89 - 2012-03-06

synapseattack Wrote:Awesome, it completed the scan. I'm just now starting to play around with the rest.

Couple quick notes that you may already be aware of...
  • The tuner dropdown has four tuners in it even through my line was set to "HDHOMERUN_TUNER=3"
  • "Server: Client requested channel map data" shows up over and over when I got to the web page for it
  • I assume the above error is why I don't have any channel options on the web page and haven't been able to tune a channel.


Actually I'm a little confused by this . What do you mean test users?

It was made for Ceton... all clients will need an update.
Are you using the webpage/xbmc client/iOS client?

just delete the settings.conf file with the new version... ignore the test part Wink
if you started fresh, this doesnt apply to you


- uspino - 2012-03-06

europorsche914 Wrote:You must have a router/port forwarding problem because if it works within the your LAN it should work outside your LAN provided you have your router setup properly Wink

I can not beleive I had forgotten to open the ports on the router! Stupid, stupid, stupid. Thanks europorsche914Oo


- mcheng89 - 2012-03-06

i think i broke something with the iOS webapp...

interesting... a web app wont load the icon/load screen if http authentication is enabled


- synapseattack - 2012-03-06

mcheng89 Wrote:It was made for Ceton... all clients will need an update.
Are you using the webpage/xbmc client/iOS client?

just delete the settings.conf file with the new version... ignore the test part Wink
if you started fresh, this doesnt apply to you

I read that thinking users and in users set up to access the server. Ok... back to reality for me...

I'm having a problem in both Firefox playback and XBMC Client addon playback. Assuming that these are related I'm posting the logs from the failed XBMC client addon playback.

Channel Map: http://pastebin.com/4JFQx6UC
XBMC Log: http://pastebin.com/C3s1w7XS
remoteCenton Log:
Code:
===================================================
Initializing : remoteCeton v1.9.0 | mcheng827@gmail
===================================================

Found Device: HDHomeRun Prime Tuner 1310E7CE DRI
===================================================
Ceton: Loaded channel map from file
===================================================
Tuner[1]: Loading tuner from device
Tuner[1]: HDHomeRun Prime Tuner 1310E7CE-0
Tuner[2]: Loading tuner from device
Tuner[2]: HDHomeRun Prime Tuner 1310E7CE-1
Tuner[3]: Loading tuner from device
Tuner[3]: HDHomeRun Prime Tuner 1310E7CE-2
===================================================
Server: Starting up scheduler thread
Server: Starting up listener thread
Server: Press enter to shutdown...
===================================================
Server: Client requested stream url for Tuner[3]
Server: Client requested channel map data
Tuner[3]: Changing channel number to 2
Tuner[3]: Program number is 1001
Tuner[3]: Channel name is  WCBS
Tuner[3]: udp://@:5002
Tuner[3]: Starting video stream
VLC[3]: Starting VLC instance with remoteVLC plugin
VLC[3]: Streaming to http://localhost:8558
Error: CreateProcess() returned error 2.
VLC[3]: Attempt 1of 5 failed...
Tuner[3]: udp://@:5002
Tuner[3]: Starting video stream
VLC[3]: Starting VLC instance with remoteVLC plugin
VLC[3]: Streaming to http://localhost:8558
Error: CreateProcess() returned error 2.
VLC[3]: Attempt 2of 5 failed...
Tuner[3]: udp://@:5002
Tuner[3]: Starting video stream
VLC[3]: Starting VLC instance with remoteVLC plugin
VLC[3]: Streaming to http://localhost:8558
Error: CreateProcess() returned error 2.
VLC[3]: Attempt 3of 5 failed...
Tuner[3]: udp://@:5002
Tuner[3]: Starting video stream
VLC[3]: Starting VLC instance with remoteVLC plugin
VLC[3]: Streaming to http://localhost:8558
Error: CreateProcess() returned error 2.
VLC[3]: Attempt 4of 5 failed...
Tuner[3]: udp://@:5002
Tuner[3]: Starting video stream
VLC[3]: Starting VLC instance with remoteVLC plugin
VLC[3]: Streaming to http://localhost:8558
Error: CreateProcess() returned error 2.
VLC[3]: Attempt 5of 5 failed...
VLC[3]: Error starting stream. Shutting down



- mcheng89 - 2012-03-06

synapseattack Wrote:I read that thinking users and in users set up to access the server. Ok... back to reality for me...

I'm having a problem in both Firefox playback and XBMC Client addon playback. Assuming that these are related I'm posting the logs from the failed XBMC client addon playback.

Channel Map: http://pastebin.com/4JFQx6UC
XBMC Log: http://pastebin.com/C3s1w7XS
remoteCenton Log:
Code:
===================================================
Initializing : remoteCeton v1.9.0 | mcheng827@gmail
===================================================

Found Device: HDHomeRun Prime Tuner 1310E7CE DRI
===================================================
Ceton: Loaded channel map from file
===================================================
Tuner[1]: Loading tuner from device
Tuner[1]: HDHomeRun Prime Tuner 1310E7CE-0
Tuner[2]: Loading tuner from device
Tuner[2]: HDHomeRun Prime Tuner 1310E7CE-1
Tuner[3]: Loading tuner from device
Tuner[3]: HDHomeRun Prime Tuner 1310E7CE-2
===================================================
Server: Starting up scheduler thread
Server: Starting up listener thread
Server: Press enter to shutdown...
===================================================
Server: Client requested stream url for Tuner[3]
Server: Client requested channel map data
Tuner[3]: Changing channel number to 2
Tuner[3]: Program number is 1001
Tuner[3]: Channel name is  WCBS
Tuner[3]: udp://@:5002
Tuner[3]: Starting video stream
VLC[3]: Starting VLC instance with remoteVLC plugin
VLC[3]: Streaming to http://localhost:8558
Error: CreateProcess() returned error 2.
VLC[3]: Attempt 1of 5 failed...
Tuner[3]: udp://@:5002
Tuner[3]: Starting video stream
VLC[3]: Starting VLC instance with remoteVLC plugin
VLC[3]: Streaming to http://localhost:8558
Error: CreateProcess() returned error 2.
VLC[3]: Attempt 2of 5 failed...
Tuner[3]: udp://@:5002
Tuner[3]: Starting video stream
VLC[3]: Starting VLC instance with remoteVLC plugin
VLC[3]: Streaming to http://localhost:8558
Error: CreateProcess() returned error 2.
VLC[3]: Attempt 3of 5 failed...
Tuner[3]: udp://@:5002
Tuner[3]: Starting video stream
VLC[3]: Starting VLC instance with remoteVLC plugin
VLC[3]: Streaming to http://localhost:8558
Error: CreateProcess() returned error 2.
VLC[3]: Attempt 4of 5 failed...
Tuner[3]: udp://@:5002
Tuner[3]: Starting video stream
VLC[3]: Starting VLC instance with remoteVLC plugin
VLC[3]: Streaming to http://localhost:8558
Error: CreateProcess() returned error 2.
VLC[3]: Attempt 5of 5 failed...
VLC[3]: Error starting stream. Shutting down

do you have vlc? error 2 is The system cannot find the file specified

everything to setup the program is in the install.txt
including epg data Smile


Hey europorsche914, I'm thinking about unsecuring the /m/ path and use a form/JavaScript login...
Or making a unsecured directory.
Or even a ".unsecure" file with the list of files that can bypass authentication.

The api calls will still be secured though...
Let me know what you think, since you use the path for your web interface.
the webapp doesnt like the http auth Sad

EDIT: Will do a .htsecure file that lists the file in the directory that can bypass security
Similar to apaches .htpasswd/.htaccess stuff? Will cache this in memory, so it doesnt have to be read multiple times.


- synapseattack - 2012-03-06

mcheng89 Wrote:do you have vlc? error 2 is The system cannot find the file specified

everything to setup the program is in the install.txt
including epg data Smile


Hey europorsche914, I'm thinking about unsecuring the /m/ path and use a form/JavaScript login...
Or making a unsecured directory.
Or even a ".unsecure" file with the list of files that can bypass authentication.

The api calls will still be secured though...
Let me know what you think, since you use the path for your web interface.
the webapp doesnt like the http auth Sad

mcheng89 Wrote:do you have vlc? error 2 is The system cannot find the file specified

everything to setup the program is in the install.txt
including epg data Smile


Hey europorsche914, I'm thinking about unsecuring the /m/ path...
Or making a unsecured directory. or javascript login:
http://www.peej.co.uk/articles/http-auth-with-html-forms.html
The api calls will still be secured though...
Let me know what you think, since you use the path for your web interface.

the webapp doesnt like the http auth Sad

Yea VLC2 is installed and what do you know....
C:\Program Files (x86)\VideoLAN\VLC
is not the same as
C:\Program Files\VideoLAN\VLC
This was the start of my problem. Wrong directory.

But after this it still isn't working. I'm going to take a look with fresh eyes tomorrow after work. New log to look at if it would help:
xbmc log: http://pastebin.com/4uyruvJV
remoteCeton:

Code:
===================================================
Initializing : remoteCeton v1.9.0 | mcheng827@gmail
===================================================

Found Device: HDHomeRun Prime Tuner 1310E7CE DRI
===================================================
Ceton: Loaded channel map from file
===================================================
Tuner[1]: Loading tuner from device
Tuner[1]: HDHomeRun Prime Tuner 1310E7CE-0
Tuner[2]: Loading tuner from device
Tuner[2]: HDHomeRun Prime Tuner 1310E7CE-1
Tuner[3]: Loading tuner from device
Tuner[3]: HDHomeRun Prime Tuner 1310E7CE-2
===================================================
Server: Starting up scheduler thread
Server: Starting up listener thread
Scheduler: Sleeping 14970 seconds until next task
Server: Press enter to shutdown...
===================================================
Server: Client requested stream url for Tuner[3]
Server: Client requested channel map data
Tuner[3]: Changing channel number to 2
Tuner[3]: Program number is 1001
Tuner[3]: Channel name is  WCBS
Tuner[3]: udp://@:5002
Tuner[3]: Starting video stream
VLC[3]: Starting VLC instance with remoteVLC plugin
VLC[3]: Setting transcoding params [vb=500,res=480]
VLC[3]: Streaming to http://localhost:8558
Scheduler: Sleeping 90 seconds until next task
Scheduler: Checking for tasks to run
Scheduler: Sleeping 90 seconds until next task
Server: Client requested file 'webfiles/index.html'
Server: Client requested channel map data
Server: Client requested program guide data
Server: Client requested file 'webfiles/index2.html'
Server: Client requested channel map data
Server: Client requested program guide data
Server: Client requested channel map data
Server: Client requested program guide data
Server: Client requested file 'webfiles/resources/sencha-touch-all.js'
Scheduler: Checking for tasks to run
Scheduler: No clients streaming on Tuner[3]
Scheduler: Tuner is inactive. Shutting down stream
VLC[3]: Closing VLC instance
Tuner[3]: Stopping video stream
Scheduler: Sleeping 14662 seconds until next task
Server: Client requested file 'webfiles/iphone.html'
Server: Client requested file 'webfiles/resources/sencha-touch-all.js'
Server: Client requested file 'webfiles/resources/sencha-touch.css'
Server: Client requested channel map data
Server: Client requested channel map data
Server: Client requested channel map data
Server: Client requested channel map data
Server: Client requested channel map data
Server: Client requested channel map data
Server: Client requested channel map data
Server: Client requested channel map data
Server: Client requested channel map data
Server: Client requested channel map data
Server: Client requested channel map data
Server: Client requested channel map data
Server: Client requested channel map data
Server: Client requested file 'webfiles/index.html'
Server: Client requested channel map data
Server: Client requested program guide data
Server: Client requested program guide data
Server: Client requested file 'webfiles/iphone.html'
Server: Client requested file 'webfiles/resources/sencha-touch-all.js'
Server: Client requested file 'webfiles/resources/sencha-touch.css'
Server: Client requested channel map data
Server: Client requested channel map data
Server: Client requested channel map data
Server: Client requested channel map data
Server: Client requested channel map data
Server: Client requested channel map data
Server: Client requested channel map data
Server: Client requested channel map data
Server: Client requested channel map data
Server: Client requested channel map data
Server: Client requested channel map data
Server: Client requested channel map data
Server: Client requested channel map data
Server: Client requested program guide data
Server: Client requested file 'webfiles/iphone.html'
Server: Client requested file 'webfiles/resources/sencha-touch-all.js'
Server: Client requested file 'webfiles/resources/sencha-touch.css'
Tuner[3]: Changing channel number to 105
Tuner[3]: Program number is 124
Tuner[3]: Channel name is  CNN Int (encrypted)
Tuner[3]: udp://@:5002
Tuner[3]: Starting video stream
VLC[3]: Starting VLC instance with remoteVLC plugin
VLC[3]: Setting transcoding params [vb=500,res=320]
VLC[3]: Streaming to http://localhost:8558
Scheduler: Sleeping 90 seconds until next task
Scheduler: Checking for tasks to run
Scheduler: No clients streaming on Tuner[3]
Scheduler: Tuner is inactive. Shutting down stream
VLC[3]: Closing VLC instance
Tuner[3]: Stopping video stream
Scheduler: Sleeping 13947 seconds until next task



- europorsche914 - 2012-03-06

mcheng89 Wrote:do you have vlc? error 2 is The system cannot find the file specified

everything to setup the program is in the install.txt
including epg data Smile


Hey europorsche914, I'm thinking about unsecuring the /m/ path and use a form/JavaScript login...
Or making a unsecured directory.
Or even a ".unsecure" file with the list of files that can bypass authentication.

The api calls will still be secured though...
Let me know what you think, since you use the path for your web interface.
the webapp doesnt like the http auth Sad

EDIT: Will do a .htsecure file that lists the file in the directory that can bypass security
Similar to apaches .htpasswd/.htaccess stuff? Will cache this in memory, so it doesnt have to be read multiple times.

Hmm well javascript login would be probably be the way to go and we can just pass the username and password through to the webgui which it would use to login to the api, that way the html file itself wont contain the credentials..

Side note I finished the logo mapping javascript but it is extremely ram intensive (machine that opened the logosetup.html causes firefox to eat up 1.2GB of ram Eek caused by the large xmltv.xml) but will map correctly all the logos, and once complete everything goes back to normal. logosetup.html is available here

If we have the api handle the callsign or the all of the logo mapping I think it would be better since the xmltv.xml file wouldnt be needed and therefore firefox wouldnt eat up the ram..


- mcheng89 - 2012-03-06

europorsche914 Wrote:Hmm well javascript login would be probably be the way to go and we can just pass the username and password through to the webgui which it would use to login to the api, that way the html file itself wont contain the credentials..

Side note I finished the logo mapping javascript but it is extremely ram intensive (machine that opened the logosetup.html causes firefox to eat up 1.2GB of ram Eek caused by the large xmltv.xml) but will map correctly all the logos, and once complete everything goes back to normal. logosetup.html is available here

If we have the api handle the callsign or the all of the logo mapping I think it would be better since the xmltv.xml file wouldnt be needed and therefore firefox wouldnt eat up the ram..

I have the call sign already... I'll give you the api tonight Smile
(It will be passed to you with the same api to get channel list)

EDIT: Ok here is the function to login. Just do this once Smile
Code:
function login(username, password) {
    xmlhttp=new XMLHttpRequest();
    xmlhttp.open("GET","/login",false,username,password);
    xmlhttp.send();
    if (xmlhttp.status == 200) {
        alert("Login successful!");
                return true;
    }
    alert("Failed to login");
        return false;
}
You can call login() without the username/password to check if you need authentication
EDIT: you dont have to make a login form... I'll make a file with the list of secure files

EDIT: this pseudotv skin feels very wmc-ish...
http://forum.xbmc.org/showthread.php?tid=91906

@synpaseattack: let me know if you need help debugging



Fixed iOS login, Fix iOS favorite if epg is disabled, Added EPG description...

Todo:
- Fill in XBMC info bar
- Channel logo api
- Deinterlace

Other Todo:
- Error check hdhomerun stream commands
- Airplay iOS streaming
- iPad Inteface
- Channels filter list


- ViperJPB - 2012-03-08

So I do not have a XBMC setup yet and am completely a Noob. However I have lots of experience in building computers and was planning on building an HTPC to get rid of my cable box. But from browsing this forum.... am I reading correctly that with this plugin in XBMC and an infiniTV 4 USB tuner....I could get all my TV over a little Apple TV box!? Would you recommend the Apple TV route or a windows based machine? If I went the Windows route I may just purchase a Pulse-Eight box. The updated 1080P Apple TV came out today with the new iPad. That might be a viable option. Thoughts?


- mcheng89 - 2012-03-08

@LehighBri: Will give you deinterlacing today Smile (Its a simple change but I've been lazy Undecided )

@ViperJPB: You need one windows computer to run the program...
Then you can use a AppleTV, iPad/iPhone, Web browser + VLC, XBMC to watch tv anywhere Smile

I'll be back later...


- europorsche914 - 2012-03-08

mcheng89 Wrote:@LehighBri: Will give you deinterlacing today Smile (Its a simple change but I've been lazy Undecided )

@ViperJPB: You need one windows computer to run the program...
Then you can use a AppleTV, iPad/iPhone, Web browser + VLC, XBMC to watch tv anywhere Smile

I'll be back later...

Hey mcheng sorry been a little busy and Ill test the login script hopefully tonight. I wanted to give you a heads up about the deinterlacing in vlc, I spent a lot of time switching between the different settings and found "x" to be the best, no ghosting of the image and no stuttering during motion, so I think that is the one to pick but youll have to check it out