SageTV Community

SageTV Community (http://forums.sagetv.com/forums/index.php)
-   Hardware Support (http://forums.sagetv.com/forums/forumdisplay.php?f=9)
-   -   PrimeNetEncoder - HDHomeRun Prime Network Encoder (http://forums.sagetv.com/forums/showthread.php?t=62055)

uberpixel 04-03-2015 11:09 PM

Quote:

Originally Posted by jvl711 (Post 570851)
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... :blush:

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

mgpaulus 04-07-2015 07:36 PM

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.

nyplayer 04-07-2015 08:47 PM

Quote:

Originally Posted by mgpaulus (Post 570977)
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


mgpaulus 04-07-2015 09:36 PM

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>

nyplayer 04-07-2015 09:51 PM

Quote:

Originally Posted by mgpaulus (Post 570985)
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.

mgpaulus 04-07-2015 09:53 PM

Quote:

Originally Posted by nyplayer (Post 570986)
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...

nyplayer 04-07-2015 09:55 PM

Quote:

Originally Posted by mgpaulus (Post 570987)
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.

mgpaulus 04-07-2015 10:02 PM

Quote:

Originally Posted by nyplayer (Post 570988)
You definitely have something wrong maybe you should just zip the whole folder. Could be the properties file.

Dropped you a private message.

nyplayer 04-07-2015 10:36 PM

1 Attachment(s)
Quote:

Originally Posted by mgpaulus (Post 570989)
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.

mgpaulus 04-07-2015 10:51 PM

Quote:

Originally Posted by nyplayer (Post 570993)
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....

nyplayer 04-07-2015 10:57 PM

Quote:

Originally Posted by mgpaulus (Post 570994)
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

mistergq 04-09-2015 06:10 AM

Does this eliminate the delay between back to back recordings?

nyplayer 04-09-2015 06:27 AM

Quote:

Originally Posted by mistergq (Post 571019)
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.

stanger89 04-10-2015 06:18 AM

Quote:

Originally Posted by nyplayer (Post 570770)
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?

Fuzzy 04-10-2015 06:45 AM

Quote:

Originally Posted by stanger89 (Post 571043)
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.

stanger89 04-10-2015 07:22 AM

Quote:

Originally Posted by Fuzzy (Post 571044)
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.

Fuzzy 04-10-2015 07:42 AM

Quote:

Originally Posted by stanger89 (Post 571045)
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.

uberpixel 04-14-2015 08:25 AM

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

nyplayer 04-14-2015 08:41 AM

Quote:

Originally Posted by uberpixel (Post 571118)
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.

mechling-burgh 04-14-2015 09:44 AM

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.


All times are GMT -6. The time now is 07:17 PM.

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