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 … 3 4 5 6 7 … 28 Next »
Skip ParallelProcessing.sh on all BBC channels

 
  • 0 Vote(s) - 0 Average
Skip ParallelProcessing.sh on all BBC channels
TokenVideo22
Offline

Junior Member

UK
Posts: 2
Threads: 1
Joined: Nov 2022
#1
2022-11-25, 03:43 PM
Is there a way of preventing ParallelProcessing.sh from executing if the channel name contains "BBC"?
There are no adverts on BBC channels and running comskip can cause spurious advert breaks to be detected which then interrupts the recording playback flow.
The channel name is not passed as a CLI parameter, so wondered if there was another approach?

Thanks
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 47,296
Threads: 889
Joined: May 2006
#2
2022-11-25, 04:00 PM
You would need to use channel number or channel oid to do that https://github.com/sub3/NextPVR/wiki/Scripts

Martin
TokenVideo22
Offline

Junior Member

UK
Posts: 2
Threads: 1
Joined: Nov 2022
#3
2022-12-03, 05:40 PM
Came up with a workaround.

With SQlite3 installed you can query the "Channels" table in the npvr.db3 database to ascertain if the recording's channel number has BBC in the associated channel name. If it doesn't, the comskip process executes, otherwise it gets skipped and ParallelProcessing.sh exits

#!/bin/bash
IsBBC=`sqlite3 /var/opt/nextpvr/npvr.db3 "SELECT name FROM CHANNEL where number = $2 AND name like '%BBC%';"`

if [ -z "$IsBBC" ] # if result is blank
then
echo "This is not a BBC show, executing comskip..."
/usr/bin/nice -n 19 /usr/bin/comskip --ini=/etc/comskip.ini "$1" > /var/opt/nextpvr/logs/"comskip-${5}.log"

else

# Result wasn't blank, channel name contained 'BBC'
echo BBC recording skipped > /var/opt/nextpvr/logs/"comskip-${5}.log"
fi
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  NextPVR can't open RAI (Italian main TV channels) links f2fg 10 103 2023-09-18, 05:22 PM
Last Post: mvallevand
  NScriptHelper.dll amend and delete channels tucka20 0 33 2023-09-14, 09:53 AM
Last Post: tucka20
  Wrong frequencies in DVB-C-channels.conf, but scan log shows correct frequencies RonnyAdam 25 975 2023-07-24, 10:24 PM
Last Post: mvallevand
  Scan gives only a few channels steadyState 11 355 2023-02-25, 02:59 PM
Last Post: mvallevand
  Cannot view DVB-S channels Heifer 11 396 2023-02-01, 10:53 PM
Last Post: Heifer
  Unable to scan the channels to my region NinthWave 2 184 2023-01-25, 02:24 AM
Last Post: NinthWave
  RTP Protocol - channels not showing OBE 5 350 2022-11-16, 09:19 AM
Last Post: OBE
  IPTV channels not working after network changes spagio 11 490 2022-10-19, 05:41 PM
Last Post: sub
  Remove channels Mithrandir 6 481 2022-09-26, 07:16 AM
Last Post: sub
  [Solved] Black/black screen with audio when trying to watch HD channels on pi spleencheesemonkey 11 831 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