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 »
Raspberry pi comskip

 
  • 0 Vote(s) - 0 Average
Raspberry pi comskip
DavidD
Offline

Junior Member

Canada
Posts: 24
Threads: 5
Joined: Jun 2020
#1
2020-06-28, 09:39 PM
Hello, I am interested in getting comskip working with NextPVR. I have done a lot of reading - but still cannot seem to get it reading.

I have compiled and installed comskip. It seems to be working if I execute it on its own.

Created the following comskip.ini in the comskip installation directory /usr/local/bin/comskip:

output_edl=1

live_tv=1

Created the following ParallelProcessing.sh and even tried the same file as PostProcessing.sh
/var/opt/nextpvr/scripts. I made the permissions for executable for other. 

cd /usr/local/bin    > /home/pi/ParallelProcessing.sh

comskip "$1" >>  /home/pi/ParallelProcessing.sh

I misnamed my log file as ParallelProcessing.sh - it should have been ParallelProcessing.log. But still I think it should have worked.
I am getting no log file in any case.

Could you please let me know what I am doing wrong.
BrettB
Offline

Posting Freak

Saint Paul, MN, USA
Posts: 2,666
Threads: 170
Joined: Jun 2007
#2
2020-06-28, 09:48 PM
You didn't provide your log files. So the only thing we could possible do is speculate.

Did an .edl file get generated?

Also, if you're going to use Kodi as a client, did you also include
Code:
edl_skip_field=3
in your comskip.ini file?
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,823
Threads: 954
Joined: May 2006
#3
2020-06-28, 09:50 PM
I assume you are running 64bit Raspberry OS with an RPi but we need your zipped logs you get from the main web server page

I have no idea why you are redirecting stdout like this.

cd /usr/local/bin > /home/pi/ParallelProcessing.sh

comskip "$1" >> /home/pi/ParallelProcessing.sh

Martin
DavidD
Offline

Junior Member

Canada
Posts: 24
Threads: 5
Joined: Jun 2020
#4
2020-06-29, 01:07 AM
[attachment=1836 Wrote:
.zip   nrecord.zip (Size: 87.94 KB / Downloads: 6) BrettB pid='543221' dateline='1593380899']You didn't provide your log files. So the only thing we could possible do is speculate.

Did an .edl file get generated?

Also, if you're going to use Kodi as a client, did you also include
Code:
edl_skip_field=3
in your comskip.ini file?
DavidD
Offline

Junior Member

Canada
Posts: 24
Threads: 5
Joined: Jun 2020
#5
2020-06-29, 01:14 AM
The edl file did not get generated unfortunately, nor the re-directed logs from comskip .sh file. I have posted the .zip file.

I meant to re-direct the file to a .log file, not a .sh file. It was being re-directed to a different directory - so, it is not overwriting my .sh file. Thanks for the tip about making it work in Kodi - I will try that once I get my .sh files working.

I am running raspbian buster - I do not know how to tell if it is 32 or 64 bit or not. I will try to research how to do that tomorrow and get back to you.

I hope the log helps,
Dave.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,823
Threads: 954
Joined: May 2006
#6
2020-06-29, 01:32 AM
You should remove the redirects until you get this working. Comskip will take a lot of resources on a small device which could impact performance

Martin
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#7
2020-06-29, 10:33 AM
(2020-06-29, 01:14 AM)DavidD Wrote: I hope the log helps,

The nrecord.log has this ...

Quote:2020-06-28 16:54:51.337 [DEBUG][9] Started recording (857:3:/home/mythtv/wdmycloud/The Goldbergs/Season 05/The.Goldbergs.S05E09.Parents.Just.Dont.Understand.ts)
2020-06-28 16:54:51.597 [DEBUG][9] Starting: bash -c "'/var/opt/nextpvr/scripts/ParallelProcessing.sh' '/home/mythtv/wdmycloud/The Goldbergs/Season 05/The.Goldbergs.S05E09.Parents.Just.Dont.Understand.ts' 13.1 857 21 'The Goldbergs'"
2020-06-28 16:54:51.608 [ERROR][41] /var/opt/nextpvr/scripts/ParallelProcessing.sh: line 1: /home/pi/ParallelProcessing.sh: Permission denied
2020-06-28 16:54:51.609 [ERROR][41] /var/opt/nextpvr/scripts/ParallelProcessing.sh: line 2: /home/pi/ParallelProcessing.sh: Permission denied

