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
  #441  
Old 10-04-2015, 06:46 PM
jvl711's Avatar
jvl711 jvl711 is offline
Sage Fanatic
 
Join Date: Jan 2004
Posts: 825
Quote:
Originally Posted by Eckwell View Post
I have read through what feels like everything... When i run the Jar file I get the following in the .txt log file:

10/04/2015 10:11:44 - Running PrimeNetEncoder in Console Mode
10/04/2015 10:11:44 - PrimeNetEncoder Version: 1.2.4
10/04/2015 10:11:44 - Starting tunner threads
10/04/2015 10:11:44 - Starting Debug Console
10/04/2015 10:11:44 - Unexpected error reading from the console. The handle is invalid
10/04/2015 10:11:44 - Unexpected error reading from the console. The handle is invalid
10/04/2015 10:11:44 - Unexpected error reading from the console. The handle is invalid

I can't seem to get past this. My remaining thought is that i am running Java 8 and maybe that is the issue?

My PrimeNetEncoder folder is in my main SAGE folder on the server... i am running 64-bit Windows 7. FFMpeg is 64-bit and is placed in the PrimeNetEncoder folder (just the single file)

attached are my files if anyone can please take a look. I have not even gotten to the point where i start sage... i am just trying to get the .txt file from growing exponentially with this error first!
How exactly are you launching the application? It is throwing an error that it can not read from the console. If you are not launching from a console can you please try that.

FYI... I have not tested this with Java 1.8. It might work fine, but I do not know.
Reply With Quote
  #442  
Old 10-04-2015, 07:44 PM
kchase56 kchase56 is offline
Sage User
 
Join Date: Jun 2008
Posts: 45
Hi jvl711,

I'm getting the following problem using version 1.2.4 of PrimeNetEncoder when trying to access any of the tuners on my 2nd HDHomerun Prime =>

10/04/2015 19:00:13 - Checking to see if the tuner is locked.
10/04/2015 19:00:13 - Tuner is locked. Force unlocking the tuner.
10/04/2015 19:00:13 - Switch channel: 1027
10/04/2015 19:00:13 - Using Lockkey: 1627678092
10/04/2015 19:00:13 - Command output: ERROR: unknown getset variable
10/04/2015 19:00:13 - Send stream to UDP port: 5003
10/04/2015 19:00:13 - Using Lockkey: 1627678092
10/04/2015 19:00:13 - Command output: ERROR: unknown getset variable


All of the tuners on the first tuner work just fine. What would cause the tuner to report as being locked? Also what is the "ERROR: unknown getset"?

Any information that you could provide regarding this problem would be greatly appreciated.

Thanks for all of your hard work on this driver.
Reply With Quote
  #443  
Old 10-04-2015, 08:21 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by kchase56 View Post
Hi jvl711,

I'm getting the following problem using version 1.2.4 of PrimeNetEncoder when trying to access any of the tuners on my 2nd HDHomerun Prime =>

10/04/2015 19:00:13 - Checking to see if the tuner is locked.
10/04/2015 19:00:13 - Tuner is locked. Force unlocking the tuner.
10/04/2015 19:00:13 - Switch channel: 1027
10/04/2015 19:00:13 - Using Lockkey: 1627678092
10/04/2015 19:00:13 - Command output: ERROR: unknown getset variable
10/04/2015 19:00:13 - Send stream to UDP port: 5003
10/04/2015 19:00:13 - Using Lockkey: 1627678092
10/04/2015 19:00:13 - Command output: ERROR: unknown getset variable


All of the tuners on the first tuner work just fine. What would cause the tuner to report as being locked? Also what is the "ERROR: unknown getset"?

Any information that you could provide regarding this problem would be greatly appreciated.

Thanks for all of your hard work on this driver.
Post up your PrineNetEncoder.properties file
__________________
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
  #444  
Old 10-05-2015, 01:25 AM
kchase56 kchase56 is offline
Sage User
 
