SageTV Community  

Go Back   SageTV Community > Hardware Support > Hardware Support
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

Hardware Support Discussions related to using various hardware setups with SageTV products. Anything relating to capture cards, remotes, infrared receivers/transmitters, system compatibility or other hardware related problems or suggestions should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #21  
Old 04-03-2015, 11:09 PM
uberpixel uberpixel is offline
Sage Advanced User
 
Join Date: Nov 2008
Posts: 238
Quote:
Originally Posted by jvl711 View Post
Think I found your issue.

You did not change tuner ids in the PrimeNetEncoders.properties.

You need to change the below setting for each tuner. Your ID is 1313BED0
Code:
tuner0.id=131C3300
That was it.

As it turns out I copied the properties file to the Sage directory and then proceeded to edit the original file in my downloads folder...

Watching basketball tonight and so far the only glitches I've seen look like they are coming from the satellite truck broadcasting the game. That's a big improvement from what I had been seeing!

I did see some strange behaviour when I added the second and third tuners (channel tuning failure and pixelated video) but a full system restart (server, and Prime) cleared it up.

Thanks guys for all of your help, and thanks to jvl711 for building this encoder! It's nice to know I don't need to live in fear of my Prime no longer working due to a future incompatibility.

-uberpixel
__________________
{Server} | i5-3330S | Z77X-UD5H | 8gb DDR3 | Windows 10 Pro |
{Tuners} | (1) HDHomerun (OTA) | (1) HDHomerun Prime + OpenDCT on Comcast |
{Client} | (2) HD300 Extenders | (1) PC Client | Mi Box Android Client | FireTV Stick |
Reply With Quote
  #22  
Old 04-07-2015, 07:36 PM
mgpaulus mgpaulus is offline
Sage Advanced User
 
Join Date: Mar 2011
Location: Colorado Springs, CO
Posts: 193
Well, there is something nasty about my system. When I try to test out my setup by doing a 'java -jar PrimeNetEncoder.jar status', I get repeating this:

java.lang.NullPointerException
at jvl.primenetencoder.Tuner.run(Tuner.java:100)

Any clue what is the problem here?

C:\Sagetv\PrimeEncoder>java -version
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) Client VM (build 24.65-b04, mixed mode, sharing)

C:\Sagetv\PrimeEncoder>

I know the tuner works because I was using the HDHomeRun VIEW program to watch a couple of channels.

Last edited by mgpaulus; 04-07-2015 at 07:39 PM.
Reply With Quote
  #23  
Old 04-07-2015, 08:47 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by mgpaulus View Post
Well, there is something nasty about my system. When I try to test out my setup by doing a 'java -jar PrimeNetEncoder.jar status', I get repeating this:

java.lang.NullPointerException
at jvl.primenetencoder.Tuner.run(Tuner.java:100)

Any clue what is the problem here?

C:\Sagetv\PrimeEncoder>java -version
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) Client VM (build 24.65-b04, mixed mode, sharing)

C:\Sagetv\PrimeEncoder>

I know the tuner works because I was using the HDHomeRun VIEW program to watch a couple of channels.
Are you running a batch file if you are can you post it this is how I am running. I have everything in C:\PrimeNetEncoderv1.0.0

encoder.bat
Code:
CD /d "%~dp0"
c:
"C:\Program Files (x86)\Java\jre7\bin\java.exe" -jar PrimeNetEncoder.jar
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #24  
Old 04-07-2015, 09:36 PM
mgpaulus mgpaulus is offline
Sage Advanced User
 
Join Date: Mar 2011
Location: Colorado Springs, CO
Posts: 193
Nope, no batch file. Just straight Command Line:

C:\Sagetv\PrimeEncoder>java -jar PrimeNetEncoder.jar status
PrimeNetEncoder>java.lang.NullPointerException
at jvl.primenetencoder.Tuner.run(Tuner.java:100)
java.lang.NullPointerException
at jvl.primenetencoder.Tuner.run(Tuner.java:100)
java.lang.NullPointerException
at jvl.primenetencoder.Tuner.run(Tuner.java:100)
java.lang.NullPointerException
at jvl.primenetencoder.Tuner.run(Tuner.java:100)
java.lang.NullPointerException
at jvl.primenetencoder.Tuner.run(Tuner.java:100)
java.lang.NullPointerException
at jvl.primenetencoder.Tuner.run(Tuner.java:100)
java.lang.NullPointerException
at jvl.primenetencoder.Tuner.run(Tuner.java:100)
java.lang.NullPointerException
at jvl.primenetencoder.Tuner.run(Tuner.java:100)
java.lang.NullPointerException
at jvl.primenetencoder.Tuner.run(Tuner.java:100)

