[dev] CetonTV+HDHomeRun - Watch TV on XBMC (WIN/OSX)

  Thread Rating:
  • 10 Votes - 4.3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
mcheng89 Offline
Fan
Posts: 408
Joined: Jan 2012
Reputation: 4
Post: #706
(2012-08-08 01:52)gman3042 Wrote:  
(2012-08-07 05:06)mcheng89 Wrote:  I'm not sure... I think I'm gonna add direct streaming to the web interface. That way we can narrow down whether the issue is just with XBMC or the server stops streaming.

that would be great.. then i can test and let you know..

mpruett: here is my channelmap.csv...

http://pastebin.com/9ah4TJF0

v2.2.3 - added direct streaming for web interface
http://www.mediafire.com/?etgxg2xw0yjmddv
find quote
gman3042 Offline
Fan
Posts: 318
Joined: Feb 2011
Reputation: 0
Post: #707
ok.. just ran that for a little bit.. basically running the same way xbmc runs.. it will be good for 10-15 minutes and then pixelate.. or it could go 2-3 minutes and then pixelate.. so it looks like its an issue with the server.

i cant reiterate how perfect transcoding is tho for the slingbox esque stuff.. but.. direct stream still pixelates more than transcoding..
find quote
angrycamel Offline
Senior Member
Posts: 234
Joined: Dec 2008
Reputation: 8
Post: #708
Using HD Homerun Prime, VLC version vlc-2.0.2-win32, CetonTV v2.2.3

I'm getting an error when starting script.cetontv in XBMC. RemoteCeton starts fine and indicates that it can see the plugin startup and then I see it respond with the stream, but all I get is an error. The xbmc log seems to imply its not getting anything from the stream.

EDIT 2:
I am getting a similar error in the latest windows Eden PVR build using the Ceton PVR addon. I must have something broken in the back for it to effect both the same way. Any help is appreciated. Thanks!

Code:
script.cetontv-EPGWindow: Media Path is C:\Users\Rob\AppData\Roaming\XBMC\addons\script.cetontv\resources\skins\default\​media/
23:21:26 T:5448  NOTICE: Media Path is C:\Users\Rob\AppData\Roaming\XBMC\addons\script.cetontv\resources\skins\default\​media/
23:21:26 T:5448  NOTICE: SECURITY ENABLED: true
23:21:26 T:5448  NOTICE: SETTING SECURITY INFO
23:21:26 T:5292   DEBUG: ------ Window Deinit (DialogProgress.xml) ------
23:21:26 T:5448  NOTICE: RESOLUTION SETTING: 1
23:21:26 T:5448  NOTICE: RESOLUTION MAPPED VALUE: 240
23:21:26 T:5448  NOTICE: QUALITY SETTING: 0
23:21:26 T:5448  NOTICE: QUALITY MAPPED VALUE: 100
23:21:26 T:5448  NOTICE: GET STREAM URL: http://127.0.0.1:8555/getStreamUrl?tuner=1&transcodeBitrate=100&transcodeResolution=240
23:21:26 T:5448  NOTICE: REMOTE CETON STREAM URL: http://127.0.0.1:8556/
23:21:26 T:5448  NOTICE: SETTING SECURITY INFO
23:21:26 T:5448   DEBUG: script.cetontv-TVOverlay: setChannel 5
23:21:26 T:5448  NOTICE: SETTING SECURITY INFO
23:21:27 T:5292    INFO: XCURL::DllLibCurlGlobal::easy_aquire - Created session to http://127.0.0.1
23:21:27 T:5292   DEBUG: CFileCurl::GetMimeType - http://127.0.0.1:8556/ -> video/MP2T
23:21:27 T:5292   DEBUG: CPlayerCoreFactory::GetPlayers(http://127.0.0.1:8556/)
23:21:27 T:5292   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: system rules
23:21:27 T:5292   DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: system rules
23:21:27 T:5292   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: streams
23:21:27 T:5292   DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: streams
23:21:27 T:5292   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: flv/aacp/sdp
23:21:27 T:1256   DEBUG: Thread CDVDPlayer start, auto delete: 0
23:21:27 T:1256  NOTICE: Creating InputStream
23:21:27 T:1256   DEBUG: CFileCache::Open - opening <> using cache
23:21:27 T:1256   DEBUG: FileCurl::Open(08DE9B68) http://127.0.0.1:8556/
23:21:27 T:5292   DEBUG: ------ Window Init (DialogBusy.xml) ------
23:21:28 T:5292   DEBUG: CWinEventsWin32::WndProcWindow is active
23:21:28 T:5292   DEBUG: CWinEventsWin32::WndProc: Focus switched to process C:\Program Files\CetonTV\remoteCeton\remoteCeton.exe
23:21:33 T:5292   DEBUG: ------ Window Deinit (Pointer.xml) ------
23:21:37 T:1256  NOTICE: Creating Demuxer
23:21:37 T:5308   DEBUG: Thread XFILE::CFileCache start, auto delete: 0
23:21:37 T:5308    INFO: CFileCache::Process - Hit eof.
23:21:37 T:1256   ERROR: CDVDDemuxFFmpeg::Open - error probing input format, http://127.0.0.1:8556/
23:21:37 T:1256   ERROR: CDVDPlayer::OpenDemuxStream - Error creating demuxer
23:21:37 T:1256  NOTICE: CDVDPlayer::OnExit()
23:21:37 T:1256  NOTICE: CDVDPlayer::OnExit() deleting input stream
23:21:37 T:5308   DEBUG: Thread XFILE::CFileCache 5308 terminating
23:21:37 T:1256   DEBUG: Thread CDVDPlayer 1256 terminating
23:21:37 T:5292   DEBUG: CAnnouncementManager - Announcement: OnStop from xbmc
23:21:37 T:5292   DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnStop
23:21:37 T:5292   ERROR: Playlist Player: skipping unplayable item: 0, path [http://127.0.0.1:8556/]
23:21:37 T:5292   DEBUG: Playlist Player: no more playable items... aborting playback
23:21:37 T:5292  NOTICE: CDVDPlayer::CloseFile()
23:21:37 T:5292 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
23:21:37 T:5292  NOTICE: DVDPlayer: waiting for threads to exit
23:21:37 T:5292  NOTICE: DVDPlayer: finished waiting
23:21:37 T:5292   DEBUG: CFileCurl::GetMimeType - http://127.0.0.1:8556/ -> video/MP2T
23:21:37 T:5292   DEBUG: CPlayerCoreFactory::GetPlayers(http://127.0.0.1:8556/)
23:21:37 T:5348   DEBUG: Thread CDVDPlayer start, auto delete: 0
23:21:37 T:5348  NOTICE: Creating InputStream
23:21:37 T:5348   DEBUG: CFileCache::Open - opening <> using cache
23:21:37 T:5348   DEBUG: FileCurl::Open(08DE96D8) http://127.0.0.1:8556/
23:21:37 T:5292   DEBUG: ------ Window Init (DialogBusy.xml) ------
23:21:40 T:5292    INFO: XCURL::DllLibCurlGlobal::CheckIdle - Closing session to http://feeds.feedburner.com (easy=02F49D48, multi=01488520)
23:21:47 T:5348  NOTICE: Creating Demuxer
23:21:47 T:4204   DEBUG: Thread XFILE::CFileCache start, auto delete: 0
23:21:47 T:4204    INFO: CFileCache::Process - Hit eof.
23:21:47 T:5348   ERROR: CDVDDemuxFFmpeg::Open - error probing input format, http://127.0.0.1:8556/
23:21:47 T:5348   ERROR: CDVDPlayer::OpenDemuxStream - Error creating demuxer
23:21:47 T:5348  NOTICE: CDVDPlayer::OnExit()
23:21:47 T:5348  NOTICE: CDVDPlayer::OnExit() deleting input stream
23:21:47 T:4204   DEBUG: Thread XFILE::CFileCache 4204 terminating
23:21:47 T:5348   DEBUG: Thread CDVDPlayer 5348 terminating
23:21:47 T:5292   DEBUG: CAnnouncementManager - Announcement: OnStop from xbmc
23:21:47 T:5292   DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnStop
23:21:47 T:5292   ERROR: Playlist Player: skipping unplayable item: 0, path [http://127.0.0.1:8556/]
23:21:47 T:5292   DEBUG: Playlist Player: one or more items failed to play... aborting playback
23:21:47 T:5292    INFO: Loading skin file: DialogOK.xml

I have tried direct stream and transcoding to smallest.

EDIT:

Added the remoteCeton log below.
Code:
[8.7.2012.23:36:40]: ===================================================
[8.7.2012.23:36:40]: Initializing : remoteCeton v2.2.2 | mcheng827@gmail
[8.7.2012.23:36:40]: ===================================================

[8.7.2012.23:36:40]: Found Device: HDHomeRun Prime Tuner 1314D5C5 DRI
[8.7.2012.23:36:40]: ===================================================
[8.7.2012.23:36:40]: Ceton: Loaded channel map from file
[8.7.2012.23:36:40]: ===================================================
[8.7.2012.23:36:40]: Tuner[1]: Loading tuner from device
[8.7.2012.23:36:40]: Tuner[1]: HDHomeRun Prime Tuner 1314D5C5-0
[8.7.2012.23:36:40]: Tuner[2]: Loading tuner from device
[8.7.2012.23:36:40]: Tuner[2]: HDHomeRun Prime Tuner 1314D5C5-1
[8.7.2012.23:36:40]: Tuner[3]: Loading tuner from device
[8.7.2012.23:36:40]: Tuner[3]: HDHomeRun Prime Tuner 1314D5C5-2
[8.7.2012.23:36:40]: ===================================================
[8.7.2012.23:36:40]: Server: Starting up scheduler thread
[8.7.2012.23:36:40]: Server: Starting up listener thread
[8.7.2012.23:36:40]: Scheduler: Sleeping 15800 seconds until next task
[8.7.2012.23:36:40]: Server: Press enter to shutdown...
[8.7.2012.23:36:40]: ===================================================
[8.7.2012.23:36:54]: Server: Client requested stream url for Tuner[1]
[8.7.2012.23:36:54]: Server: Client requested channel map data
[8.7.2012.23:36:54]: Tuner[1]: Changing channel number to 512
[8.7.2012.23:36:54]: "C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.ex
e" FFFFFFFF set /tuner0/channel auto:507000000
[8.7.2012.23:36:54]: "C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.ex
e" FFFFFFFF set /tuner0/program 1512
[8.7.2012.23:36:54]: Tuner[1]: Program number is 1512
[8.7.2012.23:36:54]: Tuner[1]: Channel name is WWBT DT
[8.7.2012.23:36:54]: Tuner[1]: hdhomerun://192.168.1.9/0
[8.7.2012.23:36:54]: Tuner[1]: Starting video stream
[8.7.2012.23:36:54]: VLC[1]: Starting VLC instance with remoteVLC plugin
[8.7.2012.23:36:54]: VLC[1]: Transcode settings [type=ts,vb=100,res=240]
[8.7.2012.23:36:54]: VLC[1]: Streaming to http://localhost:8556
[8.7.2012.23:36:54]: Scheduler: Sleeping 90 seconds until next task
[8.7.2012.23:38:24]: Scheduler: Checking for tasks to run
[8.7.2012.23:38:24]: Scheduler: Sleeping 90 seconds until next task
[8.7.2012.23:39:54]: Scheduler: Checking for tasks to run
[8.7.2012.23:39:54]: Scheduler: No clients streaming on Tuner[1]
[8.7.2012.23:39:54]: Scheduler: Tuner is inactive. Shutting down stream
[8.7.2012.23:39:54]: VLC[1]: Closing VLC instance
[8.7.2012.23:39:54]: Tuner[1]: Stopping video stream
[8.7.2012.23:39:54]: Scheduler: Sleeping 15606 seconds until next task

Integrating with XBMC through the JSON-RPC interface?

Try the JSON-RPC Browser

[Image: hUryuD3.png]
(This post was last modified: 2012-08-10 01:10 by angrycamel.)
find quote
mpruett Offline
Junior Member
Posts: 11
Joined: Oct 2011
Reputation: 0
Post: #709
mcheng thanks for the post of the channel map, that helped quite a bit, got epg working on my test channel at least, but still having some issues getting video and have a few questions:

here is the frequency i used for my test channels:
SCANNING: 639000000 (us-irc:93, us-cable:93)
LOCK: qam256 (ss=90 snq=100 seq=100)
TSID: 0x0045
PROGRAM 6: 0 (encrypted)
PROGRAM 7: 0
PROGRAM 12: 0

here is my custom channelmap.csv:
12,abc,0,639000000
13,nbc,0,639000000
14,hbo,0,639000000

i open this network stream in vlc:
http://localhost:8555/play?channel=12&tuner=2

this is what is displayed in the CLI:

[8.8.2012.0:50:36]: Tuner[2]: Changing channel number to 12
[8.8.2012.0:50:36]: "C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe
" FFFFFFFF set /tuner1/channel auto:639000000
[8.8.2012.0:50:36]: "C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe
" FFFFFFFF set /tuner1/program 0
[8.8.2012.0:50:36]: Tuner[2]: Program number is 0
[8.8.2012.0:50:36]: Tuner[2]: Channel name is abc
[8.8.2012.0:50:36]: Tuner[2]: hdhomerun://192.168.0.10/1
[8.8.2012.0:50:36]: Tuner[2]: Starting video stream
[8.8.2012.0:50:36]: VLC[2]: Starting VLC instance with remoteVLC plugin
[8.8.2012.0:50:36]: VLC[2]: Streaming to http://localhost:8557
[8.8.2012.0:50:36]: Scheduler: Sleeping 90 seconds until next task

my question is it appears i will have to edit both the channel scan.txt and the channelmap.csv for it tune to the right "program" on the specific qam, correct?
also it seems like i should have gotten some video based on the output from the cli do you have any ideas as to why i didnt?

thanks for any info you can provide.
find quote
mcheng89 Offline
Fan
Posts: 408
Joined: Jan 2012
Reputation: 4
Post: #710
Created a github - https://github.com/CetonTV/

pushing code right now, so you might not see it yet...
(This post was last modified: 2012-08-10 03:27 by mcheng89.)
find quote
gman3042 Offline
Fan
Posts: 318
Joined: Feb 2011
Reputation: 0
Post: #711
great idea mcheng.. i see you are aiming for a all platform solution.. sounds great
(This post was last modified: 2012-08-12 08:02 by gman3042.)
find quote
angrycamel Offline
Senior Member
Posts: 234
Joined: Dec 2008
Reputation: 8
Post: #712
(2012-08-08 05:27)angrycamel Wrote:  Using HD Homerun Prime, VLC version vlc-2.0.2-win32, CetonTV v2.2.3

I'm getting an error when starting script.cetontv in XBMC. RemoteCeton starts fine and indicates that it can see the plugin startup and then I see it respond with the stream, but all I get is an error. The xbmc log seems to imply its not getting anything from the stream.

If anyone has a second, I haven't been able to get past the problem I reported in post 708. I appreciate any help you guys can offer.

Integrating with XBMC through the JSON-RPC interface?

Try the JSON-RPC Browser

[Image: hUryuD3.png]
(This post was last modified: 2012-08-18 06:10 by angrycamel.)
find quote
emann Offline
Junior Member
Posts: 13
Joined: Aug 2012
Reputation: 0
Post: #713
Ok, I've read through this ENTIRE thread.

My Ceton is on order and can't wait to try all this.

One question for the developer:

Where did you find the info on how to talk to the Ceton card and to receive the stream?

Before I found this thread, I've looked everywhere I can to find any info, but have been unsuccessful.

Is there a spec or a developers api that you used?

I was looking to do something like this myself until I found this thread.

Thanks.
find quote
Adiventure Offline
Junior Member
Posts: 8
Joined: Aug 2012
Reputation: 0
Post: #714
Let me start by saying this is a really excellent piece of work, thanks.

I finished all my setup I believe, but have run into two I believe separate errors. The first was mentioned a few times earlier in the thread, when i try and connect from outside of my network i get to the ui but when I click play it says loading until the server times out (after 90 seconds). The ports are forwarding 8554-9, and windows firewall is allowing the program through. Am I missing something?

The second is a smaller thing. When looking at the guide things look like this: http://postimage.org/image/rlhv3ms1l/
if I mouse over it you can faintly read the text but it is incredibly faint. In the web interface it looks fine.

I have looked through the thread but didn't see anything.
Thanks a bunch.
(This post was last modified: 2012-08-25 02:44 by Adiventure.)
find quote
mcheng89 Offline
Fan
Posts: 408
Joined: Jan 2012
Reputation: 4
Post: #715
(2012-08-25 02:29)Adiventure Wrote:  Let me start by saying this is a really excellent piece of work, thanks.

I finished all my setup I believe, but have run into two I believe separate errors. The first was mentioned a few times earlier in the thread, when i try and connect from outside of my network i get to the ui but when I click play it says loading until the server times out (after 90 seconds). The ports are forwarding 8554-9, and windows firewall is allowing the program through. Am I missing something?

The second is a smaller thing. When looking at the guide things look like this: http://postimage.org/image/rlhv3ms1l/
if I mouse over it you can faintly read the text but it is incredibly faint. In the web interface it looks fine.

I have looked through the thread but didn't see anything.
Thanks a bunch.

Ok I completely forgot that vlc is streaming the video. In windows firewall, you also have to allow vlc to be accessed.

EDIT: nvm, if its working in locally, then theres nothing wrong with windows firewall... could be a port forward issue or a client issue
(This post was last modified: 2012-08-26 03:16 by mcheng89.)
find quote
Adiventure Offline
Junior Member
Posts: 8
Joined: Aug 2012
Reputation: 0
Post: #716
(2012-08-25 22:13)mcheng89 Wrote:  
(2012-08-25 02:29)Adiventure Wrote:  Let me start by saying this is a really excellent piece of work, thanks.

I finished all my setup I believe, but have run into two I believe separate errors. The first was mentioned a few times earlier in the thread, when i try and connect from outside of my network i get to the ui but when I click play it says loading until the server times out (after 90 seconds). The ports are forwarding 8554-9, and windows firewall is allowing the program through. Am I missing something?

The second is a smaller thing. When looking at the guide things look like this: http://postimage.org/image/rlhv3ms1l/
if I mouse over it you can faintly read the text but it is incredibly faint. In the web interface it looks fine.

I have looked through the thread but didn't see anything.
Thanks a bunch.

Ok I completely forgot that vlc is streaming the video. In windows firewall, you also have to allow vlc to be accessed.

I actually thought of that too and vlc was being allowed through. I just tried again with windows firewall disabled to the same effect.
find quote
gman3042 Offline
Fan
Posts: 318
Joined: Feb 2011
Reputation: 0
Post: #717
mcheng, any word on an updated hdhomerun server? i've been running .strm files from xbmc using the hdhr prime and there hasn't been any lag at all or stops. it's gotta be something with the ceton server. everything else about the app is perfect Smile
(This post was last modified: 2012-08-26 15:02 by gman3042.)
find quote
dsherley9 Offline
Junior Member
Posts: 4
Joined: Aug 2012
Reputation: 0
Post: #718
It says you can set it up to stream outside of your house. Does anyone know how to set that up? Is it possible to use the ceton tv web interface?
(This post was last modified: 2012-08-26 21:31 by dsherley9.)
find quote
gman3042 Offline
Fan
Posts: 318
Joined: Feb 2011
Reputation: 0
Post: #719
forward the ports 8555-8559 on your router and then try accessing from an external ip
find quote
dsherley9 Offline
Junior Member
Posts: 4
Joined: Aug 2012
Reputation: 0
Big Grin  RE: [dev] CetonTV - Watch TV on XBMC
Post: #720
Thanks, was able to connect to it via my external ip. Smile
(This post was last modified: 2012-08-28 01:32 by dsherley9.)
find quote
Post Reply