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: 53,090
Threads: 957
Joined: May 2006
#21
2020-04-07, 03:02 AM
(2020-04-07, 01:52 AM)sgilani Wrote: 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).

Originally I couldn't duplicate this with the web server doing the recording and the two records in the database looked equal.  But I thought about this and it seems to be an odd bug in NextPVR.exe's ctrl-K logic nothing to do with stitch but I can't explain it from the database.

Martin
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,090
Threads: 957
Joined: May 2006
#22
2020-04-07, 05:49 PM
Here is another update to stitch which finishes off some things that I wanted to do for myself

- the message is different if the file is "Stitching" or finished "Buffer"
- moved this message to the subtitle so they are grouped together by title
- the end time is the end of recording after stitching.



Martin


Attached Files
.zip   Stitch.zip (Size: 83.86 KB / Downloads: 10)
sgilani
Offline

Senior Member

Posts: 730
Threads: 72
Joined: Jan 2006
#23
2021-08-22, 10:14 PM
This has been working for a while now, thanks! I don't use it too often but it's worked whenever I've tried it.

I'm thinking about moving over to a Linux backend, but I'm not sure if your solution could be adapted to work there?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,090
Threads: 957
Joined: May 2006
#24
2021-08-22, 10:20 PM
It's built in netcore and it works when I need it on linux. If and when you need it I can help you out.

Martin
sgilani
Offline

Senior Member

Posts: 730
Threads: 72
Joined: Jan 2006
#25
2021-08-29, 01:44 AM
(2021-08-22, 10:20 PM)mvallevand Wrote: It's built in netcore and it works when I need it on linux.  If and when you need it I can help you out.

Martin

Sure, I'd appreciate help in getting it set up. I know ParallelProcessing.sh goes in /var/opt/nextpvr/scripts/ and I can craft that, but am unsure where to put your exe and dll and what I need to do with dotnet.

Thanks!
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,090
Threads: 957
Joined: May 2006
#26
2021-08-29, 03:16 PM (This post was last modified: 2021-08-29, 03:17 PM by mvallevand.)
The dll goes in /opt/nextpvr/system (no exe's in linux) and the command line will be

/opt/dotnet/dotnet /opt/nextpvr/system/Stitch.dll %3

You need to include this as Stitch.runtimeconfig.json

Code:
{
  "runtimeOptions": {
    "tfm": "netcoreapp3.1",
    "framework": {
      "name": "Microsoft.NETCore.App",
      "version": "3.1.0"
    }
  }
}
sgilani
Offline

Senior Member

Posts: 730
Threads: 72
Joined: Jan 2006
#27
2021-08-30, 04:30 AM (This post was last modified: 2021-08-30, 05:06 AM by sgilani.)
Thanks! Let me give it a shot.

edit: I had an issue earlier because I had %3 instead of $3 in the script. Smile Trying again.

I saw an error about Unable to load shared library 'e_sqlite3' in the logs, which led me to this: https://nugetmusthaves.com/Package/SQLit...ite3.linux

Grabbing the appropriate (linux-x64 in my case) version of libe_sqlite3.so from that package and dropping it in /opt/nextpvr/system got things working. At least, I saw "(Stitching)" show up so I assume all is well. Enough testing for today.. thanks for your help! Smile
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,090
Threads: 957
Joined: May 2006
#28
2021-08-31, 03:33 AM
Sorry about that. First I was lazy and should have taken it from my setup.

As for the database library the proper approach for using my utilities that need npvr.db3 API access is to create a symbolic link to the NextPVR provided version in runtimes for your platform ie for x64. I forget this step all the time.

cd /opt/nextpvr/system
sudo ln -s ./runtimes/linux-x64/native/libe_sqlite3.so /opt/system/nextpvr

Martin
sgilani
Offline

Senior Member

Posts: 730
Threads: 72
Joined: Jan 2006
#29
2021-08-31, 05:03 AM
(2021-08-31, 03:33 AM)mvallevand Wrote: Sorry about that. First I was lazy and should have taken it from my setup. 

As for the database library the proper approach for using my utilities that need npvr.db3 API access is to create a symbolic link to the NextPVR provided version in runtimes for your platform ie for x64.  I forget this step all the time.

cd /opt/nextpvr/system
sudo ln -s ./runtimes/linux-x64/native/libe_sqlite3.so /opt/system/nextpvr

Martin

Ah that's much cleaner, I should've checked runtimes. Thanks, I'll do that.
sgilani
Offline

Senior Member

Posts: 730
Threads: 72
Joined: Jan 2006
#30
2022-10-15, 07:41 PM (This post was last modified: 2022-10-15, 07:43 PM by sgilani.)
(2020-04-07, 05:49 PM)mvallevand Wrote: Here is another update to stitch which finishes off some things that I wanted to do for myself

I tried to get this going after upgrading to 6.0.0.220904.. no errors in the logs and it detects live TV, but doesn't seem to work. Could you take a look to get this working again with the new version? (until we get first-party EPG mode again from sub?  Big Grin)
« 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,315 2007-09-01, 09:55 PM
Last Post: psycik
  Inset in video playback mode HTPCGB 2 1,752 2007-03-30, 01:37 PM
Last Post: tipstir
  XRecord - client/server mode? madcat 7 3,294 2007-02-23, 04:48 AM
Last Post: sub
  Query live preview mode fla 3 2,415 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