Back in the day I used to be a Java Programmer. Over the years the amount of actual coding that I've been doing has dropped off to almost nothing.
So in an attempt to prove to myself that I "still got it", I was trying to write a simple Java client for the EWA web services.
I am stuck on Creating Credentials. Can somebody help me out with what is going on in CreateCredetial.cs so I can go off and Google it all and try to come up with a Java implementation?
I'm not exactly sure what a stream count is that I keep seeing in the logs - used for tracking multiple recordings coming from 1 tuner perhaps? - but it's causing some trouble for my HD-PVR.
While testing my channel change/box reset issue I mentioned earlier, I've found that when a recording is canceled or finishes my HDPVR is being left in a recording state afterwards - HDPVR's little red recording light is on and the file continues to be written to even after the recording finishes. Here's an example of the problem from the logs:
Code:
2011-01-18 13:32:27.319 [DEBUG][7] About to start recording (1066): F:\video\recordings\Signs\Signs_20110118_12301420-0.ts
2011-01-18 13:32:27.320 [INFO][7] HDPVRRecorder.StartStream(F:\video\recordings\Signs\Signs_20110118_12301420-0.ts)
[B][COLOR=red]2011-01-18 13:32:27.320 [INFO][7] HDPVR stream count now 1[/COLOR][/B]
2011-01-18 13:32:27.320 [INFO][7] Running blaster: C:\vid\STB\channel.bat 951
2011-01-18 13:32:31.830 [INFO][7] Creating graph
2011-01-18 13:32:31.866 [DEBUG][7] FindFilterByName failed to locate filter: Hauppauge HD PVR Crossbar
2011-01-18 13:32:31.877 [DEBUG][7] Temp at 1/18/2011 1:32:41 PM
[COLOR=red]2011-01-18 13:32:31.877 [DEBUG][7] Failed to start recording (1066:F:\video\recordings\Signs\Signs_20110118_12301420-0.ts): 'Unable to locate crossbar filter (Hauppauge HD PVR Crossbar: #1)'
[/COLOR]
<snip - some time passes while I fix my channel.bat file>
[COLOR=red]2011-01-18 13:33:43.879 [DEBUG][7] About to start recording (1067): F:\video\recordings\Signs\Signs_20110118_12301420-0.ts
[/COLOR]2011-01-18 13:33:43.879 [INFO][7] HDPVRRecorder.StartStream(F:\video\recordings\Signs\Signs_20110118_12301420-0.ts)
[B][COLOR=red]2011-01-18 13:33:43.879 [INFO][7] HDPVR stream count now 2[/COLOR][/B]
2011-01-18 13:33:43.879 [INFO][7] Running blaster: C:\vid\STB\channel.bat 951
2011-01-18 13:33:44.598 [INFO][7] Creating graph
2011-01-18 13:33:44.810 [DEBUG][7] Graph filter list:
2011-01-18 13:33:44.810 [DEBUG][7] - NPVR Writer2
2011-01-18 13:33:44.810 [DEBUG][7] - NPVR Writer
2011-01-18 13:33:44.810 [DEBUG][7] - Infinite Pin Tee Filter
2011-01-18 13:33:44.810 [DEBUG][7] - Hauppauge HD PVR Encoder
2011-01-18 13:33:44.810 [DEBUG][7] - Hauppauge HD PVR Capture Device
2011-01-18 13:33:44.810 [DEBUG][7] - Hauppauge HD PVR Crossbar
2011-01-18 13:33:44.810 [INFO][7] About to start graph
2011-01-18 13:33:44.816 [DEBUG][7] Device reports resolution: 1920x1080 (fps:30)
2011-01-18 13:33:44.816 [DEBUG][7] device minimum bitrate: 200000
2011-01-18 13:33:44.816 [DEBUG][7] device maximum bitrate: 13500000
2011-01-18 13:33:44.816 [DEBUG][7] device bitrate step size: 100000
2011-01-18 13:33:44.819 [DEBUG][7] device reports current bitrate as: 13500000
2011-01-18 13:33:44.823 [DEBUG][7] device reports current peak bitrate as: 20200000
2011-01-18 13:33:44.823 [DEBUG][7] About to set BITRATE MODE
2011-01-18 13:33:44.827 [DEBUG][7] requesting variable encoding
2011-01-18 13:33:44.834 [DEBUG][7] trying to request bitrate: 13500000
2011-01-18 13:33:44.851 [DEBUG][7] device confirms bitrate as: 13500000
2011-01-18 13:33:44.851 [DEBUG][7] About to set PEAK BITRATE
2011-01-18 13:33:44.851 [DEBUG][7] device minimum peak bitrate: 200000
2011-01-18 13:33:44.851 [DEBUG][7] device maximum peak bitrate: 20200000
2011-01-18 13:33:44.851 [DEBUG][7] device peak bitrate step size: 100000
2011-01-18 13:33:44.851 [DEBUG][7] trying to request peak bitrate: 20200000
2011-01-18 13:33:44.863 [DEBUG][7] device confirms bitrate as: 20200000
2011-01-18 13:33:48.837 [DEBUG][7] About to switch HDPVR to target:
F:\video\recordings\Signs\Signs_20110118_12301420-0.ts
2011-01-18 13:33:48.851 [DEBUG][7] Temp at 1/18/2011 1:33:58 PM
2011-01-18 13:33:48.851 [DEBUG][7] Started recording (1067:F:\video\recordings\Signs\Signs_20110118_12301420-0.ts)
2011-01-18 13:33:48.945 [DEBUG][7] Starting: C:\Users\Public\NPVR\Scripts\ParallelProcessing.bat "F:\video\recordings\Signs\Signs_20110118_12301420-0.ts" 951 1067
[COLOR=red]2011-01-18 14:22:00.197 [DEBUG][7] Stopping recording (1067). Past end time of recording.
[B]2011-01-18 14:22:00.197 [INFO][7] HDPVR stream count now 1[/B][/COLOR]
2011-01-18 14:22:00.490 [DEBUG][7] No C:\Users\Public\NPVR\Scripts\PostProcessing.bat
After this last recording ended the file just keeps growing and I'm guessing it's due to the stream count issue.
I have occasional trouble with my HD-PVR, and it seems to be resolved by occasionally turning it off and on again. Since I have the occasional recording fail I want a way to reset the box at the beginning of every recording and I almost have it, but not quite.
Using some X10 software I can turn the power to the device off and back on programmatically, and adding the calls to the batch file I use for changing channels seems like a good means to do it. The problem is npvr tries to create the graph for the recording before the box is finished resetting, so now it fails consistently and reliably.
I thought I'd be clever and add a delay to the channel change script, giving the box about 10 seconds to finish resetting before continuing. Using the TIMEOUT command, I can indeed add a 10 second delay to the batch file and I've verified that it's taking that long since I cycle the HDPVR, wait 10 seconds and then issue my firewire command to change the channel. I can observe the delay. However, something a little peculiar happens when I do this.
Looking at npvr's logs, without any delay npvr goes from calling the channel change script to trying to setup the filter in about a second:
However, when adding a delay to the batch file npvr just waits a little while before continuing. It's not as fast as usual, but it's not waiting for the batch file to finish either - it seems to wait an extra 4-6 seconds but then goes ahead and resumes. Isn't that odd?
So, any suggestions? While I think it would be great if npvr actually waited for the channel change to finish, I know mine is a bit of an odd request so I'm not exactly expecting a change to npvr. I know I can use the Windows Task Scheduler to cycle the power on the HDPVR periodically, but that runs the risk happening during a recording to screwing it up. So, any other ideas?
My old GBPVR box has been chugging along nicely but now that we've upgraded to widescreen hdtvs the recordings coming from my PVR-150 & 500 aren't cutting it. There are many shows that I would like to record in hd widescreen. I thought about a hd homerun but several of the channels I want to record are digitally encrypted on our system. Our cable boxes do have component red/green/blue outputs though and they do work as i hooked them up to one of our tvs just to be sure.
I'm now thinking I would like to get a cable box just for the htpc and use an ir blaster to control it and an r/g/b encoder card to record from it . . . does anyone have any suggestions for appropriate encoder cards?
I'm seeing a couple issues with the TV Guide window. Not huge problems but thought I'd pass it along. I didn't see it noted anywhere. I have the latest patches installed.
I use Schedules Direct for the guide info, if it matters...
When I skip days (the Skip key on the remote) it works OK. When I get to the end of the listings it will show an empty guide for subsequent days. However, if I try to skip back into the days that are populated (the Replay key on the remote) the day & date change but the guide doesn't show anything. As long as I don't go past the end of the listings, skipping forward & back work fine.
Furthermore, if I'm using the arrow key to advance thru the guide, when I try to go past the last show in a channel it throws an unhandled exception error Here's the log info:
Unexpected error: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at NextPVR.TV.TVGuide.UpdateGuide()
at NextPVR.TV.TVGuide.NeedsRendering()
at NextPVR.ControllerForm.Render(Boolean forceRender)
at NextPVR.Program.Main(String[] args)
nPVR 1.5.36 dvd playing starts a new window when using overlay buffer, and it is using the video renderer from the decoders section, instead of from the DVD section (video renderer in DVD section doesn't do anything).
I've got NPVR working great with my Blackgold 3620 except that all timed recordings that start after resuming from standby are 0kB!
I've found the error message "Unexpected error on DVB-T put_TunerRequest: 0x8007001F" in nrecord.log [attached].
I have used MediaPortal and Tv Scheduler Pro which do not suffer from this issue with the same card.
Perhaps NPVR is not allowing enough time for the 3620 to initialize?
I'm using a Hauppauge 45 button remote. It works fine in GBPVR, but when I use NPVR (on the same computer) there is a 3 second delay between the button press being shown. If I press a button (ie: cursor down) 3 times quickly, the selection on the screen will move down 3 times, but there is a 3 second pause between each one. Everything works fine if I use a mouse or the keyboard. Any ideas on how to fix this?