NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support macOS v
1 2 3 4 Next »
mac os

 
  • 0 Vote(s) - 0 Average
mac os
Allan
Offline

Member

Canada
Posts: 109
Threads: 11
Joined: Dec 2024
#21
2025-02-20, 08:58 PM (This post was last modified: 2025-02-20, 09:02 PM by Allan.)
If you have time, you may want to look at this thread: https://forums.nextpvr.com/showthread.php?tid=66111

It starts with my configuration of a single user launchagent, which Martin modifies to be a system wide launchdaemon. If you can get it to work, as modified by Martin, it would work for all users and have added benefits (as described in the first post in that thread).
bawsross
Offline

Junior Member

US
Posts: 8
Threads: 0
Joined: Feb 2025
#22
2025-02-21, 01:20 AM
(2025-02-20, 05:01 PM)mvallevand Wrote:
(2025-02-20, 04:56 PM)bawsross Wrote: so when I run the script I get:

Before running this scripts did it work  as expected with the supported manual install?

Martin

Good question, I didnt run it until I did the full process with the scipt. It seems it hasnt asked me to login anywhere at any point which I suspect may be the issue. Im pretty new to Mac so not sure where to troubleshoot on this?
bawsross
Offline

Junior Member

US
Posts: 8
Threads: 0
Joined: Feb 2025
#23
2025-02-21, 01:21 AM
(2025-02-20, 08:58 PM)Allan Wrote: If you have time, you may want to look at this thread: https://forums.nextpvr.com/showthread.php?tid=66111

It starts with my configuration of a single user launchagent, which Martin modifies to be a system wide launchdaemon. If you can get it to work, as modified by Martin, it would work for all users and have added benefits (as described in the first post in that thread).

Will give it a look
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,184
Threads: 958
Joined: May 2006
#24
2025-02-21, 07:50 PM
(2025-02-21, 01:20 AM)bawsross Wrote: Good question, I didnt run it until I did the full process with the scipt. It seems it hasnt asked me to login anywhere at any point which I suspect may be the issue. Im pretty new to Mac so not sure where to troubleshoot on this?

Before getting into scripts you have to be sure that the server will run on it's own from your user folder.  The Microsoft instructions are not clear at all on how to install ASP.Net 8 plus installing ffmpeg is very important but you are left on your own to figure out how to do that.  I recommend using brew but many macOS users may not even know what that it. 

Martin
Allan
Offline

Member

Canada
Posts: 109
Threads: 11
Joined: Dec 2024
#25
2025-02-21, 10:09 PM
Martin is talking about homebrew, which is a utility that makes it easy to install a range of binaries (like ffmpeg). Instructions to install homebrew are here: https://brew.sh

Homebrew can install ffmpeg and dotnet, which are required to run nextpvr. Probably the easiest way to do both.

You can also download and manually install a static binary of ffmpeg from the ffmpeg website and install dotnet from this page.

The dotnet page is confusing because the recommended version to install (ASP.NET Core Runtime 8.0.13) has no link for a macOS installer, just binaries you would need to figure what to do with. There is an installer for SDK 8.0.406, which will also install ASP.NET Core Runtime 8.0.13, but will also install a lot of other dotnet stuff you probably have no use for.
bawsross
Offline

Junior Member

US
Posts: 8
Threads: 0
Joined: Feb 2025
#26
2025-02-22, 09:40 PM (This post was last modified: 2025-02-22, 10:06 PM by bawsross.)
(2025-02-21, 10:09 PM)Allan Wrote: Martin is talking about homebrew, which is a utility that makes it easy to install a range of binaries (like ffmpeg). Instructions to install homebrew are here: https://brew.sh

Homebrew can install ffmpeg and dotnet, which are required to run nextpvr. Probably the easiest way to do both.

You can also download and manually install a static binary of ffmpeg from the ffmpeg website and install dotnet from this page.

The dotnet page is confusing because the recommended version to install (ASP.NET Core Runtime 8.0.13) has no link for a macOS installer, just binaries you would need to figure what to do with. There is an installer for SDK 8.0.406, which will also install ASP.NET Core Runtime 8.0.13, but will also install a lot of other dotnet stuff you probably have no use for.

This was helpful, thanks. So I can get it to run when I manually open terminal and run the dotnet ./NextPVRServer.dll. However, if I try to start recording something, it will start, then it just crashes. Ive tried a couple different times starting then cancelling and keep getting the error:

Unable to cancel recording at this time. Unable to connect to server.

Which tells me its crashing. The recording gets to about 10MB then crashes....only thing I can think of is does the recording directory and the buffering directory need to be the same?

Here is what shows in terminal:

[11] Unexpected error creating TSWriter map: System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/XXX/Downloads/TestRecording/Season 05/TestRecording.S05.ts.map'.
at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException)
at System.IO.File.OpenHandle(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.File.WriteAllBytes(String path, Byte[] bytes)
at NShared.Writer.OutputSink..ctor(String filename)
[11] Failed to start stream: System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/XXX/Downloads/Test Recording/Season 05/TestRecording.S05.ts'.
at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException)
at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
at System.IO.File.Open(String path, FileMode mode, FileAccess access, FileShare share)
at NShared.Writer.OutputSink..ctor(String filename)
at NShared.Shim.InputSource.StartStream(String target)
at NShared.Shim.InputSourceHTTP.StartStream(String target)
at NShared.Shim.GenericCapture.StartStream(String target, String& reason)
bawsross
Offline

Junior Member

US
Posts: 8
Threads: 0
Joined: Feb 2025
#27
2025-02-22, 10:07 PM
(2025-02-21, 07:50 PM)mvallevand Wrote:
(2025-02-21, 01:20 AM)bawsross Wrote: Good question, I didnt run it until I did the full process with the scipt. It seems it hasnt asked me to login anywhere at any point which I suspect may be the issue. Im pretty new to Mac so not sure where to troubleshoot on this?

Before getting into scripts you have to be sure that the server will run on it's own from your user folder.  The Microsoft instructions are not clear at all on how to install ASP.Net 8 plus installing ffmpeg is very important but you are left on your own to figure out how to do that.  I recommend using brew but many macOS users may not even know what that it. 

Martin

Thanks. Can get it to run but then errors as in other post….
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#28
2025-02-22, 11:01 PM
Quote:Which tells me its crashing. The recording gets to about 10MB then crashes....only thing I can think of is does the recording directory and the buffering directory need to be the same?

Here is what shows in terminal:

[11] Unexpected error creating TSWriter map: System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/XXX/Downloads/TestRecording/Season 05/TestRecording.S05.ts.map'.
It sounds like maybe '/Users/XXX/Downloads/' doesn't exist, or NextPVR doesn't have permission to access it.
Allan
Offline

Member

Canada
Posts: 109
Threads: 11
Joined: Dec 2024
#29
2025-02-23, 02:25 AM (This post was last modified: 2025-02-23, 02:27 AM by Allan.)
First of all,  '/Users/XXX/Downloads/' (I assume that is the downloads folder in your home directory) is not a good place for recordings. 

I suggest you
  • make a TV or PVR or whatever you like folder either in documents or in an external drive
  • then, in nextpvr settings:general, set that new directory as your recording directory
  • then in your macs system settings:privacy and security look for 'dotnet' or 'microsoft' in files and folders and full disk access. Whichever one you have there needs access to your recording directory. you may have had a prompt that you rejected or disregarded.

My recording directory is on an external disk and the OS prompted me to allow dotnet to access that directory.

Also, I would love it if the OS stopped "autocorrecting" dotnet to botnet.
bawsross
Offline

Junior Member

US
Posts: 8
Threads: 0
Joined: Feb 2025
#30
2025-02-24, 05:15 PM (This post was last modified: 2025-02-24, 05:24 PM by bawsross.)
(2025-02-23, 02:25 AM)Allan Wrote: First of all,  '/Users/XXX/Downloads/' (I assume that is the downloads folder in your home directory) is not a good place for recordings. 

I suggest you
  • make a TV or PVR or whatever you like folder either in documents or in an external drive
  • then, in nextpvr settings:general, set that new directory as your recording directory
  • then in your macs system settings:privacy and security look for 'dotnet' or 'microsoft' in files and folders and full disk access. Whichever one you have there needs access to your recording directory. you may have had a prompt that you rejected or disregarded.

My recording directory is on an external disk and the OS prompted me to allow dotnet to access that directory.

Also, I would love it if the OS stopped "autocorrecting" dotnet to botnet.

Your last point is where I think the diffculty lies. I dont see these anywhere, nor have been prompted. Also, I cannot see my external USB as an option when selecting a recording directory. It seems odd that it starts, records the first few seconds, then crashes. It would seem it has permissions then to initiate no
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

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


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

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

Linear Mode
Threaded Mode