Join Date: Jun 2008
Posts: 45
Here is the properties file.
Attached Files
File Type: zip PrimeNetEncoder.zip (641 Bytes, 93 views)
Reply With Quote
  #445  
Old 10-05-2015, 02:47 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
The problem is your tuner3.number entries (and 4 and 5).

PrimeNetEncoder uses the .id and the .number properties to determine how to locate and interact with a given tuner. What you are doing is telling it that tuner3.id and tuner3.number point to tuner #3 on the device with id 1311C562. There is not tuner 3 on that device, as it only has 0, 1, and 2.

you need the entries to read as follows:
Code:
tuner0.id=131142D4
tuner0.number=0
tuner1.id=131142D4
tuner1.number=1
tuner2.id=131142D4
tuner2.number=2
tuner3.id=1311C562
tuner3.number=0
tuner4.id=1311C562
tuner4.number=1
tuner5.id=1311C562
tuner5.number=2
Hope that makes sense.
__________________
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
  #446  
Old 10-05-2015, 03:04 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Finally got around to setting up 1.2.4 yesterday, and today I've noticed a marked increase in stream glitches in all recordings since the change. Have to think it's related, as I've always had pretty good signal quality. Before I roll back, any recommendations on some buffering tweaks to hopefully not lose any bits through the process?
__________________
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
  #447  
Old 10-05-2015, 05:46 AM
jvl711's Avatar
jvl711 jvl711 is offline
Sage Fanatic
 
Join Date: Jan 2004
Posts: 825
Quote:
Originally Posted by Fuzzy View Post
Finally got around to setting up 1.2.4 yesterday, and today I've noticed a marked increase in stream glitches in all recordings since the change. Have to think it's related, as I've always had pretty good signal quality. Before I roll back, any recommendations on some buffering tweaks to hopefully not lose any bits through the process?
I gave nyplayer a one off that had some buffer changes. I have been testing that internally for a while. It seems to be pretty stable. I am going to pull the trigger and release it hopefully today. I hope that will fix your issues.
Reply With Quote
  #448  
Old 10-05-2015, 06:16 AM
Eckwell's Avatar
Eckwell Eckwell is offline
Sage Aficionado
 
Join Date: Apr 2007
Posts: 289
nyplayer - your suggestion of using the batch file, and pointing to the Java 8 Java.exe location in the file worked! the console came up without any complaint, I was able to see and set-up all three tuners in SageTV and things seem to be working fine now.

Thank you Very much for your suggestion!

I am seeing some video glitches which seem to also have been noticed others... Testing continues, but THANK YOU!
__________________
Eckwell / Chicago, IL
SERVER: AMD Phenom III 8750 Black / 4 GB / XP Pro / JV1.6.24 / V7 / 2 PVR-HD (DirectTV) & HDHR (2xATSC)
STORAGE: WD Raptor36GB boot / 11TB in 2 eSATA enclosure
DEFAULT STV
Comskip triggered by DirMON2 --- HD100 / HD200 /HD300
BMI fanart
Reply With Quote
  #449  
Old 10-05-2015, 06:57 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by jvl711 View Post
I gave nyplayer a one off that had some buffer changes. I have been testing that internally for a while. It seems to be pretty stable. I am going to pull the trigger and release it hopefully today. I hope that will fix your issues.
In the mean time, I am planning on disabling the mediaserver push on it this morning - since it's on my server, it's not really necessary - hopefully it will narrow down where the stream is getting dropped.
__________________
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
  #450  
Old 10-05-2015, 08:45 AM
kchase56 kchase56 is offline
Sage User
 
Join Date: Jun 2008
Posts: 45
Quote:
Originally Posted by Fuzzy View Post
The problem is your tuner3.number entries (and 4 and 5).