Specifying the location of java didn't help either
C:\Sagetv\PrimeEncoder>"c:\Program Files\Java\jre7\bin"\java -version
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) Client VM (build 24.65-b04, mixed mode, sharing)

C:\Sagetv\PrimeEncoder>
Reply With Quote
  #25  
Old 04-07-2015, 09:51 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by mgpaulus View Post
Nope, no batch file. Just straight Command Line:

C:\Sagetv\PrimeEncoder>java -jar PrimeNetEncoder.jar status
PrimeNetEncoder>java.lang.NullPointerException
at jvl.primenetencoder.Tuner.run(Tuner.java:100)
java.lang.NullPointerException
at jvl.primenetencoder.Tuner.run(Tuner.java:100)
java.lang.NullPointerException
at jvl.primenetencoder.Tuner.run(Tuner.java:100)
java.lang.NullPointerException
at jvl.primenetencoder.Tuner.run(Tuner.java:100)
java.lang.NullPointerException
at jvl.primenetencoder.Tuner.run(Tuner.java:100)
java.lang.NullPointerException
at jvl.primenetencoder.Tuner.run(Tuner.java:100)
java.lang.NullPointerException
at jvl.primenetencoder.Tuner.run(Tuner.java:100)
java.lang.NullPointerException
at jvl.primenetencoder.Tuner.run(Tuner.java:100)
java.lang.NullPointerException
at jvl.primenetencoder.Tuner.run(Tuner.java:100)

Specifying the location of java didn't help either
C:\Sagetv\PrimeEncoder>"c:\Program Files\Java\jre7\bin"\java -version
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) Client VM (build 24.65-b04, mixed mode, sharing)

C:\Sagetv\PrimeEncoder>
Why not just use a batch like the one I posted above I see your "c:\Program Files\Java\jre7\bin"\java -version
java version "1.7.0_67" is wrong quotes are around the directory not the full jave.exe.

you can just create the encoder.bat and drop it in the directory where you have the encoder properties jar and ffmpeg.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #26  
Old 04-07-2015, 09:53 PM
mgpaulus mgpaulus is offline
Sage Advanced User
 
