NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 13 14 15 16 17 … 93 Next »
Access ImportHDPVRChannelsForm

 
  • 0 Vote(s) - 0 Average
Access ImportHDPVRChannelsForm
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,184
Threads: 958
Joined: May 2006
#11
2011-08-01, 06:35 PM
Sure it was too big for the forum so I will send it to you.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#12
2011-08-01, 08:01 PM
I think I found the cause. See if this fixes it.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,184
Threads: 958
Joined: May 2006
#13
2011-08-01, 08:43 PM
Yes that fixes the crash in NRecord, but unfortunately not using NPVR's built in recording service which does slow testing a bit. Now I have a few more questions

1 Is StartStream supposed to return a handle of some sort or zero?
2. Cancel works against the database but the plugin doesn't get any indication to stop. Do I have to poll the status field in the datbase?
3. Does the file have to be a transport stream?

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#14
2011-08-01, 08:56 PM
mvallevand Wrote:Yes that fixes the crash in NRecord, but unfortunately not using NPVR's built in recording service which does slow testing a bit.
Are you saying you want to be able to use the local recording service inside NextPVR.exe instead of having to run nrecord.exe? You should able to do with this minor tweaks to the config.xml.

Quote:1 Is StartStream supposed to return a handle of some sort or zero?
It should be non-zero. I usually use some incrementing handle number. ie, 1 then 2 then 3 etc.

Quote:2. Cancel works against the database but the plugin doesn't get any indication to stop. Do I have to poll the status field in the datbase?
It will call StopStream on your recorder plugin when it stops any recording or live tv session.

Quote:3. Does the file have to be a transport stream?
Yes. You might be able to get away with non transport stream for recording, but you wont be able to for live tv or playing in-progress recordings.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,184
Threads: 958
Joined: May 2006
#15
2011-08-01, 10:01 PM
sub Wrote:Are you saying you want to be able to use the local recording service inside NextPVR.exe instead of having to run nrecord.exe? You should able to do with this minor tweaks to the config.xml.

I can turn in on the internal recording process but it still stops at the same spot before StartStream is called.

Quote:It will call StopStream on your recorder plugin when it stops any recording or live tv session.

Yes I am see that now. Can I use Console.WriteLine() with NRecord RUN ?

Quote:You might be able to get away with non transport stream for recording, but you wont be able to for live tv or playing in-progress recordings.

Thanks, I was hoping to us GBRecord to test I will have to think of another way. This will probably be an issue when I look at the Graph Recoder plugin.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#16
2011-08-01, 10:19 PM
mvallevand Wrote:I can turn in on the internal recording process but it still stops at the same spot before StartStream is called.
There is no reason this shouldnt work. If you reproduce and post the npvr.log, I'll take a look.

Quote:Yes I am see that now. Can I use Console.WriteLine() with NRecord RUN ?
Yes, you should be able to.

Quote:This will probably be an issue when I look at the Graph Recoder plugin.
In most graphs you can probably take the separate MPEG2/H.264 video stream, and AC3/MPEG1 audio stream, and connect them to the ""MainConcept (HCW) MPEG Multiplexer-Plus" filter, then connect the output to the 'NPVR Writer' filter.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,184
Threads: 958
Joined: May 2006
#17
2011-08-01, 10:52 PM
sub Wrote:There is no reason this shouldnt work. If you reproduce and post the npvr.log, I'll take a look.

Attached, the trace seems the same

Code:
[3392] <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Critical"><TraceIdentifier>http://msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/Unhandled</TraceIdentifier><Description>Unhandled exception</Description><AppDomain>NextPVR.exe</AppDomain><Exception><ExceptionType>System.NullReferenceException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>Object reference not set to an instance of an object.</Message><StackTrace>   at NShared.RecordingService.WorkerThread()
[3392]    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
[3392]    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
[3392]    at System.Threading.ThreadHelper.ThreadStart()</StackTrace><ExceptionString>System.NullReferenceException: Object reference not set to an instance of an object.
[3392]    at NShared.RecordingService.WorkerThread()
[3392]    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
[3392]    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
[3392]    at System.Threading.ThreadHelper.ThreadStart()</ExceptionString></Exception></TraceRecord>

config.xml has

<AllowInProcessRecording>true</AllowInProcessRecording>
<ForceRecordingServiceUse>false</ForceRecordingServiceUse>
<UseRecordingService>false</UseRecordingService>

Quote:In most graphs you can probably take the separate MPEG2/H.264 video stream, and AC3/MPEG1 audio stream, and connect them to the ""MainConcept (HCW) MPEG Multiplexer-Plus" filter, then connect the output to the 'NPVR Writer' filter.

I was thinking of the graphs that create avi or wmv files with specialized hardware.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#18
2011-08-01, 11:01 PM
mvallevand Wrote:I was thinking of the graphs that create avi or wmv files with specialized hardware.
Yeah you pretty much have to stick to transport stream files. Otherwise you get all sorts of complications with how to do live tv and how to play in-progress recordings etc. Pretty much everything produces content that can be put in TS files, so its not a big problem.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#19
2011-08-02, 12:20 AM
mvallevand Wrote:Attached, the trace seems the same
Ah, I see what is happening. Unfortunately you might need to stick to testing it with nrecord.exe for now. It looks like I'll break some plugins if I fix this. I'll have to note it down and change the interface slightly for the next release.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,184
Threads: 958
Joined: May 2006
#20
2011-08-02, 12:51 AM
No worries, I am used to debugging with NRecord RUN. Everything is working fine testing with GBRecord even for in progress and I am quite pleased.

- For LiveTV I assume I just create one big file. I assume you are responsible for deleting it?
- I don't see any duration passed, should I just keep recording until you stop? This seems risky.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (7): « Previous 1 2 3 4 5 … 7 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  NextPVR 5: When is PIN Required for API Access? pkscout 3 2,846 2020-05-26, 04:45 AM
Last Post: sub
  API access to artwork and deleting recordings cncb 29 16,082 2016-11-06, 02:20 AM
Last Post: mvallevand
  Access 'Stay on top' setting from a plugin? McBainUK 5 2,502 2011-11-07, 04:43 PM
Last Post: sub
  Access to Schedules inside standalone progs dero 1 1,457 2008-12-09, 12:03 PM
Last Post: dero
  Linking gbpvr.db3 to Access 2003: get readonly tables Khurram 5 4,024 2008-09-11, 08:35 AM
Last Post: Khurram
  Access to FSE switch idkpmiller 12 4,413 2008-07-05, 04:01 PM
Last Post: whurlston
  Access DB and DateTime idkpmiller 5 2,474 2008-04-14, 10:37 AM
Last Post: idkpmiller
  SilverLight Web Access uwfalcon 1 1,400 2008-03-16, 05:32 AM
Last Post: sub
  GB-PVR web access McBainUK 2 3,686 2008-03-14, 03:21 PM
Last Post: McBainUK
  Need help, using VB 2005 Express and Access TOM22 1 1,419 2007-09-23, 06:29 AM
Last Post: Ommina

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode