NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 119 120 121 122 123 … 433 Next »
Live TV Stream Buffering and Stopping on Kodi Client

Live TV Stream Buffering and Stopping on Kodi Client
lemonjello05
Offline

Junior Member

Posts: 12
Threads: 1
Joined: Sep 2016
#21
2016-09-08, 01:19 AM
I cut the old npvr.db3 from the NPVR folder and reinstalled npvr from a fresh download to replace the db3 with a fresh copy.

It seemed to stream fine, so I let it stream overnight to test. I found both of the client and backend kodi instances frozen this morning. I looked at the nrecord log. It looks like it happened right around the same time as the automated epg update.

I have attached the logs as I found them this morning and posted a new copy of my npvr.db3.

https://drive.google.com/open?id=0B1XxHh...WdhWFNHQUE

I also noticed last night that I was unable to create recurring recordings through either kodi instance. The option was simply not selectable. I could however make them from the npvr backend. Not sure if that is related or a separate issue, but I thought I would add it anyway.
lemonjello05
Offline

Junior Member

Posts: 12
Threads: 1
Joined: Sep 2016
#22
2016-09-08, 12:33 PM
Seems I forgot to click upload on those logs. They should be attached now.
snagglewest
Offline

Senior Member

VA USA
Posts: 361
Threads: 60
Joined: Jul 2011
#23
2016-09-08, 04:06 PM
I had the same issue a good while back when a EPG update happens with a recording going on or Kodi has a tuner in use. My solution was to add a EPGupdate.bat file which looks to see if NPVR is recording or has a tuner in use before the update. If something is going on then the script waits until all the recording/tuners are not in use before starting the update. It solved my problem but I added that a couple years ago so I don't know if it's really still needed. I also added a step at the bottom that deletes orphaned live TV and buffer files. Same thing though, I'm not sure if it's still needed these days but again, it can't hurt. Here's the bat file I use. No, it's not my code, I got it from someone else here (can't remember who) and just tweaked it to suit my needs.

Snag

Code:
@ECHO off
REM Updage EPG only if not recording
cd \Users\Public\NPVR\Scripts

ECHO -------------------------- >> epg.log
ECHO Starting new updateEPG BAT file run >> epg.log

Set DEBUG=FALSE
Set BASEUDIR=c:\Users\Public\NPVR
Set BASEPDIR=C:\Progra~2\NPVR

Set LOGFILE="%BASEUDIR%\Logs\EpgCheck.log"
Set NSHELPER="%BASEPDIR%\NScriptHelper.exe"
Set NPVR="%BASEPDIR%\NextPVR.exe"

CALL :LOGMSG
CALL :LOGMSG -----------------------------------------------
CALL :LOGMSG Begin EPG Update process

:VALIDATEENV
    CALL :LOGMSG Validating Environment
    FOR %%i IN ("%BASEUDIR%") DO IF NOT EXIST %%~si\NUL (
        CALL :LOGMSG ABORT: Base user directory does not exist. Check script variable BASEUDIR
        GOTO :ENDJOB
    )
    FOR %%i IN ("%BASEPDIR%") DO IF NOT EXIST %%~si\NUL (
        CALL :LOGMSG ABORT: Base Program directory does not exist. Check script variable BASEPDIR
        GOTO :ENDJOB
    )
    FOR %%i IN (%NSHELPER%) DO IF NOT EXIST %%~si (
        CALL :LOGMSG ABORT: NScriptHelper.exe does not exist. Check script variable NSHELPER
        GOTO :ENDJOB
    )
    FOR %%i IN (%NPVR%) DO IF NOT EXIST %%~si (
        CALL :LOGMSG ABORT: NextPVR.exe does not exist. Check script variable NPVR
        GOTO :ENDJOB
    )
    
    set chknpvr=1
:LOOP
    CALL :LOGMSG Check to see if any recording in progress...
    %NSHELPER% -isInUse >> %LOGFILE%
    %NSHELPER% -isInUse -isInUse | find "NOT RECORDING"
    set chknpvr=%ERRORLEVEL%
    REM CALL :LOGMSG isInUse returns %chknpvr%
    if %chknpvr% NEQ 0 (
        timeout 300
        GOTO :LOOP
    )
    CALL :LOGMSG No recordings in progress, update the EPG.
    REM %NPVR% -updateepgonly
    CALL :LOGMSG EPG Update complete
    GoTo :ENDJOB

--------------------------------------------------------------------------------------------
:LOGMSG
    if "%*". EQU "". (
        echo.
    ) else (
        echo %*
    )
    echo %date% %time% %* >> %LOGFILE%
    Goto :EOF

--------------------------------------------------------------------------------------------
:ENDJOB
    If %DEBUG% EQU TRUE Pause

echo updateEPG completed! >> epg.log

echo Trying to delete orphan live TV files >> epg.log
del "D:\recorded_TV\live-*"
del "D:\buffer\live-*"
echo deleted orphan live TV files >> epg.log
echo Everything done! >> epg.log

:END
NextPVR V6.1.5.231022 - Ubuntu 22.04 VM / 4 core / 8Gb memory
HDHR Prime X2 / HDFX-2 /Schedule Direct / 2X Pi4 + & 3X Pi3 LibreELEC Kodi clients
Server - TrueNAS/ SuperMicro MBD-X10SL7-F MB / Xeon E3-1246 / 32Gb Unbuffered ECC / 8 X 4TB RAIDZ2
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): « Previous 1 2 3


Possibly Related Threads…
Thread Author Replies Views Last Post
  NLite Client on Raspberry Pi cweseloh 16 4,581 2024-10-23, 01:59 PM
Last Post: fla
  NextPVR VOD through Kodi unmich 2 1,206 2023-06-18, 03:54 AM
Last Post: sub
  Tuner not being released when live TV stopped on Kodi dark_half 7 2,794 2022-06-12, 11:59 PM
Last Post: sub
  Can't watch certain channels on live tv (but can record) tvwatcher 4 2,078 2021-05-05, 06:23 AM
Last Post: tvwatcher
  DVB-T and selecting audio stream three6zerocool 17 4,908 2021-02-06, 04:22 PM
Last Post: artmetz
  Client trouble Jzzhn 2 1,455 2020-08-31, 05:41 AM
Last Post: Jzzhn
  NextPVR Client Rendering NumberFive 1 1,476 2020-07-28, 10:17 PM
Last Post: NumberFive
  Client Hang artmetz 4 2,127 2020-06-07, 09:14 PM
Last Post: sub
  Black Screen Live TV and Recording Eric8497 9 4,198 2020-03-14, 06:17 PM
Last Post: sub
  TV Guide edit Genre for Kodi sammy3 8 3,800 2020-03-10, 09:25 PM
Last Post: sammy3

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

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

Linear Mode
Threaded Mode