Join Date: Mar 2011
Location: Colorado Springs, CO
Posts: 193
Quote:
Originally Posted by nyplayer View Post
Why not just use a batch like the one I posted above I see your "c:\Program Files\Java\jre7\bin"\java -version
java version "1.7.0_67" is wrong quotes are around the directory not the full jave.exe.
I copied your batch file that you posted above, modified the path for java (to remove the (x86) since I'm running 32 bit Win7) and used that. Same result...
Reply With Quote
  #27  
Old 04-07-2015, 09:55 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by mgpaulus View Post
I copied your batch file that you posted above, modified the path for java (to remove the (x86) since I'm running 32 bit Win7) and used that. Same result...
You definitely have something wrong maybe you should just zip the whole folder. Could be the properties file.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #28  
Old 04-07-2015, 10:02 PM
mgpaulus mgpaulus is offline
Sage Advanced User
 
Join Date: Mar 2011
Location: Colorado Springs, CO
Posts: 193
Quote:
Originally Posted by nyplayer View Post
You definitely have something wrong maybe you should just zip the whole folder. Could be the properties file.
Dropped you a private message.
Reply With Quote
  #29  
Old 04-07-2015, 10:36 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by mgpaulus View Post
Dropped you a private message.
Here is the correct batchfile. When you run it you can issue commands such as status etc. at the console window. Everything else is ok. Just replace the one you have.
Attached Files
File Type: zip runEncoder.zip (208 Bytes, 258 views)
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.

Last edited by nyplayer; 04-07-2015 at 10:39 PM.
Reply With Quote
  #30  
Old 04-07-2015, 10:51 PM
mgpaulus mgpaulus is offline
Sage Advanced User
 
Join Date: Mar 2011
Location: Colorado Springs, CO
Posts: 193
Quote:
Originally Posted by nyplayer View Post
Here is the correct batchfile. When you run it you can issue commands such as status etc. at the console window. Everything else is ok. Just replace the one you have.
put your runEncoder.bat file into my PrimeEncoder directory and ran it. Same stinking Exception. I'm thinking we're gonna need to look at that .java file to see where the exception is being thrown and what object is Null.

Thanks for your help so far, but bedtime for bonzo.... Have to pick this up again another evening....
Reply With Quote
  #31  
Old 04-07-2015, 10:57 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by mgpaulus View Post
put your runEncoder.bat file into my PrimeEncoder directory and ran it. Same stinking Exception. I'm thinking we're gonna need to look at that .java file to see where the exception is being thrown and what object is Null.

Thanks for your help so far, but bedtime for bonzo.... Have to pick this up again another evening....
You sure you don't already have 1 running check for a task java.exe
My System ran ok with your stuff must be your Java. Goodnight

04/07/2015 21:32:37 - Setting local IP address to: 192.168.0.104
04/07/2015 21:32:37 - Starting encoder thread: 131B4C09-0

04/07/2015 21:32:37 - Setting local IP address to: 192.168.0.104
04/07/2015 21:32:37 - Starting encoder thread: 131B4C09-1

04/07/2015 21:32:37 - Setting local IP address to: 192.168.0.104
04/07/2015 21:32:37 - Starting encoder thread: 131B4C09-2
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.

Last edited by nyplayer; 04-07-2015 at 10:59 PM.
Reply With Quote
  #32  
Old 04-09-2015, 06:10 AM
mistergq's Avatar
mistergq mistergq is offline
Sage Expert
 
Join Date: Oct 2007
Posts: 747
Does this eliminate the delay between back to back recordings?
__________________
Media Server: Win 7 Home (32 bit), GIGABYTE GA-EP43-UD3L LGA 775 Intel P43 ATX Intel Motherboard, Intel Core 2 Quad Q9505 Yorkfield 2.83GHz, 4 GB Ram, Geforce 9600 GT PCI-E, 1x HD PVR, HD homerun (2x for OTA, 1x for FIOS QAM), 1 x HD Homerun Prime with cablecard from FIOS.

Client: Windows 10 Pro

Media Extenders: HD-200 x 3, HD-200 x 2
Reply With Quote
  #33  
Old 04-09-2015, 06:27 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by mistergq View Post
Does this eliminate the delay between back to back recordings?
No not network encoder does. The only way to eliminate this is to have SageTV natively support Primes.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #34  
Old 04-10-2015, 06:18 AM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
Quote:
Originally Posted by nyplayer View Post
I am on the latest firmware as Silicondust has done so many changes that if you are not on the latest beta you should be for EX. Hd Homerun View for Kodi and android.. Fuzzy answered your other questions. I completely removed SAGEDCT and am quite happy I did. As far as none Prime tuners Sage remuxes the mpg and it messes it up that you cannot even extract CC. Also you can esaily update to the latest FFMPG simply by dropping the FFMPEG exe in the folder.

I get no pixelation what so ever since I switched to this encoder.

PS if you are reluctant then stay where you are as some people fear change.
Just curious, but you lose the seamless recording transitions with this right?
Reply With Quote
  #35  
Old 04-10-2015, 06:45 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by stanger89 View Post
Just curious, but you lose the seamless recording transitions with this right?
Yes, there's no mechanism in the current network encoder system to handle directly transitioning a stream to a new file seamlessly. Might be something that could be improved once we're into the code, its just that no real work was done on the network encoder spec for a very long time before seamless recording came to be a thing. It should be noted, that there is NO implementation of the Prime (SageDCT or this) that support the seamless transitions, as both are network encoders.

That said, the HDHR starts and stops streams very quickly, such that it is not a very long gap.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room

Last edited by Fuzzy; 04-10-2015 at 07:18 AM.
Reply With Quote
  #36  
Old 04-10-2015, 07:22 AM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
Quote:
Originally Posted by Fuzzy View Post
Yes, there's no mechanism in the current network encoder system to handle directly transitioning a stream to a new file seamlessly. Might be something that could be improved once we're into the code, its just that no real work was done on the network encoder spec for a very long time before seamless recording came to be a thing.
I think that's in the "advanced" network encoder protocol that Sage uses when you setup an Encoding server, but was never documented for the "public" protocol.

Quote:
It should be noted, that there is NO implementation of the Prime (SageDCT or this) that support the seamless transitions, as both are network encoders.
Right but I dropped my cablecard and now I just use everything Clear QAM native in Sage, but as noted above, Sage doesn't have the best handling of transport streams, so I'm curious to try this out and see if it solves some of my issues. However the IRPStackSize tweak may have taken care of 90%+ of the errors I was seeing so my motiviation has dropped a bit.
Reply With Quote
  #37  
Old 04-10-2015, 07:42 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by stanger89 View Post
I think that's in the "advanced" network encoder protocol that Sage uses when you setup an Encoding server, but was never documented for the "public" protocol.



Right but I dropped my cablecard and now I just use everything Clear QAM native in Sage, but as noted above, Sage doesn't have the best handling of transport streams, so I'm curious to try this out and see if it solves some of my issues. However the IRPStackSize tweak may have taken care of 90%+ of the errors I was seeing so my motiviation has dropped a bit.
If nothing else, by using this and passing the stream through ffmpeg, it fixes (at at least drops) bad packets in the steram. This can turn an unplayable stream into one that just has a bit of corruption here or there. Being able to record direct to H.264 has other great benefits.

I will say, that the network encoder interface is the first thing I plan on looking at when we get into this thing, hopefully some of the features are there that we need to improve the system and it will just take some documentation to expand those features to these 3rd party encoders. If not, I guess I'll be adding some features as well... I had, early on, talked about wanting to roll this solution (the Prime encoder) into Sage, but I am thinking more and more that a more modular support, where nearly all future encoders are network based, will be more versatile and robust going forward - but the API would have to add in some things like scanning and/or retrieving channels lists and such.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #38  
Old 04-14-2015, 08:25 AM
uberpixel uberpixel is offline
Sage Advanced User
 
Join Date: Nov 2008
Posts: 238
Well... Not sure if it's related to this new encoder but I've started experiencing occasional tuner issues like "Halt Detected" and "Recording Missed Due to Conflict". Worse yet I've seen a few lock-ups and reboots on my server. I'm running a few other things on the server (Blue Iris as well as serving files) so it's possible that the reboots aren't related to Sage.

With the Halt's it typically drops around 5 minutes of the program and then picks it back up again and continues on.

For the tuner conflict, in some cases, it's the only program being recorded so I know I don't have any schedule conflict. I suspect the tuner is dropping out entirely and Sage reports a conflict.

Anyone else seeing this behavior with the new encoder?

-uberpixel
__________________
{Server} | i5-3330S | Z77X-UD5H | 8gb DDR3 | Windows 10 Pro |
{Tuners} | (1) HDHomerun (OTA) | (1) HDHomerun Prime + OpenDCT on Comcast |
{Client} | (2) HD300 Extenders | (1) PC Client | Mi Box Android Client | FireTV Stick |
Reply With Quote
  #39  
Old 04-14-2015, 08:41 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by uberpixel View Post
Well... Not sure if it's related to this new encoder but I've started experiencing occasional tuner issues like "Halt Detected" and "Recording Missed Due to Conflict". Worse yet I've seen a few lock-ups and reboots on my server. I'm running a few other things on the server (Blue Iris as well as serving files) so it's possible that the reboots aren't related to Sage.

With the Halt's it typically drops around 5 minutes of the program and then picks it back up again and continues on.

For the tuner conflict, in some cases, it's the only program being recorded so I know I don't have any schedule conflict. I suspect the tuner is dropping out entirely and Sage reports a conflict.

Anyone else seeing this behavior with the new encoder?

-uberpixel
Mine has been rock solid since the beginning no problems at all.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #40  
Old 04-14-2015, 09:44 AM
mechling-burgh mechling-burgh is offline
Sage Aficionado
 
Join Date: Feb 2006
Location: Pittsburgh, PA
Posts: 406
The halt detected I was getting a lot of. I reinstalled sage and that seemed to fix the problem I have only had three halt detected since then. Two of them ere back to back recordings and required a reboot of the prime so that one I don't think was the encoder problem. Maybe try a reinstall of sage not the whole server, if you can find the time to do it.
Reply With Quote
Reply


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
Interest in HDHomeRun Prime Network Encoder jvl711 Hardware Support 175 04-13-2015 01:11 PM
Prime Encoder Script checkbin SageTV Linux 14 03-22-2015 07:50 AM
SageTV as a network encoder / recording on network encoder works, not from server perfessor101 SageTV Software 0 06-21-2014 05:59 AM
Ubuntu + HDHomerunPrime + Prime Encoder matt91 SageTV Linux 2 03-23-2014 03:46 PM
HDHomerun Prime? cenwesi Hardware Support 26 04-19-2011 05:40 PM


All times are GMT -6. The time now is 03:10 PM.


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