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

  Thread Rating:
  • 5 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
mcheng89 Offline
Fan
Posts: 373
Joined: Jan 2012
Reputation: 2
Post: #11
ashwinreddy Wrote:I have installed Ceton card on PC, and tested with Windows Media Center.
And then I installed XBMC on the same computer.
Downloaded your code and installed as per instructions (VLC- remoteVLC plugin), remoteCeton server etc.
Started the remoteceton server (I thinking this is where I have the problem) And it seems to start but says .......
...
remote ceton Tuner[4]: Invalid Channel... Stopping streams
And when I try to connect from XBMC,,, it says cannot connect to remoteceton.

Are they any conflicts if Windows Media Center is also running.

No, there shouldnt be any issues with WMC unless it tries to play something on the same tuner. I actually have one tuner unassigned for remoteCeton, but I can use that tuner on any computer without having to assign it.

As to your issue, does your output look similar to mine?


Did the app create a channelmap.csv file in the same folder?
It should look something like this:
Code:
1,FiOS TV 1,1017
2,WCBS,1001
4,WNBC,1003
5,WNYW,1004
6,WRNN,1005
7,WABC,1006

Can you try changing the channel by opening this link in your browser:
http://localhost:8555/play?tuner=4&channel=7
(This post was last modified: 2012-02-28 21:16 by mcheng89.)
find quote
kollepara Offline
Junior Member
Posts: 6
Joined: Jan 2012
Reputation: 0
Post: #12
Output at remoteceton server is like this

Looks like there is a problem in starting VLC plugin


Tuner[1]: Invalid channel... Stopping streams
Tuner[2]: Ceton InfiniTV PCIe (00-80-19-6c) Tuner 2
Tuner[2]: Changing channel to 0
Tuner[2]: Invalid channel... Stopping streams
Tuner[3]: Ceton InfiniTV PCIe (00-80-19-6c) Tuner 3
Tuner[3]: Changing channel to 0
Tuner[3]: Invalid channel... Stopping streams
Tuner[4]: Ceton InfiniTV PCIe (00-80-19-6c) Tuner 4
Tuner[4]: Changing channel to 0
Tuner[4]: Invalid channel... Stopping streams
==================================================
Server: Starting up listener thread
Server: Press enter to shutdown...
==================================================
Tuner[1]: Changing channel to 8
Tuner[1]: Program number is 6
Tuner[1]: Channel name is NECN
Tuner[1]: rtsp://192.168.200.1:8554/cetonmpeg0
Tuner[1]: Starting Video
VLC[1]: Starting VLC instance with remoteVLC plugin
VLC[1]: Streaming to http://localhost:8555
VLC[1]: Error starting stream. Shutting down
VLC[1]: Closing VLC instance
Tuner[1]: Stopping Video
find quote
mcheng89 Offline
Fan
Posts: 373
Joined: Jan 2012
Reputation: 2
Post: #13
kollepara Wrote:Output at remoteceton server is like this

Looks like there is a problem in starting VLC plugin


Tuner[1]: Invalid channel... Stopping streams
Tuner[2]: Ceton InfiniTV PCIe (00-80-19-6c) Tuner 2
Tuner[2]: Changing channel to 0
Tuner[2]: Invalid channel... Stopping streams
Tuner[3]: Ceton InfiniTV PCIe (00-80-19-6c) Tuner 3
Tuner[3]: Changing channel to 0
Tuner[3]: Invalid channel... Stopping streams
Tuner[4]: Ceton InfiniTV PCIe (00-80-19-6c) Tuner 4
Tuner[4]: Changing channel to 0
Tuner[4]: Invalid channel... Stopping streams
==================================================
Server: Starting up listener thread
Server: Press enter to shutdown...
==================================================
Tuner[1]: Changing channel to 8
Tuner[1]: Program number is 6
Tuner[1]: Channel name is NECN
Tuner[1]: rtsp://192.168.200.1:8554/cetonmpeg0
Tuner[1]: Starting Video
VLC[1]: Starting VLC instance with remoteVLC plugin
VLC[1]: Streaming to http://localhost:8555
VLC[1]: Error starting stream. Shutting down
VLC[1]: Closing VLC instance
Tuner[1]: Stopping Video

It throws that error when VLC fails to start up (the CreateProcess function fails).
Can you check if the VLC_PROCESS setting is pointing to vlc.exe?

EDIT:
I updated the program with more error messages for the startup. Can you try running the new version?
(This post was last modified: 2012-01-26 02:25 by mcheng89.)
find quote
kollepara Offline
Junior Member
Posts: 6
Joined: Jan 2012
Reputation: 0
Post: #14
Where can i get the latest version of remoteCeton server?

we really appreciate your help.
find quote
mcheng89 Offline
Fan
Posts: 373
Joined: Jan 2012
Reputation: 2
Post: #15
kollepara Wrote:Where can i get the latest version of remoteCeton server?

we really appreciate your help.

