SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Customizations
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI.

Reply
 
Thread Tools Search this Thread Display Modes
  #301  
Old 10-23-2009, 11:43 AM
SprDtyF350 SprDtyF350 is offline
Sage Aficionado
 
Join Date: Jan 2004
Location: Southern Maryland
Posts: 436
Disregard my previous post. I read that playing on the server was choppy so I figured it should be installed on a client. Figured out I should install on the server, but listen from a client and now I am making progress.

Thanks..
Reply With Quote
  #302  
Old 10-24-2009, 12:18 PM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
Quote:
Originally Posted by SprDtyF350 View Post
Disregard my previous post. I read that playing on the server was choppy so I figured it should be installed on a client. Figured out I should install on the server, but listen from a client and now I am making progress
Hi,

Yes - I install on the same box as the SageTV server and listen via MVP extenders. I know other people use SageTV clients and HD100/200 extenders with success.

Plakback using SageTV client running on the same box as SageTV server produces choppy play for reasons unknown at the moment.

Please be aware its still a beta and note the issue mihooper has with running SageTV with EPG from native SageTV sources and epg_import_plugins like webfeedencoder and XMLTV importers.

Michael
__________________
Web Feed Encoder developer
SageTV Catchup developer
Reply With Quote
  #303  
Old 10-25-2009, 09:03 AM
LJSSageUser LJSSageUser is offline
Sage Advanced User
 
Join Date: Aug 2005
Posts: 80
No channels in EPG

Mike,
Eveerything installed as expected but the EPG config tool shows no channels. Any ideas? The various logs are attached.
Attached Files
File Type: txt encoder.log.txt (5.1 KB, 178 views)
File Type: txt configtool.log.txt (10.7 KB, 189 views)
File Type: txt wrapper.log.txt (5.2 KB, 328 views)
Reply With Quote
  #304  
Old 10-25-2009, 09:09 AM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
Quote:
Originally Posted by LJSSageUser View Post
Mike,
Eveerything installed as expected but the EPG config tool shows no channels. Any ideas? The various logs are attached.
Hi,

Logs look fine.

So did you add any channels?

i.e. go to channels tab, choose edit menu, then add channel, etc....

Once a channel is added then move to the lineup using the "<" button.