It appears that NextPVR is doing the right thing ... I am not a Linux person so I may be missing the point ... Did you install NextPVR using the deb installer?  Does the NextPVR Server process run under the user "nextpvr"?
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,823
Threads: 954
Joined: May 2006
#8
2020-06-29, 10:47 AM
It appears the @op is trying to create a log file called with a totally odd name /home/pi/ParallelProcessing.sh in a folder that he doesn't have rights for which is way I asked him to remove the redirects. This will also allow us to see in the NextPVR logs how well comskip is performing.

There are other issues with it, it only handles one file and a second recording might block. A second recording at a late date overwrites the file so it defaults the purpose of having a log.

Martin
DavidD
Offline

Junior Member

Canada
Posts: 24
Threads: 5
Joined: Jun 2020
#9
2020-06-29, 06:30 PM (This post was last modified: 2020-06-29, 06:55 PM by DavidD.)
[ - ]  console-setup.sh
[ + ]  cron
[ + ]  dbus
[ + ]  dhcpcd
[ + ]  dphys-swapfile
[ + ]  fake-hwclock
[ - ]  fio
[ - ]  hwclock.sh
[ - ]  keyboard-setup.sh
[ + ]  kmod
[ + ]  lightdm
[ + ]  mysql
[ + ]  networking
[ - ]  nfs-common
1[ - ]  rsync
`
[ + ]  triggerhappy
[ + ]  udev
[ - ]  x11-common
[ + ]  xrdp


I have attached another log. I might have posted this same log from today multiple time, I don't know. If I did, sorry about that. I am new on this group and I do not know how to delete the multiple copies of the same log that I have posted.
I had recorded two programs. Please look at the recording of Hogans Heroes (the second one) as this is a longer one hour show. The first recording I did was only for 15 minutes - so, I am not sure it would have very many commercials if any.


Attached Files
.zip   nrecordJun292020.zip (Size: 94.89 KB / Downloads: 3)
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,823
Threads: 954
Joined: May 2006
#10
2020-06-29, 06:59 PM
I made the assumption about 64 bit OS because technically 32 bit linux is not supported, normally users use docker. That being said if it works good news, it will likely not support devices I need to check the deb installer.

sudo service --status-all won't newer service types the documented way is service nextpvr-server status but if you want to see everything it is systemctl --type service

Apparently comskip worked but comskip need to be tweaked for your file type my OTA files in Canada are typically pretty good. I will test something on CHCH test afternoon if you want to compare results.

Code:
2020-06-29 12:03:08.738    [ERROR][18]    38283 frames decoded in 825.89 seconds (46.35 fps)
2020-06-29 12:03:08.808    [DEBUG][51]    The commandline used was:
2020-06-29 12:03:08.808    [DEBUG][51]    comskip "/home/mythtv/wdmycloud/Hogans Heroes/Season 06/Hogans.Heroes.S06E07.Kommandant.Schultz.ts"
2020-06-29 12:03:08.808    [DEBUG][51]    
2020-06-29 12:03:08.808    [DEBUG][51]    Using comskip.ini for initiation values.
2020-06-29 12:03:08.808    [DEBUG][51]    Commercials were found.

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
  Raspberry Pi 3 Linux Stretch Upgrade success markosjal 1 554 2023-05-20, 05:15 PM
Last Post: sub
  NextPVR on Raspberry Pi 400 snow 1 1,099 2023-02-03, 09:12 AM
Last Post: mvallevand
  Raspberry pi and VLC streamer help buntay20 1 675 2022-08-23, 07:25 AM
Last Post: sub
  Dvbv5 workaround for Raspberry Pi? dirklangohr 12 2,322 2022-03-06, 10:18 AM
Last Post: dirklangohr
  Comskip fail Armsp0 6 1,382 2022-02-09, 11:19 PM
Last Post: Armsp0
  Raspberry Pi 4 & Hauppauge 950Q - Stuck on Live TV jogeedaklown 2 908 2022-01-06, 04:26 PM
Last Post: jogeedaklown
  comskip failing with segmentation fault CDinger 1 1,059 2021-05-10, 12:40 PM
Last Post: mvallevand
  Raspberry Pi 4 in USA with OTA ATSC MattDuffy 27 5,803 2021-03-17, 01:52 AM
Last Post: MattDuffy
  Raspberry PI 4 - NextPVR ver 5.1.0.201216 crashes LilyWhites1882 2 1,332 2021-03-05, 04:20 PM
Last Post: LilyWhites1882
  bulk comskip processing script baj1 7 3,403 2020-11-21, 08:44 PM
Last Post: baj1

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

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

Linear Mode
Threaded Mode