NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Linux v
« Previous 1 … 24 25 26 27 28 … 34 Next »
Watch now issue

 
  • 0 Vote(s) - 0 Average
Watch now issue
bader77uk
Offline

Junior Member

Kuwait
Posts: 45
Threads: 4
Joined: Jun 2020
#61
2020-06-29, 07:42 AM (This post was last modified: 2020-06-29, 07:50 AM by bader77uk.)
Agreed with mvallevand.

@sub i would suggest to implement a limit numbers of retries with delay in between if receives "403" for not to missed the rest of recording where there is much possibility to catch up again with stream. i am sure it will be useful and effective ( manually tested ).

Edit: @sub if you dont think its important or you disagree, i would donate for a custom version for personal use.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#62
2020-06-29, 09:30 PM
Try the next build when it's available, then we'll decide if anything further needs to be done.
bader77uk
Offline

Junior Member

Kuwait
Posts: 45
Threads: 4
Joined: Jun 2020
#63
2020-06-29, 09:40 PM
ok thank you
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#64
2020-06-29, 09:46 PM
(2020-06-28, 02:43 AM)mvallevand Wrote: Ok.  There is an issue of the earlier 403 (maybe on the HEAD) being sent to ffmpeg that should be avoided.


Code:
2020-06-25 22:37:43.388 [DEBUG][271] ConnectToURL:
...
2020-06-25 22:37:43.427 [DEBUG][271] WebException: System.Net.WebException: The remote server returned an error: (403) Forbidden.
  at System.Net.HttpWebRequest.GetResponse()
  at NShared.IPTVRecorder.ConnectToURL(String url, Int32 depth)
2020-06-25 22:37:43.427 [DEBUG][271] CheckTSUrl done
...
2020-06-25 22:37:43.427 [DEBUG][271] IPTV StartStream@3.3
2020-06-25 22:37:43.427 [DEBUG][271] IPTV StartStream@3.4
2020-06-25 22:37:43.427 [DEBUG][271] IPTV StartStream@3.5
2020-06-25 22:37:43.427 [DEBUG][271] IPTV StartStream@3.5.1
2020-06-25 22:37:43.427 [DEBUG][271] Executing: ffmpeg -y -user_agent "VLC/2.2.6 LibVLC/2.2.6" -vaapi_device /dev/dri/renderD128 -i http://.... -codec:v:0 h264_vaapi -codec:a:0 aac -strict experimental -ac 2 -ab 128000 -f mpegts  -
I checked this out. This looks fairly normal.

When starting a recording, if for any reason NextPVR can't connect to the stream directly, it'll fall back to letting ffmpeg try. (In this case it was related to a 403, but other times might be something weird with redirects or cookies etc which NextPVR might not understand).

Normally bader77uk's streams are able to be used directly, without requiring ffmpeg. It was only falling back to ffmpeg when the service started rejecting his connections.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,117
Threads: 957
Joined: May 2006
#65
2020-06-29, 09:59 PM
I understand the logic, it's just that on a 403 it might not safe to assume that ffmpeg will be able to open the stream which could lead to an IP lookout and I was trying to explain "why". Also I guess you could check cached info and on a 403/401 don't got to ffmepg when it is h264/aac

The better solution is a more stable provider so we don't have to go through this.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#66
2020-06-29, 11:03 PM
(2020-06-29, 09:59 PM)mvallevand Wrote: Also I guess you could check cached info and on a 403/401 don't got to ffmepg
Actually, there has been some rare cases where NextPVR gets a 401 failure, and it falls back to ffmpeg, and it succeeds (due to IPTV provider rejecting NextPVR user-agent string) etc.
bader77uk
Offline

Junior Member

Kuwait
Posts: 45
Threads: 4
Joined: Jun 2020
#67
2020-07-10, 09:10 AM (This post was last modified: 2020-07-10, 09:11 AM by bader77uk.)
@sub

There is an error "(503) Service Unavailable." which also keep retires, this need a fix as well

check file "nrecord.log.1" starting @line 54950


Attached Files
.zip   logs-20200710-0609.zip (Size: 1.01 MB / Downloads: 2)
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#68
2020-07-12, 09:36 PM
(2020-07-10, 09:10 AM)bader77uk Wrote: There is an error "(503) Service Unavailable." which also keep retires, this need a fix as well
There is no clear cut answer to what the best behavior is for some of these. Ultimately, retrying is usually a good thing, and with some services it'll just reconnect and continue on.

I've add a max of 40 retries for the next build, for any type of error. After that it'll give up.
bader77uk
Offline

Junior Member

Kuwait
Posts: 45
Threads: 4
Joined: Jun 2020
#69
2020-07-12, 10:36 PM
(2020-07-12, 09:36 PM)sub Wrote:
(2020-07-10, 09:10 AM)bader77uk Wrote: There is an error "(503) Service Unavailable." which also keep retires, this need a fix as well
There is no clear cut answer to what the best behavior is for some of these. Ultimately, retrying is usually a good thing, and with some services it'll just reconnect and continue on.

I've add a max of 40 retries for the next build, for any type of error. After that it'll give up.

limit to 40 retries is a way better than the current behaviour. I agreed
when will be the next build available?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#70
2020-07-12, 10:44 PM
(2020-07-12, 10:36 PM)bader77uk Wrote: limit to 40 retries is a way better than the current behaviour. I agreed
when will be the next build available?
I've been pretty with my day job recently. I'll try to get it out around the end of the week though.
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

Pages (8): « Previous 1 … 4 5 6 7 8 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Guide data issue using NextPVR in a Proxmox LXC njc 10 1,283 2025-03-23, 01:40 PM
Last Post: njc
  Recording Plyback Timeline Issue JeffH 11 873 2025-01-17, 03:20 PM
Last Post: mvallevand
  Wake after Suspend issue with dvbt devices (LE12 Kodi 21) ShadowMask 41 5,463 2024-02-09, 07:11 AM
Last Post: ShadowMask
  Can't record 1 subchannel and watch another w single tuner WagMan 2 618 2023-12-24, 05:18 PM
Last Post: WagMan
  Yay! DST issue :-( TheRealRoland 3 819 2023-03-12, 04:45 PM
Last Post: mvallevand
  Recent streaming issue with Matt Huisman Aus TV streams ballfam 74 12,103 2023-03-08, 10:35 PM
Last Post: mvallevand
  Schedules Direct Token Issue TheKenR 20 3,186 2023-02-20, 07:49 PM
Last Post: mvallevand
  IPv6 Installation Issue Delboy 16 2,417 2022-10-13, 08:07 PM
Last Post: Delboy
  [split] EPG update issue Obmit 10 1,689 2022-10-07, 10:22 PM
Last Post: Obmit
  [Solved] Black/black screen with audio when trying to watch HD channels on pi spleencheesemonkey 11 2,907 2022-07-16, 02:14 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