I update the links on the first post when I make changes.

Let me know if it works for you
(This post was last modified: 2012-01-26 03:29 by mcheng89.)
find quote
kollepara Offline
Junior Member
Posts: 6
Joined: Jan 2012
Reputation: 0
Post: #16
mcheng89 Wrote:I update the links on the first post when I make changes.

Let me know if it works for you


I couldn't run your latest version as it is crashing as soon as i start. I found the issue with 1.3.0 version. My bad. I didn't set the correct path for VLC_PROCESS. After i set the correct path, Server says it is streaming. Here is the output.

Tuner[1]: Invalid channel... Stopping streams
Tuner[2]: Ceton InfiniTV PCIe (00-80-19-6c) Tuner 2
Tuner[2]: Changing channel to 0
Tuner[2]: Invalid channel... Stopping streams
Tuner[3]: Ceton InfiniTV PCIe (00-80-19-6c) Tuner 3
Tuner[3]: Changing channel to 0
Tuner[3]: Invalid channel... Stopping streams
Tuner[4]: Ceton InfiniTV PCIe (00-80-19-6c) Tuner 4
Tuner[4]: Changing channel to 0
Tuner[4]: Invalid channel... Stopping streams
==================================================
Server: Starting up listener thread
Server: Press enter to shutdown...
==================================================
Tuner[1]: Changing channel to 8
Tuner[1]: Program number is 6
Tuner[1]: Channel name is NECN
Tuner[1]: rtsp://192.168.200.1:8554/cetonmpeg0
Tuner[1]: Starting Video
VLC[1]: Starting VLC instance with remoteVLC plugin
VLC[1]: Streaming to http://localhost:8555
VLC[1]: Setting channel program id using remoteVLC
Tuner[1]: Changing channel to 8
Tuner[1]: Channel did not change...
Tuner[1]: Changing channel to 7
Tuner[1]: Program number is 4
Tuner[1]: Channel name is WHDH7
VLC[1]: Setting channel program id using remoteVLC
VLC[1]: Could not set channel in 5 seconds
VLC[1]: Closing VLC instance
Tuner[1]: Stopping Video
Tuner[1]: Changing channel to 8
Tuner[1]: Program number is 6
Tuner[1]: Channel name is NECN
Tuner[1]: rtsp://192.168.200.1:8554/cetonmpeg0
Tuner[1]: Starting Video
VLC[1]: Starting VLC instance with remoteVLC plugin
VLC[1]: Streaming to http://localhost:8555
VLC[1]: Setting channel program id using remoteVLC

Now. I am unable see the video using my VLC player. I tried to use the rtsp url and http url.

If i use http url in browser, browser is downloading the bytes continuosly. How can i play the video using VLC? Or should i strictly use XBMC?
find quote
mcheng89 Offline
Fan
Posts: 373
Joined: Jan 2012
Reputation: 2
Post: #17
kollepara Wrote:I couldn't run your latest version as it is crashing as soon as i start. I found the issue with 1.3.0 version. My bad. I didn't set the correct path for VLC_PROCESS. After i set the correct path, Server says it is streaming. Here is the output.

Tuner[1]: Invalid channel... Stopping streams
Tuner[2]: Ceton InfiniTV PCIe (00-80-19-6c) Tuner 2
Tuner[2]: Changing channel to 0
Tuner[2]: Invalid channel... Stopping streams
Tuner[3]: Ceton InfiniTV PCIe (00-80-19-6c) Tuner 3
Tuner[3]: Changing channel to 0
Tuner[3]: Invalid channel... Stopping streams
Tuner[4]: Ceton InfiniTV PCIe (00-80-19-6c) Tuner 4
Tuner[4]: Changing channel to 0
Tuner[4]: Invalid channel... Stopping streams
==================================================
Server: Starting up listener thread
Server: Press enter to shutdown...
==================================================
Tuner[1]: Changing channel to 8
Tuner[1]: Program number is 6
Tuner[1]: Channel name is NECN
Tuner[1]: rtsp://192.168.200.1:8554/cetonmpeg0
Tuner[1]: Starting Video
VLC[1]: Starting VLC instance with remoteVLC plugin
VLC[1]: Streaming to http://localhost:8555
VLC[1]: Setting channel program id using remoteVLC
Tuner[1]: Changing channel to 8
Tuner[1]: Channel did not change...
Tuner[1]: Changing channel to 7
Tuner[1]: Program number is 4
Tuner[1]: Channel name is WHDH7
VLC[1]: Setting channel program id using remoteVLC
VLC[1]: Could not set channel in 5 seconds
VLC[1]: Closing VLC instance
Tuner[1]: Stopping Video
Tuner[1]: Changing channel to 8
Tuner[1]: Program number is 6
Tuner[1]: Channel name is NECN
Tuner[1]: rtsp://192.168.200.1:8554/cetonmpeg0
Tuner[1]: Starting Video
VLC[1]: Starting VLC instance with remoteVLC plugin
VLC[1]: Streaming to http://localhost:8555
VLC[1]: Setting channel program id using remoteVLC

