NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Other Clients Roku v
« Previous 1 2
mp4 recording won't play

 
  • 0 Vote(s) - 0 Average
mp4 recording won't play
VCR58
Online

Posting Freak

Marion Iowa, USA
Posts: 1,845
Threads: 177
Joined: Aug 2016
#21
2021-04-12, 07:08 PM (This post was last modified: 2021-04-12, 07:10 PM by VCR58.)
(2021-04-11, 03:12 PM)mvallevand Wrote: Some notes on NScripthelper,

1. with the deb install dotnet is not in the path so it is

/opt/dotnet/dotnet /opt/nextpvr/system/NScriptHelper.dll

2. sub's mentioned that mp4's need to be transcoded for the web player so you will have to modify your post processing to transcode.

3. sub includes NScriptHelper.deps.json in 5.1.1 so you don't need a text file for linux.  What is missing now is the runtime json file for the new Windows exe.

Martin

I ran this script for NScriptHelper in a terminal on my Linux server and got an error for a response (I used my real pin in the script).
Code:
/opt/dotnet/dotnet /opt/nextpvr/system/NScriptHelper.dll -pin:<mypin> -rename /mnt/sda1/Recorded TV/Dragne
t/Season 12/Dragnet.S12E05.Burglary.Mister.ts /mnt/sda1/Recorded TV/Dragnet/Season 12/Dragnet.S12E05.Burglar
y.Mister.mp4

A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found in '/opt/nextpvr/system/'.
Failed to run as a self-contained app. If this should be a framework-dependent app, add the /opt/nextpvr/system/NScriptHelper.runtimeconfig.json file specifying the appropriate framework.

Do I need to copy libhostpolicy.so from somewhere to get this to work?
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,926
Threads: 956
Joined: May 2006
#22
2021-04-12, 07:27 PM
I forgot about this https://forums.nextpvr.com/showthread.ph...#pid555096 sub missed a file, but I had mine.

Martin
VCR58
Online

Posting Freak

Marion Iowa, USA
Posts: 1,845
Threads: 177
Joined: Aug 2016
#23
2021-04-12, 11:06 PM
(2021-04-12, 07:27 PM)mvallevand Wrote: I forgot about this https://forums.nextpvr.com/showthread.ph...#pid555096 sub missed a file, but I had mine.

Martin

OK. I put this code named NScripthelper.runtimeconfig.json and put it in /opt/nextpvr/system.
Code:
{
  "runtimeOptions": {
    "tfm": "netcoreapp3.1",
    "framework": {
      "name": "Microsoft.NETCore.App",
      "version": "3.1.0"
    }
  }
}

I'm still getting the same error.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,926
Threads: 956
Joined: May 2006
#24
2021-04-12, 11:42 PM
Maybe try NScriptHelper with a capital H? I updated the other post.

Martin
VCR58
Online

Posting Freak

Marion Iowa, USA
Posts: 1,845
Threads: 177
Joined: Aug 2016
#25
2021-04-13, 02:17 AM (This post was last modified: 2021-04-13, 03:15 AM by VCR58.)
(2021-04-12, 11:42 PM)mvallevand Wrote: Maybe try NScriptHelper with a capital H?  I updated the other post.

Martin

Yes, works better with proper spelling. I got this response now...
Code:
$ /opt/dotnet/dotnet /opt/nextpvr/system/NScriptHelper.dll -pin:<mypin> -rename /mnt/sda1/'Recorded TV'/Dragnet/'Season 12'/Dragnet.S12E05.Burglary.Mister.ts /mnt/sda1/'Recorded TV'/Dragnet/'Season 12'/Dragnet.S12E05.Burglary.Mister.mp4
/home/rex/.NPVR-data/
/home/rex/.NPVR-data/logs
/home/rex/.NPVR-data/media
/home/rex/.NPVR-data/media/shows
/home/rex/.NPVR-data/media/channels
/home/rex/.NPVR-data/scripts
/home/rex/.NPVR-data/web
/home/rex/.NPVR-data/web/temp
Config.xml does not exists. Creating it from master.
Looks like it worked.

Thanks again!
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,926
Threads: 956
Joined: May 2006
#26
2021-04-13, 02:25 AM
Yes except for the bug creating the other data folder.

Martin
VCR58
Online

Posting Freak

Marion Iowa, USA
Posts: 1,845
Threads: 177
Joined: Aug 2016
#27
2021-04-13, 05:07 PM
(2021-04-13, 02:25 AM)mvallevand Wrote: Yes except for the bug creating the other data folder.

Martin

I didn't notice that. I guess I can just leave the folder there.

I have this for a line in PostProcessing.sh
Code:
/opt/dotnet/dotnet /opt/nextpvr/system/NScriptHelper.dll -pin:<mypin> -rename "$1" "${1%.*}.mp4"
I'll find out if it works shortly.

Per your suggestion I'll probably keep both .ts and .mp4 files for now.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,926
Threads: 956
Joined: May 2006
#28
2021-04-13, 05:37 PM
When you run in PostProcessing you won't have that issue it has the proper credentials. I figure NScriptHelper is using the API as well as http and with no environment variable set the API goes into a default setup routine to create NPVR-data and then writing the log.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,705
Threads: 767
Joined: Nov 2003
#29
2021-04-13, 06:24 PM
(2021-04-13, 05:37 PM)mvallevand Wrote: I figure NScriptHelper is using the API as well as http and with no environment variable set the API goes into a default setup routine to create NPVR-data and then writing the log.
Yeah, it reuses other components for config.xml etc, and it'll default to creating one if not found. This works fine on Windows, because it's pretty much always in the default location, so NScriptHelper finds it. On Linux it can be in different places, and depends on environment variables if it's being overriden from the default location. (as is the case using the deb installer)

I could probably add some special case for linux, so that it also checks the deb install location.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,926
Threads: 956
Joined: May 2006
#30
2021-04-13, 06:33 PM
(2021-04-13, 06:24 PM)sub Wrote:
(2021-04-13, 05:37 PM)mvallevand Wrote: I figure NScriptHelper is using the API as well as http and with no environment variable set the API goes into a default setup routine to create NPVR-data and then writing the log.

I could probably add some special case for linux, so that it also checks the deb install location.

As long you don't use the created or local config.xml for something important instead of the real one I don't think it is necessary.  Running like this avoids needing sudo as well.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

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


Possibly Related Threads…
Thread Author Replies Views Last Post
  Recording stops with error VCR58 3 1,306 2021-04-10, 02:57 PM
Last Post: mvallevand

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

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

Linear Mode
Threaded Mode