NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) v
1 2 3 4 5 … 20 Next »
NextEnd v5 trial release

 
  • 0 Vote(s) - 0 Average
NextEnd v5 trial release
CDinger
Offline

Member

Posts: 151
Threads: 30
Joined: Aug 2016
#141
2020-01-18, 09:08 PM
Martin,

NextEnd ran without any error. However, the game ended early and the recording followed the TV Guide schedule +2 minutes post padding. I expected it to end the recording early. A snippet of the NextEnd log below.

I need to look into modifying logrotate for NextPVR as my nrecord log is 1.9Mb so I moved my nrecord logs so I could zip and upload logs.

2020-01-18 12:32:59.036 [DEBUG][1] Schedule oid 1438 Status STATUS_IN_PROGRESS
2020-01-18 12:32:59.435 [DEBUG][1] LivePvrData.Data.Net.Responses.StatusResponse [Title=College Basketball, Status=Final, IsValid=True, IsActive=False, IsComplete=True, IsError=False, ]
2020-01-18 12:32:59.435 [DEBUG][1] Sports event has ended
2020-01-18 12:32:59.435 [DEBUG][1] Monitor status = final
2020-01-18 12:32:59.436 [DEBUG][1] Check to see if EP03275553.2188 stop exists
2020-01-18 12:32:59.437 [DEBUG][1] Extend file written -00:12:00.5641145
2020-01-18 12:32:59.438 [DEBUG][1] PowerManagement CancelWakeup (needs implementation)
2020-01-18 12:32:59.439 [DEBUG][1] Checking to cancel live recording
2020-01-18 12:32:59.439 [DEBUG][1] Exit NextEnd

Craig


Attached Files
.zip   logs-20200118-1306.zip (Size: 80.36 KB / Downloads: 1)
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,094
Threads: 957
Joined: May 2006
#142
2020-01-18, 09:40 PM
Glad that is it working and thanks for test. You don't have the option --early so it stops one time.

Martin
CDinger
Offline

Member

Posts: 151
Threads: 30
Joined: Aug 2016
#143
2020-01-18, 09:56 PM
Ah, didn't realize there was an --early option. I revisited NextEnd on the Wiki. Does that mean I can I use both --early and --postgame 5 on the command line ? It is more important to me to extend when the game goes over rather than to end recording early if the game ends early.

Craig
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,094
Threads: 957
Joined: May 2006
#144
2020-01-18, 10:02 PM
Yes, basically early will stop it on time before the end time postgame gives you five minutes after the end. I can't remember if sub adds post padding or not, I don't use post game.

Martin
pkscout
Offline

Senior Member

USA
Posts: 464
Threads: 50
Joined: May 2014
#145
2020-01-31, 12:07 AM
OK, now that I have a stable, functional Docker NextPVR instance, I thought I'd look at NextEnd.  I saw in the first post that there are some other things to do for Docker, and I guess I'm the first Docker user, as it's not documented.  '-)  I'm also trying to figure out what is really required, so I thought I'd just try and ask all the questions at once.



Quote:1. Unzip attached zip file into a folder Plugins/NextEnd in the v5 user data folder.


Question: does this really go in /app/data/Plugins/NextEnd?  If so, that basically means building a custom Dockerfile to build a NextPVR image with NextEnd (or having to reinstall NextEnd after every container refresh).  Can this not go in /config/Plugins/NextEnd (which would survive a container refresh)?



Quote:2. If you aren't running in C:\Program Files\NPVR  edit NextEnd.runtimeconfiguration and change the C:\Program Files\NPVR to your binary folder keeping the trailing blanks


Question: Is that the path to where NextPVR lives?  Basically would that be /app/, right?  Could that just added to the additionalProbingPaths list, or do I really need to replace the C:/Program Files/NPVR entry?



Quote:3. On linux it might be tougher you also need to run this

Code:
sed -i 's/\"\/\"/\"\/opt\/nextpvr\/system\/\"/g' NextEnd.deps.json


I'm not 100% sure what this does, but I tried it on my OSX test machine so I could diff the file and see what changes where made.  sed errors out saying:



Code:
sed: 1: "NextEnd.deps.json": extra characters at the end of N command




Quote:Also you need to copy libe_sqlite3.so to system folder ie for 64 bit