PrimeNetEncoder uses the .id and the .number properties to determine how to locate and interact with a given tuner. What you are doing is telling it that tuner3.id and tuner3.number point to tuner #3 on the device with id 1311C562. There is not tuner 3 on that device, as it only has 0, 1, and 2.

you need the entries to read as follows:
Code:
tuner0.id=131142D4
tuner0.number=0
tuner1.id=131142D4
tuner1.number=1
tuner2.id=131142D4
tuner2.number=2
tuner3.id=1311C562
tuner3.number=0
tuner4.id=1311C562
tuner4.number=1
tuner5.id=1311C562
tuner5.number=2
Hope that makes sense.
That worked perfectly!

Thanks Fuzzy!
Reply With Quote
  #451  
Old 10-05-2015, 09:34 AM
Eckwell's Avatar
Eckwell Eckwell is offline
Sage Aficionado
 
Join Date: Apr 2007
Posts: 289
Auto Start for PrimeNetEncoder?

How are folks running this? Batch file at start up?

And what about timing and not wanting to have more than one running, etc.

What is "best practice" at this point?

thanks again.
__________________
Eckwell / Chicago, IL
SERVER: AMD Phenom III 8750 Black / 4 GB / XP Pro / JV1.6.24 / V7 / 2 PVR-HD (DirectTV) & HDHR (2xATSC)
STORAGE: WD Raptor36GB boot / 11TB in 2 eSATA enclosure
DEFAULT STV
Comskip triggered by DirMON2 --- HD100 / HD200 /HD300
BMI fanart
Reply With Quote
  #452  
Old 10-05-2015, 09:40 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by Eckwell View Post
How are folks running this? Batch file at start up?

And what about timing and not wanting to have more than one running, etc.

What is "best practice" at this point?

thanks again.
I schedule it through windows task scheduler... to run at Startup with highest privileges... whether I am logged on or not.. also hidden... also I disable the option that says stop this tasks if it is running more than 3 days.

You also have to export it and change the priority from 7 to 4 then delete from task scheduler and re-import it. Windows by default starts every task with priority of 7 that is below normal.
This thread explains priority.
http://forums.sagetv.com/forums/show...2&postcount=55

I chose not to run it as a runnable task because it uses SageTV Java heap.

Last edited by nyplayer; 10-05-2015 at 09:49 AM.
Reply With Quote
  #453  
Old 10-05-2015, 10:02 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by Fuzzy View Post
In the mean time, I am planning on disabling the mediaserver push on it this morning - since it's on my server, it's not really necessary - hopefully it will narrow down where the stream is getting dropped.
Well, I switched to direct file writing instead of the MediaServer push, but it looks like this doens't change the process much.
With the MediaServer enabled:
Code:
HDHomeRun(UDP) -> PrimeNetEncoder(SDIN) -> ffmpeg(STDOUT) -> SageTV Media Server(TCP)
Code:
HDHomeRun(UDP) -> PrimeNetEncoder(STDIN) -> ffmpeg(STDOUT) -> PrimeNetEncoder -> File(CIFS/SMB)
Where I had hoped that if the mediaserver was disabled, it would simply have ffmpeg write the file directly, as such:
Code:
HDHomeRun(UDP) -> PrimeNetEncoder(STDIN) -> ffmpeg(CIFS/SMB)
The extra piping seems costly.

In any case, the data is still getting damaged somewhere.
__________________
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
  #454  
Old 10-05-2015, 10:03 AM
jvl711's Avatar
jvl711 jvl711 is offline
Sage Fanatic
 
Join Date: Jan 2004
Posts: 825
Hi,

Released RC1 of PrimeNetEncoder. Please provide feedback positive or negative. I would like to release a stable version and I want to make sure there is as little issues as possible.

Josh
Reply With Quote
  #455  
Old 10-05-2015, 10:19 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by jvl711 View Post
Hi,

Released RC1 of PrimeNetEncoder. Please provide feedback positive or negative. I would like to release a stable version and I want to make sure there is as little issues as possible.