Now. I am unable see the video using my VLC player. I tried to use the rtsp url and http url.

If i use http url in browser, browser is downloading the bytes continuosly. How can i play the video using VLC? Or should i strictly use XBMC?


You can view the videos using the http URL
The rtsp stream is the video stream that the device outputs
If you try to connect to that stream directly, the Ceton device stops the stream for any other clients.
So, I'm guessing that you had VLC run the rtsp stream first, which broke the remoteCeton stream.
Then when you tried the http stream it doesn't work anymore.
I have to modify the vlc plugin to detect if the stream stops.


If you want you can use just open these links in vlc to start the stream and select the channel:
http://localhost:8555/play?tuner=1&chann...irect=true
The redirect option should automatically redirect vlc to the stream.


As for the latest version, is there any output/error messages when you run it?
(This post was last modified: 2012-01-26 20:21 by mcheng89.)
find quote
kollepara Offline
Junior Member
Posts: 6
Joined: Jan 2012
Reputation: 0
Thumbs Up    Post: #18
mcheng89 Wrote:You can view the videos using the http URL
The rtsp stream is the video stream that the device outputs
If you try to connect to that stream directly, the Ceton device stops the stream for any other clients.
So, I'm guessing that you had VLC run the rtsp stream first, which broke the remoteCeton stream.
Then when you tried the http stream it doesn't work anymore.
I have to modify the vlc plugin to detect if the stream stops.


If you want you can use just open these links in vlc to start the stream and select the channel:
http://localhost:8555/play?tuner=1&chann...irect=true
The redirect option should automatically redirect vlc to the stream.


As for the latest version, is there any output/error messages when you run it?


That explains why i cannot see the video everytime when i change the channel. Finally i am able to view the stream in VLC player using rtsp. You did a fantastic job.

I really want to install the cable card on my linux system. Does your remoteCeton runs on linux? Which language you used to develop the remoteCeton server?

As for the latest version, there is not much information. as soon as i start, i get the windows popup saying "Close the program". I will find out some log which is useful for you.

Again. You did really a good job. I appreciate your help.
find quote
mcheng89 Offline
Fan
Posts: 373
Joined: Jan 2012
Reputation: 2
Post: #19
kollepara Wrote:That explains why i cannot see the video everytime when i change the channel. Finally i am able to view the stream in VLC player using rtsp. You did a fantastic job.

I really want to install the cable card on my linux system. Does your remoteCeton runs on linux? Which language you used to develop the remoteCeton server?

As for the latest version, there is not much information. as soon as i start, i get the windows popup saying "Close the program". I will find out some log which is useful for you.

Again. You did really a good job. I appreciate your help.

remoteCeton is in C++ but some parts of the code is uses Windows api.
I'll start working on porting it to linux soon. Can you tell me which distro you use, so I can work with that?

The server doesnt actually write a log file anywhere, but it should always output a message before the "Press any key to continue" output as of version 1.3.2.
If you are using a version before that it stops without a message when it finds that the tcp ports are already being used.
Can you try running it again, but this time making sure that there are no instances of vlc.exe listed in the task manager?
Can you check the changelog to make sure that you're using version 1.3.2. Maybe you might not be on the latest version?

==============================================

EDIT:
I'm thinking about making a web interface that utilizes VLC's webplugin to watch/change channels.
The web interface should work on Windows/Mac/Linux with VLC: http://wiki.videolan.org/Documentation:WebPlugin
Or use m3u8 streams for iphone/android devices.
An example of VLC plugin playing tv in Chrome:
[Image: qof0xk.png]
(This post was last modified: 2012-01-27 06:56 by mcheng89.)
find quote
kollepara Offline
Junior Member
Posts: 6
Joined: Jan 2012
Reputation: 0
Post: #20
mcheng89 Wrote:remoteCeton is in C++ but some parts of the code is uses Windows api.
I'll start working on porting it to linux soon.
Can you tell me which distro you use?

The server doesnt actually write a log file anywhere, but it should always output a message before the "Press any key to continue" output as of version 1.3.2.
If you are using a version before that it stops without a message when it finds that the tcp ports are already being used.
Can you try running it again, but this time making sure that there are no instances of vlc.exe listed in the task manager?
Can you check the changelog to make sure that you're using version 1.3.2. Maybe you might not be on the latest version?

==============================================

EDIT:
I'm thinking about making a pretty web interface that utilizes VLC's webplugin to watch/change channels.
The web interface should work on Windows/Mac/Linux with VLC: http://wiki.videolan.org/Documentation:WebPlugin
An example of VLC plugin playing tv in Chrome:
[Image: qof0xk.png]



I am using redhat linux server enterprise edition 5.6.

That is a good idea to make a web interface so , that i can see the tv on my google tv.

I will run your latest software once again and update you with the information
find quote
Post Reply