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 … 12 13 14 15 16 … 34 Next »
Cant get Post Padding to work

 
  • 0 Vote(s) - 0 Average
Cant get Post Padding to work
jhr1948
Offline

Junior Member

Posts: 29
Threads: 4
Joined: Aug 2013
#1
2022-05-18, 02:45 AM
Hey all, I actually just setup NextPVR on my Linux Mint (Ubuntu) server in the last 2 weeks. I have IPTV M3U as the source and am trying to add 60min Post Padding to Baseball team games.  It seems to stop right at the actual EPG ending and not adding the 60 minutes.  I'm uploading the log which shows at 21:00 some constant unexpected error.

2022-05-17 21:00:02.026 [DEBUG][135] HTTP input source starting
2022-05-17 21:00:02.282 [DEBUG][135] Unexpected error in HTTP input source: System.Net.WebException: The remote server returned an error: (404) Not Found.
  at System.Net.HttpWebRequest.GetResponse()
  at NShared.Shim.InputSourceHTTP.WorkerThread()


then eventually says this
2022-05-17 21:09:20.524 [DEBUG][135] Too many retries...giving up


Since that's the time when the post padding should start, I'm assuming that is related.  Any help would be appreciated. I'm a bit new to NextPVR on Linux but I did try NPVR on Windows many moons ago.  If other logs are needed, I'm all ears.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,823
Threads: 954
Joined: May 2006
#2
2022-05-18, 03:15 AM
That looks like a provider side error but we'd need your full zipped logs to investigate. Is that a general channel or a channel devoted to the event itself?

Not once you get this working check out NextEnd. It will extend games on demand so you don't need the hour.

Martin
jhr1948
Offline

Junior Member

Posts: 29
Threads: 4
Joined: Aug 2013
#3
2022-05-18, 10:33 AM
I appreciate the response Martin