sudo cp /opt/nextpvr/system/runtimes/linux-x64/native/libe_sqlite3.so /opt/nextpvr/system


I'm assuming that would need to be the /app/runtimes/linux-arm64/native/libe_sqlite3.so directory.  This is another one that would likely mean a custom Dockerfile to build a container so you don't have to reinstall NextEnd at every image refresh.



Is there other stuff I'm going to need to do?  Thanks.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,094
Threads: 957
Joined: May 2006
#146
2020-01-31, 12:57 AM (This post was last modified: 2020-01-31, 01:07 AM by mvallevand.)
For docker

The install folder for this should be on the host

/config/Plugins/NextEnd


The sed line is

Code:
sed -i 's/\"\/\"/\"\/app\/\"/g' NextEnd.deps.json

Change the end of NextEnd.runtime.json to point to the app folder, I will add this in the next update

Code:
"additionalProbingPaths": [
            "c:/Program Files/NPVR/",
            "/var/opt/nextpvr/",
            "/app/"


And prefix all calls in the sh file to the version of the runtime you are running to avoid copying the file

Code:
LD_LIBRARY_PATH=/app/runtimes/linux-x64/native/ dotnet /config/Plugins/NextEnd/NextEnd.dll ....options

Martin
pkscout
Offline

Senior Member

USA
Posts: 464
Threads: 50
Joined: May 2014
#147
2020-01-31, 04:15 AM
That seems to have worked.  Or at least NextEnd started and generated a log, which I take as a good sign.  So I know at least that the PostStartup.sh part is working.  BTW, it turns out my sed problem was that the BSD version of sed (which is what I was using on OSX to correct the file rather than doing it in the docker container) requires you to specify an extension for the original file when using -i.  Once I changed it to:



Code:
sed -i .org 's/\"\/\"/\"\/app\/\"/g' NextEnd.deps.json



it worked fine.
pkscout
Offline

Senior Member

USA
Posts: 464
Threads: 50
Joined: May 2014
#148
2020-01-31, 06:20 AM
(2020-01-31, 04:15 AM)pkscout Wrote: That seems to have worked.  Or at least NextEnd started and generated a log, which I take as a good sign.  So I know at least that the PostStartup.sh part is working.  BTW, it turns out my sed problem was that the BSD version of sed (which is what I was using on OSX to correct the file rather than doing it in the docker container) requires you to specify an extension for the original file when using -i.  Once I changed it to:



Code:
sed -i .org 's/\"\/\"/\"\/app\/\"/g' NextEnd.deps.json



it worked fine.


I lied a little.  Turns out when I checked the nrecord log that NextEnd was crashing with an exception indicating it couldn't find the sql library.  After some poking around, it looks like you can't set LD_LIBRARY_PATH in the scripts in a Docker container.  It has to be set at run time.  So you have to run the container using something like this:

Code:
docker run -d --name nextpvr-pr \
--volume ~/Documents/NPVR/config:/config \
--volume ~/Documents/NPVR/recordings:/recordings \
--volume ~/Documents/NPVR/buffer:/buffer \
-e "SET_CONTAINER_TIMEZONE=true" \
-e "CONTAINER_TIMEZONE=Pacific/Honolulu" \
-e "LD_LIBRARY_PATH=/app/runtimes/linux-x64/native/" \
--publish 8866:8866 \
pkscout1/nextpvr-python3:prerelease

The important addition is:

Code:
-e "LD_LIBRARY_PATH=/app/runtimes/linux-x64/native/" \

Once I did that NextEnd runs without errors.

Some of the rest is different than sub's instructions because I'm using my Python3 build (and a NPVR pre-release that fixes a problem I was having with KNEWC in Kodi).  I included it because I know it works, and I didn't want to edit something from memory to try and make it look like sub's instructions without testing it.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,094
Threads: 957
Joined: May 2006
#149
2020-01-31, 02:15 PM (This post was last modified: 2020-01-31, 02:15 PM by mvallevand.)
@pkscout are you sure you had the syntax correct? I just tested here and my run looks ok, I turned off the stderr redirection and can see the debug output from NextEnd in the normal log.

2020-01-31 09:12:10.877 [DEBUG][9] Started recording (21952:7:/recordings/Scout & the Gumboot Kids/Season 01/Scout & the Gumboot Kids.S01E05.The Case of the Upside Down Smile.ts)
2020-01-31 09:12:11.049 [DEBUG][9] Starting: bash -c "'/config/scripts/ParallelProcessing.sh' '/recordings/Scout & the Gumboot Kids/Season 01/Scout & the Gumboot Kids.S01E05.The Case of the Upside Down Smile.ts' 4.1 21952 1546 'Scout & the Gumboot Kids'"
2020-01-31 09:12:11.745 [ERROR][117] NEXTPVR_INSTALLDIR /app/
2020-01-31 09:12:11.746 [ERROR][29] NEXTPVR_DATADIR /app/data/
2020-01-31 09:12:11.746 [ERROR][29] NEXTPVR_DATADIR_USERDATA /config/
2020-01-31 09:12:12.652 [ERROR][29] <Event>
...
2020-01-31 09:12:12.814 [ERROR][29] Not a sports recording


Martin
pkscout
Offline

Senior Member

USA
Posts: 464
Threads: 50
Joined: May 2014
#150
2020-01-31, 05:13 PM
(2020-01-31, 02:15 PM)mvallevand Wrote: @pkscout are you sure you had the syntax correct?  I just tested here and my run looks ok, I turned off the stderr redirection and can see the debug output from NextEnd in the normal log.

2020-01-31 09:12:10.877 [DEBUG][9] Started recording (21952:7:/recordings/Scout & the Gumboot Kids/Season 01/Scout & the Gumboot Kids.S01E05.The Case of the Upside Down Smile.ts)
2020-01-31 09:12:11.049 [DEBUG][9] Starting: bash -c "'/config/scripts/ParallelProcessing.sh' '/recordings/Scout & the Gumboot Kids/Season 01/Scout & the Gumboot Kids.S01E05.The Case of the Upside Down Smile.ts' 4.1 21952 1546 'Scout & the Gumboot Kids'"
2020-01-31 09:12:11.745 [ERROR][117] NEXTPVR_INSTALLDIR /app/
2020-01-31 09:12:11.746 [ERROR][29] NEXTPVR_DATADIR /app/data/
2020-01-31 09:12:11.746 [ERROR][29] NEXTPVR_DATADIR_USERDATA /config/
2020-01-31 09:12:12.652 [ERROR][29] <Event>
...
2020-01-31 09:12:12.814 [ERROR][29] Not a sports recording


Martin

I did not have the syntax right.  I'd never see a variable set on the same line as a command, so I just assumed that was a formatting error on the forum and put that on a separate line in the script.  And that apparently doesn't work.  The LD_LIBRARY_PATH declaration has to be on the same line as the command, and once I just copied and pasted what you had into my PostStartup.sh it worked.  So if I had just trusted that what you posted was actually right instead of over thinking it, I would have been fine.  ;-)
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (44): « Previous 1 … 13 14 15 16 17 … 44 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  NextEnd Docker Install Mark-McG 61 9,404 2023-08-30, 09:15 PM
Last Post: mvallevand
  Comskip + NextEnd VCR58 12 2,836 2023-06-30, 02:26 PM
Last Post: mvallevand
  NextEnd Extension Mechanism jcole998 7 3,033 2020-05-24, 03:39 PM
Last Post: jcole998
  NextEnd V4 jcole998 1 1,896 2020-05-18, 01:35 PM
Last Post: mvallevand
  NextEnd: "Sports event monitor did not start" antenna 37 13,205 2019-10-27, 12:22 AM
Last Post: mvallevand
  NextEnd Interruption jcole998 2 1,961 2019-09-02, 05:54 PM
Last Post: jcole998
  NextEnd Readiness jcole998 24 8,968 2019-06-01, 01:33 PM
Last Post: jcole998
  Nextend help CDinger 5 4,190 2018-11-05, 03:59 PM
Last Post: mvallevand
  NextEnd not extending sports event antenna 26 12,053 2018-10-11, 04:25 PM
Last Post: mvallevand
  NextEnd Broken? jcole998 6 4,457 2018-09-15, 01:24 PM
Last Post: jcole998

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

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

Linear Mode
Threaded Mode