NextPVR Forums

Full Version: Cant get Post Padding to work
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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.
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
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.
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
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
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
Hate to reply to my own thread, but already noticed like a dummy i forgot to change % to $ on the .sh script
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
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)
If that first step in my last post didn't created the folder for your, chown it to nextpvr.

Martin
Pages: 1 2