A few of things:
1. I uploaded the nrecord.log in my first post (although i don't see it attached to the post). Just to make sure i understand, in that log folder there are 4 logs, i'll zip those up and add. If there are others i need, I'd appreciate the heads up of their location.

2. Thinking it was a provider side issue crossed my mind.  So that actually is a completely different provider from when i setup NPVR a couple of weeks ago because the same issue with the original M3U was happening.  So I decided to try a completely different provider and got that same exact results.

3. As far as NextEnd, that's exactly what i tried as well and wasn't working, so then i figured I'd first get post padding manually and if that worked, I'd revisit NextEnd.  I suspect NextEnd didn't work because something is happening.  I will say this, I just started with Linux about 2 years ago, so I could not understood a step with NextEnd.


Attached Files
.gz   NPVR_logs.tar.gz (Size: 1.34 MB / Downloads: 2)
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,823
Threads: 954
Joined: May 2006
#4
2022-05-18, 12:50 PM (This post was last modified: 2022-05-18, 02:35 PM by mvallevand.)
I see the error but it is odd because NextPVR didn't stop recording on those http errors which is actually another error.
2022-05-17 22:00:00.059 [DEBUG][8] Stopping recording (1079 on 25). Past end time of recording. 4

Have you tried the m3u8 version instead of ts files? It might handle the switch better. Sometimes resellers use the same host. If it was m3u8 I'd say
try holding the control and click Log Files on the web settings to enable Verbose logging next game.

NextEnd isn't running but I can tell you it won't work because of the unicode special font ᴸᶦᵛᵉ (Live) in the title. If you PM me a link to your database I can probably get it going, but it would expose your URL's to me.

Martin
jhr1948
Offline

Junior Member

Posts: 29
Threads: 4
Joined: Aug 2013
#5
2022-05-18, 03:00 PM
Ok, I changed a few things for further testing

1. Removed the unicode special font
2. outputted m3u8 instead of ts

if post padding finally works, i'll give NextEnd another try as my issue of stopping recording would be solved

and yes as you mentioned, NPVR was still showing as recording on the webpage after the actual recording ended prematurely.

Thank you
jhr1948
Offline

Junior Member

Posts: 29
Threads: 4
Joined: Aug 2013
#6
2022-05-20, 03:28 AM (This post was last modified: 2022-05-20, 10:46 AM by jhr1948.)
alright, after 2 days of testing, here are my results.

Post Padding now works, i guess changing the stream from TS to M3U8 made the difference

I tried NextEnd again now that postpadding works, but it didnt extend the game.  I'll upload the logs, but because i have Verbose logging (it has a lot), so uploading the log when the game started at 19:00 and the last log when the game ended at 22:00.  If that's not enough, i can upload all of them.

This is a snippet of when ParallelProcessing.sh is starting

2022-05-19 18:59:17.517 [DEBUG][8] Creating writer: /mnt/12TB_Storage/Recordings/TV Shows/MLB Baseball/MLB Baseball_2022-05-19_19002200.ts
2022-05-19 18:59:17.520 [DEBUG][8] Created Mutex: Global\NPVR-mutex-61604f02881db862d57490fd810e3b17
2022-05-19 18:59:17.521 [DEBUG][8] Created map: /mnt/12TB_Storage/Recordings/TV Shows/MLB Baseball/MLB Baseball_2022-05-19_19002200.ts.map
2022-05-19 18:59:17.521 [DEBUG][8] StartStream [/mnt/12TB_Storage/Recordings/TV Shows/MLB Baseball/MLB Baseball_2022-05-19_19002200.ts] allocated handle: 11
2022-05-19 18:59:17.521 [DEBUG][8] IPTV StartStream@9
2022-05-19 18:59:17.521 [DEBUG][8] Started recording (1238:11:/mnt/12TB_Storage/Recordings/TV Shows/MLB Baseball/MLB Baseball_2022-05-19_19002200.ts)
2022-05-19 18:59:17.537 [DEBUG][8] Starting: bash -c "'/var/opt/nextpvr/scripts/ParallelProcessing.sh' '/mnt/12TB_Storage/Recordings/TV Shows/MLB Baseball/MLB Baseball_2022-05-19_19002200.ts' 83 1238 26 'MLB Baseball'"
2022-05-19 18:59:17.654 [DEBUG][17] > Input string was not in a correct format.
2022-05-19 18:59:18.080 [VERBOSE][17] #EXTM3U


Not sure if i can get some help figuring this out.

Appreciate it


Attached Files
.7z   NextPvr_Logs.7z (Size: 877.85 KB / Downloads: 1)
jhr1948
Offline

Junior Member

Posts: 29
Threads: 4
Joined: Aug 2013
#7
2022-05-20, 11:10 AM
Hate to reply to my own thread, but already noticed like a dummy i forgot to change % to $ on the .sh script
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,823
Threads: 954
Joined: May 2006
#8
2022-05-20, 01:00 PM
OK hope that works. Another thing on Linux for the deb installer is you would need to do is

sudo -u nextpvr mkdir /var/opt/nextpvr/Plugins/NextEnd -p

If you to test that is is working, schedule a game and look at http://ip:8866/service?method=recording....er=pending and get the id and use it in this command line.

sudo -u nextpvr NEXTPVR_DATADIR_USERDATA=/var/opt/nextpvr/ /var/opt/nextpvr/scripts/ParallelProcessing.sh ignore ignore id

ctrl-c to exit.

Martin
jhr1948
Offline

Junior Member

Posts: 29
Threads: 4
Joined: Aug 2013
#9
2022-05-20, 02:16 PM
getting close for sure, got a permission issue i assume

sudo -u nextpvr NEXTPVR_DATADIR_USERDATA=/var/opt/nextpvr/ /var/opt/nextpvr/scripts/ParallelProcessing.sh ignore ignore 1266
NEXTPVR_INSTALLDIR /opt/nextpvr/system/
NEXTPVR_DATADIR /opt/nextpvr/system/data/
NEXTPVR_DATADIR_USERDATA /var/opt/nextpvr/
<Event>
<OID>2113396</OID>
<Title>MLB Baseball</Title>
<SubTitle>Arizona Diamondbacks at Chicago Cubs</SubTitle>
<Description>From Wrigley Field in Chicago.</Description>
<ChannelOID>12622</ChannelOID>
<StartTime>2022-05-20T18:00:00.0000000Z</StartTime>
<EndTime>2022-05-20T21:30:00.0000000Z</EndTime>
<FirstRun>true</FirstRun>
<OriginalAirDate>2022-05-20T00:00:00.0000000</OriginalAirDate>
<Genres>
<Genre>Sports</Genre>
<Genre>Baseball</Genre>
<Genre>Series</Genre>
</Genres>
<UniqueID>EP04104833.1141</UniqueID>
<DeferredArtwork>https://zap2it.tmsimg.com/assets/p21143005_tb2_v13_aa.jpg</DeferredArtwork>
</Event>

STATUS_PENDING
MLB Baseball Arizona Diamondbacks at Chicago Cubs
Access to the path '/var/opt/nextpvr/Plugins/NextEnd/1266.lock' is denied.System.UnauthorizedAccessException: Access to the path '/var/opt/nextpvr/Plugins/NextEnd/1266.lock' is denied.
---> System.IO.IOException: Permission denied
--- End of inner exception stack trace ---
at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
at System.IO.FileStream.OpenHandle(FileMode mode, FileShare share, FileOptions options)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at NextEnd.Program.Main(String[] args)
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,823
Threads: 954
Joined: May 2006
#10
2022-05-20, 02:27 PM (This post was last modified: 2022-05-20, 02:27 PM by mvallevand.)
If that first step in my last post didn't created the folder for your, chown it to nextpvr.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  NextPVR 7 looses recordings after post processing ballfam 15 836 2024-12-20, 03:23 AM
Last Post: ballfam
  nextpvr & Threadfin did not work kfmf 8 938 2024-08-06, 05:19 PM
Last Post: kfmf
  Pi5 / Firefox 128.0 - ctrl key in devices screen does not work TheRealRoland 4 614 2024-08-02, 07:26 PM
Last Post: TheRealRoland
  Post Processing and moving files ballfam 16 2,485 2022-12-30, 06:59 PM
Last Post: ballfam
  Predefined Scans do not work in Germany Marty56 5 1,281 2021-12-10, 04:14 PM
Last Post: Marty56
  Can't get transcoding to work muzicman0 18 4,557 2021-05-10, 08:12 PM
Last Post: muzicman0
  New user - got it to work on Pi4 without drama TheRealRoland 5 1,973 2020-11-12, 05:16 PM
Last Post: sub
  Search (EPG) doesn't work baj1 7 18,853 2020-10-28, 04:26 PM
Last Post: sub
  nothing recording post upgrade. CDinger 2 1,057 2020-10-25, 09:45 PM
Last Post: CDinger
  Ubuntu 20.04 - Can't get HDHR to work muzicman0 3 1,555 2020-06-04, 01:50 AM
Last Post: muzicman0

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

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

Linear Mode
Threaded Mode