NextPVR Forums
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support macOS v
« Previous 1 2 3 Next »
web client on Mac streaming failed transcoder exited

 
  • 0 Vote(s) - 0 Average
web client on Mac streaming failed transcoder exited
rjbeep
Offline

Junior Member

Posts: 47
Threads: 13
Joined: Mar 2005
#1
2019-12-11, 01:43 AM (This post was last modified: 2019-12-11, 03:04 PM by rjbeep. Edit Reason: added logs )
Hi folks,

Got a fresh Catalina install on a MacBook Pro and I've installed ffmpeg via homebrew. Using fresh install of Chrome for browser. Can't get the npvr web client to work. streaming failed / transcoder exited.

server is running on a different Mac in the other room.

hdhomerun client directly to the tuners works fine... just the web client to npvr server that I can't figure out.

here's what npvr had to say about it (attached). any direction?

thanks very much for the continued help...
Richard


Attached Files
.zip   log.zip (Size: 1.16 KB / Downloads: 2)
.zip   logs-20191211-1000.zip (Size: 625.22 KB / Downloads: 2)
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 45,333
Threads: 867
Joined: May 2006
#2
2019-12-11, 01:58 AM
Send all the logs that you get zipped up from the main settings page.

Martin
rjbeep
Offline

Junior Member

Posts: 47
Threads: 13
Joined: Mar 2005
#3
2019-12-11, 03:05 PM
(2019-12-11, 01:58 AM)mvallevand Wrote: Send all the logs that you get zipped up from the main settings page.

Martin

logs uploaded
thanks Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,402
Threads: 742
Joined: Nov 2003
#4
2019-12-11, 06:48 PM
It looks like it's unable to connect to your HDHomeRun. Have you tried power cycling the HDHomeRun?
Quote:2019-12-11 09:59:42.913 [DEBUG][107] Requesting: http://192.168.11.188:5004/tuner1/v9.1
2019-12-11 09:59:42.917 [DEBUG][118] HTTP input source starting
…
2019-12-11 09:59:42.961 [DEBUG][118] Unexpected error in HTTP input source: System.Net.WebException: Connection refused Connection refused ---> System.Net.Http.HttpRequestException: Connection refused ---> System.Net.Sockets.SocketException: Connection refused
at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
at System.Threading.Tasks.ValueTask`1.get_Result()
at System.Net.Http.HttpConnectionPool.CreateConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Threading.Tasks.ValueTask`1.get_Result()
at System.Net.Http.HttpConnectionPool.WaitForCreatedConnectionAsync(ValueTask`1 creationTask)
at System.Threading.Tasks.ValueTask`1.get_Result()
at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.FinishSendAsyncUnbuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
at System.Net.HttpWebRequest.SendRequest()
at System.Net.HttpWebRequest.GetResponse()
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetResponse()
at NShared.Shim.InputSourceHTTP.WorkerThread()
rjbeep
Offline

Junior Member

Posts: 47
Threads: 13
Joined: Mar 2005
#5
2019-12-11, 10:16 PM
subIt looks like it's unable to connect to your HDHomeRun. Have you tried power cycling the HDHomeRun?


Hi sub,

I seem to have all kinds of strangeness happening all of a sudden.

the HDHRs are in another room so since the HDHR app was connecting to them fine, I tried some other stuff before power cycling the tuners (yep... I'm that lazy).

I shut down the NPVR server
renamed the NPVR and .NPVR-data folders to *.old
did a fresh download of the NPVR zip from this site
unpacked it into a new NPVR folder
chmod +x the server binary
ran the server
rediscovered the tuners
rescanned the channels

now...
I can connect and watch live tv from both the local mac running NPVR and a client mac (so Chrome/ffmpeg are working, right?)
I can schedule a recording and it records a .ts file
I can manually go to the recording directory and play the recorded file with any tool I want (so the recording is good).

*BUT*, I cannot play the recording from the NPVR web interface
I get a "permission denied error" on the browser web interface (either on the local mac or on a client mac)
fmpeg goes nuts on the server
the CPU on the server goes into some kind of race condition, the fans start spooling up, etc.
I have to either click something else in the interface to get the server to stop trying to play the file or I have to close the server down in order to get the CPU/fans to come back down to normal.

at first, thought it might be something I changed on the NAS I'm mounting as a record directory, but same exact symptoms even when I set up using all local directories on the same physical disk.

no clue what I've done now but I've uploaded logs in case you are bored and have nothing better to do :-)

thank again :-)


Attached Files
.zip   logs-20191211-1643.zip (Size: 143.17 KB / Downloads: 3)
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 45,333
Threads: 867
Joined: May 2006
#6
2019-12-11, 11:46 PM (This post was last modified: 2019-12-11, 11:47 PM by mvallevand.)
Is there anyway you can run NextPVRServer as sudo?

At first I thought the error was ffmpeg but the transcoding continues way past the error. When I look at the error

Code:
2019-12-11 16:42:41.427    [ERROR][20]    System.ComponentModel.Win32Exception (13): Permission denied
   at System.Diagnostics.Process.set_PriorityClassCore(ProcessPriorityClass value)
   at System.Diagnostics.Process.set_PriorityClass(ProcessPriorityClass value)
   at NShared.Extend.RequestHandlers.TranscoderHLS.InitiateTranscode(String& reason)
   at NShared.Extend.RecordingRequestHandler.StreamRecordingInitiate(Dictionary`2 parameters)

It seems that NextPVR is trying to set the priority, maybe this isn't allowed?

Martin
rjbeep
Offline

Junior Member

Posts: 47
Threads: 13
Joined: Mar 2005
#7
2019-12-12, 04:49 AM
(2019-12-11, 11:46 PM)mvallevand Wrote: Is there anyway you can run NextPVRServer as sudo?

At first I thought the error was ffmpeg but the transcoding continues way past the error.  When I look at the error

Code:
2019-12-11 16:42:41.427    [ERROR][20]    System.ComponentModel.Win32Exception (13): Permission denied
   at System.Diagnostics.Process.set_PriorityClassCore(ProcessPriorityClass value)
   at System.Diagnostics.Process.set_PriorityClass(ProcessPriorityClass value)
   at NShared.Extend.RequestHandlers.TranscoderHLS.InitiateTranscode(String& reason)
   at NShared.Extend.RecordingRequestHandler.StreamRecordingInitiate(Dictionary`2 parameters)
It seems that NextPVR is trying to set the priority, maybe this isn't allowed?
Martin

Hi Martin,

Very interesting. Ran with sudo and no errors. Works just fine. I'd love to know more about why that makes a difference.

Regardless, continued thanks for all your help!
Richard 
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,402
Threads: 742
Joined: Nov 2003
#8
2019-12-12, 05:24 AM
(2019-12-11, 11:46 PM)mvallevand Wrote: It seems that NextPVR is trying to set the priority, maybe this isn't allowed?
It is setting the priority. Every previous build has too though, and it hasn't been a problem in the past. It may have been something changed with the most recent macOS update though.

I'll disable this for the Mac for the next build, so it gets the default priority.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Mac As a Client? kirschey 2 89 2023-02-13, 07:42 PM
Last Post: kirschey
  Watch live transcoder fails rjbeep 15 3,683 2020-01-17, 03:20 AM
Last Post: BrettB
  Recordings "Failed with no errors, but no data received" jchhenderson 27 5,504 2019-07-08, 03:15 PM
Last Post: jchhenderson

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

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

Linear Mode
Threaded Mode