NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
1 2 3 4 5 … 93 Next »
Poor man's EPG mode.

 
  • 0 Vote(s) - 0 Average
Poor man's EPG mode.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,844
Threads: 954
Joined: May 2006
#11
2020-04-06, 12:05 AM
Ok I don't consider this even alpha code since I wrote it for myself but you can give it a try, as you posted people are looking at things to do to keep from being bored.
 
Unzip the attached into "C:\Program Files\NextPVR" and this  line needs to be added to the top of ParallelProcessing.bat

Code:
"C:\Program Files\NextPVR\Stitch.exe" %3

Send the zipped logs  with any questions the stitch logs will be include.  This also dumps some message in nrecord log haven't bother cleaning anything up since mid Feb.

Martin


Attached Files
.zip   Stitch.zip (Size: 83.09 KB / Downloads: 3)
sgilani
Offline

Senior Member

Posts: 730
Threads: 72
Joined: Jan 2006
#12
2020-04-06, 02:59 AM
Thanks!

The buffer file got moved to the recordings directory with a -stitch appended to the filename pre-extension. The nrecord logs show that the code in Stitch threw an exception:

Code:
2020-04-05 19:51:46.169    [DEBUG][14]    Got request [::1]: /api/GetServerStatus
2020-04-05 19:51:46.341    [DEBUG][12]    0
2020-04-05 19:51:46.447    [DEBUG][12]    909017109
2020-04-05 19:51:46.560    [ERROR][13]    Unhandled exception. System.InvalidOperationException: Lost sync@2 abort
2020-04-05 19:51:46.560    [ERROR][13]       at Stitch.Program.StitchTogether(String recordingName) in D:\v5\solutions\Stitch\Program.cs:line 494
2020-04-05 19:51:46.560    [ERROR][13]       at Stitch.Program.Main(String[] args) in D:\v5\solutions\Stitch\Program.cs:line 303

Zipped logs attached.


Attached Files
.zip   stitch-logs.zip (Size: 9.74 KB / Downloads: 1)
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,844
Threads: 954
Joined: May 2006
#13
2020-04-06, 03:19 AM
That doing what it is supposed to do when the -stitch file doesn't have the proper ts file. in a header. The purpose of this was so I could check the stitch file to see where it lost sync. I don't know if IPTV downloads are guaranteed to be 188 byte ts files with proper ts headers or not I would need the -stitch file to confirm this Perhap if you created a OneDrive share folder and PM'd me about contact info I could easily get smallish files and delete them of you put it there.

Martin
sgilani
Offline

Senior Member

Posts: 730
Threads: 72
Joined: Jan 2006
#14
2020-04-06, 03:29 AM
Sure, that sounds good. Sent you a PM.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,844
Threads: 954
Joined: May 2006
#15
2020-04-06, 11:02 AM
Thanks got it and works fine. Since it seems that this is a regular problem the next time it happens could you send the live....ts file that goes with it. I want to see if they are invalid too.

Martin
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,844
Threads: 954
Joined: May 2006
#16
2020-04-07, 01:07 AM
Ok try this one,  NextPVR IPTV ts files don't have to start with a ts header like the tuner files do.  Also should fix the HDPVR file issue.

Martin


Attached Files
.zip   stitch.zip (Size: 83.49 KB / Downloads: 4)
sgilani
Offline

Senior Member

Posts: 730
Threads: 72
Joined: Jan 2006
#17
2020-04-07, 01:52 AM
HDPVR2 seems to work now, awesome! Just to confirm, the buffer file becomes the stitched/sewn together recording with everything in it, right? And would it be safe to delete the post-buffer recording after it has completed--and leave just the buffer recording intact?

IPTV isn't throwing any exceptions anymore, but stitch.log has 'No match exiting cannot extend'. I've updated new files and logs in a folder called 'PostPatch'.

I also noticed a strange quirk in the post-buffer recording. In the recording list, it has the correct timestamp (Today 6:41 PM - 6:42 PM). If I click on it, the details in the pop-up say (Tomorrow 1:00 AM - 2:00 AM).
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,844
Threads: 954
Joined: May 2006
#18
2020-04-07, 02:09 AM (This post was last modified: 2020-04-07, 02:10 AM by mvallevand.)
After more testing I'd say it would be safe I am sure that it won't aways match so I would not delete the file right now if it was important. For the number of occasions a user would do this not sure it is worth deleting the real recording.

I will check the field to see what I am missing. I want to update the end time too if I can. Some players trust the database more than the file size

I expect most home IPTV services will fail to make a big file. Some streams from commercial CDNs will be fine but some IPTV won't even be the same source.

Martin
sgilani
Offline

Senior Member

Posts: 730
Threads: 72
Joined: Jan 2006
#19
2020-04-07, 02:18 AM
Sounds good, what's important is that we won't lose the buffer anymore. I can always go back and stitch the files together manually if it's something I want to keep etc.

Thanks for doing this, Martin! Hopefully we'll have native support soon.... Smile
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,844
Threads: 954
Joined: May 2006
#20
2020-04-07, 02:26 AM
Joining different ts files will tough the end and start overlap and you'd need to transcode to. Better if sub used multrec.

Yes native epg mode is much better but this is ok when you are timeshifting and need to step outor decide you want to save it on occasion.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (5): « Previous 1 2 3 4 5 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Client mode - PlayVideo psycik 12 5,146 2007-09-01, 09:55 PM
Last Post: psycik
  Inset in video playback mode HTPCGB 2 1,692 2007-03-30, 01:37 PM
Last Post: tipstir
  XRecord - client/server mode? madcat 7 3,178 2007-02-23, 04:48 AM
Last Post: sub
  Query live preview mode fla 3 2,335 2006-07-12, 12:18 AM
Last Post: fla

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

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

Linear Mode
Threaded Mode