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

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Python Add-on Development (/forumdisplay.php?fid=26)
+--- Thread: [dev] CetonTV+HDHomeRun - Watch TV on XBMC (WIN/OSX) (/showthread.php?tid=119865)



- LehighBri - 2012-02-18 03:25

mcheng89 Wrote:Try these steps:
Run: http://localhost:8555/play?tuner=4&channel=503&transcode=1000
In VLC try playing this stream: http://localhost:8563
Does that work?
.

Yes that works! Still doesn't work in XBMC though...


- mcheng89 - 2012-02-18 03:28

LehighBri Wrote:Yes that works! Still doesn't work in XBMC though...

Ok, so it looks like its something wrong with the XBMC plugin.
Thanks for the help in narrowing that down! Smile
I'm going to take a look at the code. I'll keep you posted.

EDIT: When XBMC runs does it show up does the console window output this line?
Quote:VLC[4]: Starting VLC transcode stream at ...



- LehighBri - 2012-02-18 03:57

mcheng89 Wrote:Ok, so it looks like its something wrong with the XBMC plugin.
Thanks for the help in narrowing that down! Smile
I'm going to take a look at the code. I'll keep you posted.

EDIT: When XBMC runs does it show up does the console window output this line?

No


- mcheng89 - 2012-02-18 04:28

LehighBri Wrote:No

Added more messages to the XBMC plugin:
http://www.mediafire.com/?h235a3vj8yt23te

If you can, can you run this plugin and look at the xbmc log
Can you paste the lines that look like this

Quote:21:28:12 T:6732 NOTICE: QUALITY SETTING: 4
21:28:12 T:6732 NOTICE: QUALITY MAPPED VALUE: 1250
21:28:12 T:6732 NOTICE: GET STREAM URL: http://192.168.1.4:8555/getStreamUrl?tuner=4&transcode=1250
21:28:12 T:6732 NOTICE: REMOTE CETON STREAM URL: http://192.168.1.4:8563/
21:28:14 T:8152 NOTICE: DVDPlayer: Opening: http://192.168.1.4:8563/



- LehighBri - 2012-02-18 05:10

mcheng89 Wrote:Added more messages to the XBMC plugin:
http://www.mediafire.com/?h235a3vj8yt23te

If you can, can you run this plugin and look at the xbmc log
Can you paste the lines that look like this

With Direct Stream, I see the following in xbmc.log:

22:07:40 T:5692 NOTICE: QUALITY SETTING: 0
22:07:40 T:5692 NOTICE: QUALITY MAPPED VALUE: 0
22:07:40 T:5692 NOTICE: GET STREAM URL: http://192.168.1.8:8555/getStreamUrl?tuner=4&transcode=0
22:07:40 T:5692 NOTICE: REMOTE CETON STREAM URL: http://192.168.1.8:8559/
22:07:42 T:7284 NOTICE: DVDPlayer: Opening: http://192.168.1.8:8559/


With 1.25mbps, I see the following:

22:09:30 T:6748 NOTICE: QUALITY SETTING: 4
22:09:30 T:6748 NOTICE: QUALITY MAPPED VALUE: 1250
22:09:30 T:6748 NOTICE: GET STREAM URL: http://192.168.1.8:8555/getStreamUrl?tuner=4&transcode=1250
22:09:30 T:6748 NOTICE: REMOTE CETON STREAM URL: http://192.168.1.8:8563/
22:09:31 T:7284 NOTICE: DVDPlayer: Opening: http://192.168.1.8:8563/
22:09:31 T:7284 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
22:09:31 T:5712 NOTICE: Creating InputStream
22:09:41 T:5712 WARNING: XFILE::CFileCurl::CReadState::FillBuffer: curl failed with code 28
22:09:41 T:5712 ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
22:09:41 T:5712 ERROR: XFILE::CFileCache::Open - failed to open source <http://192.168.1.8:8563/>
22:09:41 T:5712 ERROR: CDVDPlayer::OpenInputStream - error opening [http://192.168.1.8:8563/]
22:09:41 T:5712 NOTICE: CDVDPlayer::OnExit()
22:09:41 T:5712 NOTICE: CDVDPlayer::OnExit() deleting input stream
22:09:41 T:7284 ERROR: Playlist Player: skipping unplayable item: 0, path [http://192.168.1.8:8563/]
22:09:41 T:7284 NOTICE: CDVDPlayer::CloseFile()

And then I get the "One or more items failed to play. Check the log file for details."


- LehighBri - 2012-02-18 05:11

Looks like the streaming port # is 8559 with direct stream and then 8563 with transcoding. Could that be it?


- indy5 - 2012-02-18 08:49

Does this plugin work if your cable company (time warner) marks pretty much every channel as "copy once" ?


- uspino - 2012-02-18 15:18

1.6.1 is working with trascoding! However, when I change the channel I get

Code:
Server: Client requested stream url for Tuner[4]
Server: Client requested channel map data
Tuner[4]: Changing channel number to 1
Tuner[4]: Program number is 4001
Tuner[4]: Channel name is FiOS TV 1
Tuner[4]: rtsp://192.168.200.1:8554/cetonmpeg3
Tuner[4]: Starting video stream
VLC[4]: Starting VLC instance with remoteVLC plugin
VLC[4]: Streaming to [url]http://localhost:8559[/url]
VLC[4]: Setting stream program id using remoteVLC
VLC[4]: Starting VLC transcode stream at 1000kbps
VLC[4]: Streaming to [url]http://localhost:8563[/url]
Scheduler: Sleeping 120 seconds until next task
Tuner[4]: Changing channel number to 600
Tuner[4]: Program number is 683
Tuner[4]: Channel name is CNN HD
VLC[4]: Closing VLC transcode stream
VLC[4]: Setting stream program id using remoteVLC
VLC[4]: Could not set program in 5 seconds
VLC[4]: Closing VLC instance
Tuner[4]: Stopping video stream



- mcheng89 - 2012-02-18 15:33

LehighBri Wrote:Looks like the streaming port # is 8559 with direct stream and then 8563 with transcoding. Could that be it?

No that should be correct...

uspino Wrote:1.6.1 is working with trascoding! However, when I change the channel I get

Code:
Server: Client requested stream url for Tuner[4]
Server: Client requested channel map data
Tuner[4]: Changing channel number to 1
Tuner[4]: Program number is 4001
Tuner[4]: Channel name is FiOS TV 1
Tuner[4]: rtsp://192.168.200.1:8554/cetonmpeg3
Tuner[4]: Starting video stream
VLC[4]: Starting VLC instance with remoteVLC plugin
VLC[4]: Streaming to [url]http://localhost:8559[/url]
VLC[4]: Setting stream program id using remoteVLC
VLC[4]: Starting VLC transcode stream at 1000kbps
VLC[4]: Streaming to [url]http://localhost:8563[/url]
Scheduler: Sleeping 120 seconds until next task
Tuner[4]: Changing channel number to 600
Tuner[4]: Program number is 683
Tuner[4]: Channel name is CNN HD
VLC[4]: Closing VLC transcode stream
VLC[4]: Setting stream program id using remoteVLC
VLC[4]: Could not set program in 5 seconds
VLC[4]: Closing VLC instance
Tuner[4]: Stopping video stream

Does this happen for all channels?
And does direct streaming still work for you?


- LehighBri - 2012-02-18 15:40

mcheng89 Wrote:No that should be correct...

Weird. I just rebooted again and now transcoding is working. I get the following (I can also change channels too):


Server: Client requested stream url for Tuner[4]
Server: Client requested channel map data
Tuner[4]: Changing channel number to 3
Tuner[4]: Program number is 1003
Tuner[4]: Channel name is KYW
Tuner[4]: rtsp://192.168.200.1:8554/cetonmpeg3
Tuner[4]: Starting video stream
VLC[4]: Starting VLC instance with remoteVLC plugin
VLC[4]: Streaming to http://localhost:8559
VLC[4]: Setting stream program id using remoteVLC
VLC[4]: Starting VLC transcode stream at 1250kbps
VLC[4]: Streaming to http://localhost:8563
Scheduler: Sleeping 120 seconds until next task
Tuner[4]: Changing channel number to 570
Tuner[4]: Program number is 602
Tuner[4]: Channel name is ESPN HD
VLC[4]: Closing VLC transcode stream
VLC[4]: Setting stream program id using remoteVLC
VLC[4]: Starting VLC transcode stream at 1250kbps
VLC[4]: Streaming to http://localhost:8563