(best done when SageTV is up, but not totally necessary as you can "resend lineup to SageTV).

Michael
__________________
Web Feed Encoder developer
SageTV Catchup developer
Reply With Quote
  #305  
Old 10-25-2009, 05:47 PM
SprDtyF350 SprDtyF350 is offline
Sage Aficionado
 
Join Date: Jan 2004
Location: Southern Maryland
Posts: 436
I have been playing with this and it appears to have a lot of potential. I have been hoping something like this would come about.

I have had some problems though. I find that I can't get it to work with a Client, have had it play once on the server machine (Choppy) but it did play. I had it work on an HD200 once and then it froze when i tried it again.

I am running the following:
Windows 7 64 Bit
VLC 0.9.8a
Your plugin.

I have only added one channel so far but I can see the 2 instances of VLC start and stop when I try to play on a client, and the file size grows. Looks like it is doing everything it is supposed to except it hangs the client.

I have attached my log file.

Any ideas?

Thanks..
Attached Files
File Type: txt encoder.log.txt (476.8 KB, 181 views)
Reply With Quote
  #306  
Old 10-26-2009, 06:44 AM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
Quote:
Originally Posted by SprDtyF350 View Post
I have had some problems though. I find that I can't get it to work with a Client, have had it play once on the server machine (Choppy) but it did play. I had it work on an HD200 once and then it froze when i tried it again.
Hi,

Damn - and it sounds like you are close.

The logs show expected behaviour - the mpeg file is produced for SageTV and it grows bigger steadily.

Something I have had a lot of problems with is getting the two (for radio) or one (for tv) VLC sessions to shutdown properly when recording stops. This can mean that the ports used to communicate with the VLC sessions are tied up when you come to try to play again.

I cannot see any evidence of that here but its one to watch out for - when a recording is stopped take a peak to see if they are still there. I may have to implement a kill process feature to make sure they go away.

Otherwise I think I need to see the SageTV logs. The answer to the hanging is mostly likely in there. Do I need to do more for SageTV than offer up a growing mpeg-2 file for it to play? We shall find out.

The fact that you are using windows 7 means that you are breaking some new ground here.

Michael
__________________
Web Feed Encoder developer
SageTV Catchup developer
Reply With Quote
  #307  
Old 10-26-2009, 10:21 AM
SprDtyF350 SprDtyF350 is offline
Sage Aficionado
 
Join Date: Jan 2004
Location: Southern Maryland
Posts: 436
I have watched the 2 instances of VLC start, and then when I stop what I am doing in Sage they stop within a few seconds and go away. Haven't had them hang yet..

What do I need to attach from Sage for you to look at?

Thanks..
Reply With Quote
  #308  
Old 10-26-2009, 12:08 PM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
Quote:
Originally Posted by SprDtyF350 View Post
What do I need to attach from Sage for you to look at?
Normally you have to turn on debug logging - which is a property set in Sage.properties. Normally shutdown sageTV, edit the Sage.properties, set the property to true. I cannot remember the exact property name off hand but it will be plastered all over the place.

Then you will notice in the SageTV directory ".txt" files beginning "sage".

A peek in those might help find out why Sage has hung.

Is the problem reproducable?

Michael
__________________
Web Feed Encoder developer
SageTV Catchup developer
Reply With Quote
  #309  
Old 10-26-2009, 12:51 PM
SprDtyF350 SprDtyF350 is offline
Sage Aficionado
 
Join Date: Jan 2004
Location: Southern Maryland
Posts: 436
So So Close...

I have attached the log files from my server and one from a client. With task manager up I can see VLC start and stop. With the server client up I can see the recording indicator come on and the recording shows in Sage Recordings. I can look in explorer and see the .mpg file get created and watch it grow. I just cannot get it to show video or sound. The client seems to hang right after I notice the .mpg file get created.

Here are the logs.. The first 2 are from the server, the last one is from a separate client.
Attached Files
File Type: txt sagetv_0.txt (118.1 KB, 178 views)
File Type: txt sagetv_1.txt (83.2 KB, 200 views)
File Type: txt sagetvclient_0.txt (261.5 KB, 184 views)
Reply With Quote
  #310  
Old 10-26-2009, 12:53 PM
LJSSageUser LJSSageUser is offline
Sage Advanced User
 
Join Date: Aug 2005
Posts: 80
Quote:
Originally Posted by michaeldjcox View Post
Hi,

Logs look fine.

So did you add any channels?

i.e. go to channels tab, choose edit menu, then add channel, etc....

Once a channel is added then move to the lineup using the "<" button.

(best done when SageTV is up, but not totally necessary as you can "resend lineup to SageTV).

Michael
Yup, that worked. it seems as if I read the directions first, I could save everyone time .
Reply With Quote
  #311  
Old 10-26-2009, 01:08 PM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
Quote:
Originally Posted by LJSSageUser View Post
Yup, that worked. it seems as if I read the directions first, I could save everyone time .
Phew! I like these sort of support calls.

Michael
__________________
Web Feed Encoder developer
SageTV Catchup developer
Reply With Quote
  #312  
Old 10-26-2009, 01:17 PM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
Quote:
Originally Posted by SprDtyF350 View Post
Here are the logs.. The first 2 are from the server, the last one is from a separate client.
Hi:

The server log seems to be saying I recognise this file type..ooh wheres the client gone!

Code:
Mon 10/26 14:44:29.293 [Seeker@15d252d] MARK 1 currRecord=A[217356,217355,".977 The Classic Rock Channel",158@1025.19:00,1440] enc=WebFeedEncoder on localhost:5000 clients=[] ir=false
Mon 10/26 14:44:29.294 [Seeker@15d252d] Seeker in AUTOMATIC mode nextRecord=null nextTTA=9223372036854775807
Mon 10/26 14:44:29.294 [Seeker@15d252d] newRecord=null
Mon 10/26 14:44:29.294 [Seeker@15d252d] Change in record, logging recorded data.
Mon 10/26 14:44:29.294 [Seeker@15d252d] Seeker.endRecord(Mon 10/26 14:44:29.292) currRecord=A[217356,217355,".977 The Classic Rock Channel",158@1025.19:00,1440]
Mon 10/26 14:44:29.295 [Seeker@15d252d] VF.submitJob(VFJob[InactiveFile r=0.0 t=0 file=null ifn=G:\SageTV\977TheClassicRockChannel-217356-0.mpg])
Mon 10/26 14:44:29.300 [Seeker@15d252d] Error communicating with client:java.net.SocketException: Software caused connection abort: socket write error
Mon 10/26 14:44:29.301 [Seeker@15d252d] Doing pre-emptive file format detection on recording MediaFile....G:\SageTV\977TheClassicRockChannel-217356-0.mpg
Mon 10/26 14:44:29.305 [Seeker@15d252d] Using internal format detector first...
Mon 10/26 14:44:29.307 [Seeker@15d252d] File Format Parsed-2 G:\SageTV\977TheClassicRockChannel-217356-0.mpg=MPEG2-TS 0:00:00 4000 kbps [#0 Video[MPEG2-Video 30.0 fps 720x576 1:1 progressive]]
Mon 10/26 14:44:29.310 [Seeker@15d252d] Error communicating with client:java.net.SocketException: Software caused connection abort: socket write error
Client says:

Code:
Mon 10/26 14:44:53.045 [ReProcessHook@125d92c] Doing pre-emptive file format detection on recording MediaFile....G:\SageTV\977TheClassicRockChannel-217356-0.mpg
Mon 10/26 14:44:53.264 [ReProcessHook@125d92c] Error with c/s comm:java.lang.NullPointerException
Mon 10/26 14:44:53.264 [ReProcessHook@125d92c] java.lang.NullPointerException
Mon 10/26 14:44:53.265 [ReProcessHook@125d92c] 	at sage.w.for(Unknown Source)
Mon 10/26 14:44:53.265 [ReProcessHook@125d92c] 	at sage.b1.nw(Unknown Source)
Mon 10/26 14:44:53.266 [ReProcessHook@125d92c] 	at sage.b1.n1(Unknown Source)
Mon 10/26 14:44:53.266 [ReProcessHook@125d92c] 	at sage.b1.oc(Unknown Source)
Mon 10/26 14:44:53.267 [ReProcessHook@125d92c] 	at sage.b1.a(Unknown Source)
Mon 10/26 14:44:53.267 [ReProcessHook@125d92c] 	at sage.b1.a(Unknown Source)
Mon 10/26 14:44:53.267 [ReProcessHook@125d92c] 	at sage.d.l$22.try(Unknown Source)
Mon 10/26 14:44:53.268 [ReProcessHook@125d92c] 	at sage.ax.a(Unknown Source)
Mon 10/26 14:44:53.268 [ReProcessHook@125d92c] 	at sage.a.m$b.a(Unknown Source)
Mon 10/26 14:44:53.269 [ReProcessHook@125d92c] 	at sage.a.m.a(Unknown Source)
Mon 10/26 14:44:53.269 [ReProcessHook@125d92c] 	at sage.e.a(Unknown Source)
Mon 10/26 14:44:53.269 [ReProcessHook@125d92c] 	at sage.bb.a(Unknown Source)
Mon 10/26 14:44:53.270 [ReProcessHook@125d92c] 	at sage.bb.do(Unknown Source)
Mon 10/26 14:44:53.270 [ReProcessHook@125d92c] 	at sage.bb.new(Unknown Source)
Mon 10/26 14:44:53.270 [ReProcessHook@125d92c] 	at sage.bb.int(Unknown Source)
Mon 10/26 14:44:53.271 [ReProcessHook@125d92c] 	at sage.bb.new(Unknown Source)
Mon 10/26 14:44:53.271 [ReProcessHook@125d92c] 	at sage.bb.int(Unknown Source)
Mon 10/26 14:44:53.271 [ReProcessHook@125d92c] 	at sage.b4.j2(Unknown Source)
Mon 10/26 14:44:53.272 [ReProcessHook@125d92c] 	at sage.d.g$1.try(Unknown Source)
Mon 10/26 14:44:53.272 [ReProcessHook@125d92c] 	at sage.ax.a(Unknown Source)
Mon 10/26 14:44:53.273 [ReProcessHook@125d92c] 	at sage.a.m$b.a(Unknown Source)
Mon 10/26 14:44:53.273 [ReProcessHook@125d92c] 	at sage.a.m.a(Unknown Source)
Mon 10/26 14:44:53.273 [ReProcessHook@125d92c] 	at sage.e.a(Unknown Source)
Mon 10/26 14:44:53.274 [ReProcessHook@125d92c] 	at sage.bb.a(Unknown Source)
Mon 10/26 14:44:53.274 [ReProcessHook@125d92c] 	at sage.bb.a(Unknown Source)
Mon 10/26 14:44:53.275 [ReProcessHook@125d92c] 	at sage.e.a(Unknown Source)
Mon 10/26 14:44:53.275 [ReProcessHook@125d92c] 	at sage.e.a(Unknown Source)
Mon 10/26 14:44:53.275 [ReProcessHook@125d92c] 	at sage.e$2.run(Unknown Source)
At the moment I have no suggestions on this - bit hard to guess when the code is obfuscated and the HD200 keeps no logs.

Have you tried any other channels to see if they work any better?

Michael
__________________
Web Feed Encoder developer
SageTV Catchup developer
Reply With Quote
  #313  
Old 10-26-2009, 02:51 PM
SprDtyF350 SprDtyF350 is offline
Sage Aficionado
 
Join Date: Jan 2004
Location: Southern Maryland
Posts: 436
Only tried 1 channel so far. I will add a couple more and see. I am not using the HD200 for this right now. Just clients on a couple different computers. Oh well, more playing.
Reply With Quote
  #314  
Old 10-26-2009, 02:55 PM
gplasky's Avatar
gplasky gplasky is offline
SageTVaholic
 
Join Date: Jul 2003
Location: Howell, MI
Posts: 9,203
I would double check your firewalls, especially on Win 7 to make sure port 5000 is open. Errors refer to a connection error. On Win 7 is UAC or or off? And did you run install for vlc and plugin as Adminsitrator?

Gerry
__________________
Big Gerr
_______
Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB.
Reply With Quote
  #315  
Old 10-26-2009, 05:58 PM
SprDtyF350 SprDtyF350 is offline
Sage Aficionado
 
Join Date: Jan 2004
Location: Southern Maryland
Posts: 436
I have UAC off, even turned the firewall off for a while. Installed VLC, and the plugin as administrator.

Think I will play with this on one of my machines with Win XP on it and see if that makes a difference.

Seems odd that I can get everything to work behind the scenes but it just will not go the final little bit. I once just told Sage to record the channel without trying to watch it. It does it and I have been able to play back the recorded .mpg file external to Sage and though there is no sound there is a picture of the station. The recording indicator comes on, etc.. But once it starts to record it hangs both the client and the server. It is still recording though as I can see the file grow.

Oh well, I'm getting dizzy watching the little spinny thing in Sage go round and round..

Weird....
Reply With Quote
  #316  
Old 10-27-2009, 12:07 AM
SprDtyF350 SprDtyF350 is offline
Sage Aficionado
 
Join Date: Jan 2004
Location: Southern Maryland
Posts: 436
I setup a laptop with WinXP as a temporary Sage server and the plugin works using my HD200, and an MVP. I have noticed that VLC is causing those silly "VLC has had an error" messages but they don't seem to be causing a problem with playback. I will need to figure it out though because they are kind of annoying..

Playback on the HD200, and MVP was good with no stutter. Playback on a separate Client PC was doing the stutter stuff you talked about in post #162. Same deal. Pause playback and it will play good for a little bit and then stutter again. I couldn't get it to play using a PC with Placeshifter.

Must be something different with Windows 7 because I never could get it to work. Using Win XP it all setup pretty easy.
Reply With Quote
  #317  
Old 10-29-2009, 03:04 AM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
Quote:
Originally Posted by SprDtyF350 View Post
I setup a laptop with WinXP as a temporary Sage server and the plugin works using my HD200, and an MVP. I have noticed that VLC is causing those silly "VLC has had an error" messages but they don't seem to be causing a problem with playback. I will need to figure it out though because they are kind of annoying..
Those messages happen when VLC is closed down - it just won't quite go away. But playback is already finished by this time and the port freed up so its annoying but doesn't impact use.

Quote:
Originally Posted by SprDtyF350 View Post
Playback on the HD200, and MVP was good with no stutter. Playback on a separate Client PC was doing the stutter stuff you talked about in post #162. Same deal. Pause playback and it will play good for a little bit and then stutter again.
The last word from SageTV support "one of them (encoder, VLC, or sageTV) may be checking the file size through the actual filesystem and the other may be using the GET_RECORDEDBYTES call to determine the file size". They said the encoders way of checking the file size was correct. VLC support are adamant that they handle files correctly. I have some more testing to do on that issue before I can point any fingers, but it all seems to work until SageTV client is used to play.

Quote:
Originally Posted by SprDtyF350 View Post
I couldn't get it to play using a PC with Placeshifter.
Somebody definitely had this working way back earlier on the thread.

Quote:
Originally Posted by SprDtyF350 View Post
Must be something different with Windows 7 because I never could get it to work. Using Win XP it all setup pretty easy.
Damn - another operating system I don't have to test on.

There are still lots of issues with VLC and windows 7 so there could be something there.

A priority is to get the later versions of VLC to work with the encoder and review all the above issues. I need them to fix an outstanding ticket I have with them.

In the meantime I'm considering ditching VLC altogether - its a rather chaotic open source development with features working in one release and then not working in the next. That said it is a huge job to make this stuff work everywhere and they may well be the best answer on the "play anything everywhere and anyhow" front.

Michael
__________________
Web Feed Encoder developer
SageTV Catchup developer
Reply With Quote
  #318  
Old 10-29-2009, 09:36 AM
RocKKer RocKKer is offline
Sage Advanced User
 
Join Date: Dec 2005
Posts: 196
Michael,

Thank you so much for this plug-in!


I set it up on my XP box as a test, once I got over a few issues, in retrospect it was fairly easy, I can currently play radio and NASA TV on the server, next is to test outputting to an HD200, which sounds trivial.

My problem was when I tested a new channel I expected to hear the radio stream while capturing, I was later able to play them thru VLC, so I decided to add the channel to SageTV's line-up and see how far I got. Much to my surprise it just worked! I'm assuming capturing only is the expected results of a test?

Next is to integrate WFE into my linux server, serve out some web radio, TV, etc.
__________________
SageTV Server v9.2.2, Ubuntu Server 18.04.4 x64, Java 1.8.0_252, Xeon E5-2690, 32GB, 6X6TB WD Red - Software Raid 6, 2X HDHR3 (OTA), 3X HD-200
Reply With Quote
  #319  
Old 10-29-2009, 09:58 AM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
Quote:
Originally Posted by RocKKer View Post
Michael,
My problem was when I tested a new channel I expected to hear the radio stream while capturing, I was later able to play them thru VLC, so I decided to add the channel to SageTV's line-up and see how far I got. Much to my surprise it just worked! I'm assuming capturing only is the expected results of a test?

Next is to integrate WFE into my linux server, serve out some web radio, TV, etc.
Hi,

Nice to hear good news - thanks!

HD200s should be a breeze.

The test currently just attempts to show the logs for VLC and the encoder and show that the mpg file size is growing. In my experience that 90% of the problems affecting playback already passed.

Its on my long long list of improvements to have playback.

Linux - I'm still a bit slow on that. bcjenkins got me so far in some earlier beta testing but I still hadn't got the command files correct for linux. I'm trying to get it working on portable unbuntu but the installation of that and getting a up to date enough version of VLC is evading me at the moment. So you might be a trailblazer here.

Michael
__________________
Web Feed Encoder developer
SageTV Catchup developer
Reply With Quote
  #320  
Old 10-29-2009, 11:43 AM
pjpjpjpj pjpjpjpj is offline
Sage Icon
 
Join Date: Feb 2008
Posts: 2,164
Michael,

Thanks for all of your work on this plugin, even though I am not using it yet. Soon, very soon....

But, as with many threads on this forum, reading through pages and pages can only serve to confuse, because many of the issues in the pages have been fixed by newer releases. Also, with this plugin, TV is a newer addition, and some of the first-post info is more related to radio streaming. So I'll just ask a few basic things, please forgive me if they are explained previously.

1. It appears - correct me if I am wrong - that the XMLTV importer thing is now built in to your plugin, and we don't need the separate one that is linked in the first post. Is that true? There appear to be differences between the info on the download page and the info in the first post here. It appears that we are now able to add channels to our Sage lineup and import their EPG listings directly from your plugin.

2. I saw posts earlier about the XML importer (or maybe your plugin?) messing up the SageTV listings. Is this remedied, or does your plugin overwrite the SageTV channel listings, requiring you to redo existing "normal TV" channel EPGs that you would already have?

3. If #2 above is not an issue - the plugin allows you to add individual channels to your existing EPG and add their listings separately from the SageTV/Zap2It listings that area already there... then are you able to choose manually what channel number to give to each new channel you add?

Thanks.
__________________
Server: AMD Athlon II x4 635 2.9GHz, 8 Gb RAM, Win 10 x64, Java 8, Gigabit network
Drives: Several TB of internal SATA and external USB drives, no NAS or RAID or such...
Software: SageTV v9x64, stock STV with ADM.
Tuners: 4 tuners via (2) HDHomeruns (100% OTA, DIY antennas in the attic).
Clients: Several HD300s, HD200s, even an old HD100, all on wired LAN. Latest firmware for each.
Reply With Quote
Reply

Tags
extender, internet video streaming, mvp, online videos, radio


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SageTV and web radio michaeldjcox SageTV Customizations 3 12-01-2008 11:09 AM
STV Import: Simple Web Radio V1.2 koelec SageTV Customizations 294 02-29-2008 12:53 PM
Recording Volume vs. Web Radio / Music FidgetyRat SageTV Software 0 11-29-2006 08:33 AM


All times are GMT -6. The time now is 02:18 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.