Josh
Well, I dropped in the 1.2.5, started it up, and had similar results. I then added the java parameters you put in the batch file and it seems markedly better. not sure which parameter makes the biggest fix, but it is recording great right now (on the first stream I tried). I'll load it up here for a bit and see if it keeps up.
__________________
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
  #456  
Old 10-05-2015, 10:21 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by Fuzzy View Post
Well, I dropped in the 1.2.5, started it up, and had similar results. I then added the java parameters you put in the batch file and it seems markedly better. not sure which parameter makes the biggest fix, but it is recording great right now (on the first stream I tried). I'll load it up here for a bit and see if it keeps up.
I too have it running with the Java parameters appears fine so far.
Reply With Quote
  #457  
Old 10-05-2015, 10:40 AM
jvl711's Avatar
jvl711 jvl711 is offline
Sage Fanatic
 
Join Date: Jan 2004
Posts: 825
Fuzzy and nyplayer,

Thanks for the quick responses. I decided on those parameters after a large amount of tracing of what the JVM was doing while running my app. That has been mainly what I was looking at over the past few weeks. I think it is really running well with these parameters. Garabage collection is very low, which is going to reduce the number of pauses.

Let me know if you guys think I should make those parameters part of a normal PrimeNetEncoder install?

Josh
Reply With Quote
  #458  
Old 10-05-2015, 10:44 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Well, i put all 3 on high bitrate local channels, and along with comskipping and plex transcoding to max the cpu, they seem to be playing back flawlessly. (I went back to using the MediaServer method).

This is using your java parameters in the batch file (actually inserted into my .cmd file that handles setting the current directory and points to the specific java.exe directly), launched as a high privilege service at priority 4.
__________________
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
  #459  
Old 10-05-2015, 11:51 AM
jvl711's Avatar
jvl711 jvl711 is offline
Sage Fanatic
 
Join Date: Jan 2004
Posts: 825
Quote:
Originally Posted by Fuzzy View Post
Well, I switched to direct file writing instead of the MediaServer push, but it looks like this doens't change the process much.
With the MediaServer enabled:
Code:
HDHomeRun(UDP) -> PrimeNetEncoder(SDIN) -> ffmpeg(STDOUT) -> SageTV Media Server(TCP)
Code:
HDHomeRun(UDP) -> PrimeNetEncoder(STDIN) -> ffmpeg(STDOUT) -> PrimeNetEncoder -> File(CIFS/SMB)
Where I had hoped that if the mediaserver was disabled, it would simply have ffmpeg write the file directly, as such:
Code:
HDHomeRun(UDP) -> PrimeNetEncoder(STDIN) -> ffmpeg(CIFS/SMB)
The extra piping seems costly.

In any case, the data is still getting damaged somewhere.
Fuzzy,

You are correct. The new methodology is a little more costly, but I think the benefits out way the extra processing. Below are the reasons for the changes.

1. I hope to move the remuxing to Sage in the future. Doing so requires reading from the HDHomeRun directly, so that I can pass the stream unaltered to the MediaServer.

2. Reading the stream directly from the HDHomeRun allows me to monitor the data being generated from the HDHomeRun. I have on occasion seen the HDHomeRun not properly respond to request. If I see that data is not being sent I can quickly reset the tuner without disrupting any other part of the streaming process.

Josh
Reply With Quote
  #460  
Old 10-05-2015, 11:56 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
I wasn't really discussing the UDP from the HDHR to PNE, or even the STDIN pipe into ffmpeg. I was discussing the unneeded step of having ffmpeg pipe back to PNE, for it just to write to a file. I understand the need if using the MediaServer to bring it back to PNE, since ffmpeg doesn't know about sage MediaServer protocols. I was just expecting it to skip that step and just pass an output filepath to ffmpeg if MediaServer is disabled.
__________________
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
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 06:43 AM.


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