Issue with post processing job (comskip)
Added by jim bob over 3 years ago
I apologize if this issue has been resolved elsewhere, but I cannot seem to figure it out. I am using comskip (https://github.com/erikkaashoek/Comskip) to detect commercials and create a cut file. I have TVHeadend configured with the following post-processing command:
/usr/local/bin/comskip -q --cuvid --ini="/home/hts/comskip.ini" "%f"
This works pretty flawlessly, but the problem is that the process does not seem to die and after a day or so, my CPU is pinned at 100% usage. When I remove the post-processing command, the issue dissapears. I found a thread from 7 years ago (https://tvheadend.org/boards/5/topics/10309?r=12355) that is addressing the issue, but there was no resolution. I should also note that if I run the post processing command outside of TVH, it works fine and exits cleanly. I have attached some of the TVH log file and the output of htop. Any help would be greatly appreciated.
OS: Ubuntu 20.04
TVH Version: 4.3.0~pre+202104021921-0~built202104031334~git98a7c6cfd~ubuntu20.04.1
Replies (2)
RE: Issue with post processing job (comskip) - Added by Darren W over 3 years ago
execute the command in the background by appending a space and then & like this: -
/usr/local/bin/comskip -q --cuvid --ini="/home/hts/comskip.ini" "%f" &
This returns control back to TVHeadend immediately after comskip starts... without the & it will run in the foreground and TVHeadend will timeout waiting for the script to complete.
RE: Issue with post processing job (comskip) - Added by jim bob over 3 years ago
I was able to resolve the problem and it seems it was the result of a file permission issue and not with the post processing script itself. Thank you.