Linux comskip GUI window auto closes

Here you can ask your questions on how to use Comskip for the detection of commercials. Also questions on how to remove commercials are welcome
Post Reply
bqq100
Posts: 6
Joined: Wed Jun 06, 2018 5:19 am

Linux comskip GUI window auto closes

Post by bqq100 »

I just built comskip on my CentOS 7 server and I want to use the GUI to fine tune the detected commercials before cutting them out. However when I run the comskip GUI, it process everything and shows the window as expected, but once detection finishes the window closes and the commercial files are written. Has anyone seen this behavior before?

I also have comskip on another windows box and it is working as expected there.
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Re: Linux comskip GUI window auto closes

Post by erik »

Could be caused when failing to position to start of recording after scanning.
YOu can test by manually open in comskipGUI, move to end of file and jump back to start and see if you get positioning errors in the text window
bqq100
Posts: 6
Joined: Wed Jun 06, 2018 5:19 am

Re: Linux comskip GUI window auto closes

Post by bqq100 »

erik wrote:Could be caused when failing to position to start of recording after scanning.
YOu can test by manually open in comskipGUI, move to end of file and jump back to start and see if you get positioning errors in the text window
How do I do that? As soon as I launch comskip-gui it starts processing the file and there is no way to seek until it finishes.
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Re: Linux comskip GUI window auto closes

Post by erik »

Launch comskipgui with the create .txt file instead of the recording.
This will allow you to scan through the recording
bqq100
Posts: 6
Joined: Wed Jun 06, 2018 5:19 am

Re: Linux comskip GUI window auto closes

Post by bqq100 »

erik wrote:Launch comskipgui with the create .txt file instead of the recording.
This will allow you to scan through the recording
When I run comskip-gui <filename>.txt I can seek to the end and back to the beginning without any issues. The window remains open as expected.
bqq100
Posts: 6
Joined: Wed Jun 06, 2018 5:19 am

Re: Linux comskip GUI window auto closes

Post by bqq100 »

erik wrote:Launch comskipgui with the create .txt file instead of the recording.
This will allow you to scan through the recording
Erik, any other thoughts at what could be causing the window to close?
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Re: Linux comskip GUI window auto closes

Post by erik »

when you start comskipGUI processing a file from a shell do you see any messages from comskipGUI or does it just exit?
Can you find the exit status?
bqq100
Posts: 6
Joined: Wed Jun 06, 2018 5:19 am

Re: Linux comskip GUI window auto closes

Post by bqq100 »

erik wrote:when you start comskipGUI processing a file from a shell do you see any messages from comskipGUI or does it just exit?
Can you find the exit status?
Command: ./bin/comskip-gui --output=/tmp/comskip <path to file>.mp4 2>&1 > /tmp/comskip/gui.log

Terminal Output:

Code: Select all

Comskip 0.82.006, made using ffmpeg
Donator build
 0:33:56 - 62508 frames in 173.52 sec(360.24 fps), 1.00 sec(406.00 fps), 99%
62591 frames decoded in 173.75 seconds (360.24 fps)
Exit Code: 0

Log Output:

Code: Select all

The commandline used was:
./bin/comskip-gui --output=/tmp/comskip "<path to file>.mp4"

Using comskip.ini for initiation values.
     511 B=88  V=-1S U=33164  AR=1.80                                                                          
    1023 B=70  V=-1S U=27250  AR=1.80                                                                          
     511 B=87  V=-1S U=32567  AR=1.80                                                                          
    1023 B=70  V=-1S U=27172  AR=1.80                                                                          
    1535 B=48  V=-1S U=13463  AR=1.80                                                                          
    2047 B=38  V=-1S U=18249  AR=1.80                                                                          
    2559 B=149  V=-1S U=30388  AR=1.80                                                                          
    3071 B=63  V=-1S U=14967  AR=1.80                                                                          
    3583 B=77  V=-1S U=20801  AR=1.80                                                                          
    4095 B=70  V=-1S U=24213  AR=1.80                                                                          
    4607 B=156  V=-1S U=41513  AR=1.80                                                                          
    5119 B=74  V=-1S U=22772  AR=1.80                                                                          
    5631 B=76  V=-1S U=23641  AR=1.80                                                                          
    6143 B=77  V=-1S U=24490  AR=1.80                                                                          
    6655 B=118  V=-1S U=33982  AR=1.80                                                                          
    7167 B=117  V=-1S U=34258  AR=1.80                                                                          
    7679 B=79  V=-1S U=26212  AR=1.80                                                                          
    8191 B=78  V=-1S U=25940  AR=1.80                                                                          
    8703 B=85  V=-1S U=24606  AR=1.80                                                                          
    9215 B=90  V=-1S U=30413  AR=1.80                                                                          
    9727 B=89  V=-1S U=29556  AR=1.80                                                                          
   10239 B=122  V=-1S U=35666  AR=1.80                                                                          
   10751 B=168  V=-1S U=35724  AR=1.80                                                                          
   11263 B=96  V=-1S U=33991  AR=1.80                                                                          
   11775 B=113  V=-1S U=31497  AR=1.80                                                                          
   12287 B=119  V=-1S U=31023  AR=1.80                                                                          
   12799 B=84  V=-1S U=24781  AR=1.80                                                                          
   13311 B=86  V=-1S U=25025  AR=1.80                                                                          
   13823 B=68  V=-1S U=24035  AR=1.80                                                                          
   14335 B=86  V=-1S U=24462  AR=1.80                                                                          
   14847 B=93  V=-1S U=34351  AR=1.80                                                                          
   15359 B=121  V=-1S U=32129  AR=1.80                                                                          
   15871 B=87  V=-1S U=24937  AR=1.80                                                                          
   16383 B=86  V=-1S U=25027  AR=1.80                                                                          
   16895 B=87  V=-1S U=24557  AR=1.80                                                                          
   17407 B=118  V=-1S U=26959  AR=1.80                                                                          
   17919 B=117  V=-1S U=27083  AR=1.80                                                                          
   18431 B=88  V=-1S U=29555  AR=1.80                                                                          
   18943 B=83  V=-1S U=24205  AR=1.80                                                                          
   19455 B=84  V=-1S U=22513  AR=1.80                                                                          
   19967 B=90  V=-1S U=32627  AR=1.80                                                                          
   20479 B=79  V=-1S U=22420  AR=1.80                                                                          
   20991 B=83  V=-1S U=27933  AR=1.80                                                                          
   21503 B=80  V=-1S U=23335  AR=1.80                                                                          
   22015 B=100  V=-1S U=30261  AR=1.80                                                                          
   22527 B=79  V=-1S U=20622  AR=1.80                                                                          
   23039 B=101  V=-1S U=29929  AR=1.80                                                                          
   23551 B=62  V=-1S U=15043  AR=1.80                                                                          
   24063 B=173  V=-1S U=21655  AR=1.80                                                                          
   24575 B=90  V=-1S U=36868  AR=1.80                                                                          
   25087 B=83  V=-1S U=28419  AR=1.80                                                                          
   25599 B=128  V=-1S U=33284  AR=1.80                                                                          
   26111 B=93  V=-1S U=24005  AR=1.80                                                                          
   26623 B=99  V=-1S U=30790  AR=1.80                                                                          
   27135 B=135  V=-1S U=39394  AR=1.80                                                                          
   27647 B=78  V=-1S U=32278  AR=1.80                                                                          
   28159 B=90  V=-1S U=40444  AR=1.80                                                                          
   28671 B=89  V=-1S U=40226  AR=1.80                                                                          
   29183 B=80  V=-1S U=28375  AR=1.80                                                                          
   29695 B=97  V=-1S U=34166  AR=1.80                                                                          
   30207 B=80  V=-1S U=32586  AR=1.80                                                                          
   30719 B=134  V=-1S U=48552  AR=1.80                                                                          
   31231 B=135  V=-1S U=48608  AR=1.80                                                                          
   31743 B=87  V=-1S U=37532  AR=1.80                                                                          
   32255 B=82  V=-1S U=34976  AR=1.80                                                                          
   32767 B=84  V=-1S U=21657  AR=1.80                                                                          
   33279 B=46  V=-1S U=23670  AR=1.80                                                                          
   33791 B=63  V=-1S U=18815  AR=1.80                                                                          
   34303 B=33  V=-1S U=9572  AR=1.80                                                                          
   34815 B=63  V=-1S U=34603  AR=1.80                                                                          
   35327 B=111  V=-1S U=34822  AR=1.80                                                                          
   35839 B=152  V=-1S U=25121  AR=1.80                                                                          
   36351 B=72  V=-1S U=11720  AR=1.80                                                                          
   36863 B=84  V=-1S U=15357  AR=1.80                                                                          
   37375 B=141  V=-1S U=42042  AR=1.80                                                                          
   37887 B=16  V=-1S U=0U AR=1.80                                                                          
   38399 B=198  V=-1S U=27799  AR=1.80                                                                          
   38911 B=54  V=-1S U=16742  AR=1.80                                                                          
   39423 B=16  V=-1S U=290U AR=1.80                                                                          
   39935 B=172  V=-1S U=12943  AR=1.80                                                                          
   40447 B=78  V=-1S U=26153  AR=1.80                                                                          
   40959 B=69  V=-1S U=18988  AR=1.80                                                                          
   41471 B=83  V=-1S U=24842  AR=1.80                                                                          
   41983 B=79  V=-1S U=26438  AR=1.80                                                                          
   42495 B=85  V=-1S U=27179  AR=1.80                                                                          
   43007 B=74  V=-1S U=21783  AR=1.80                                                                          
   43519 B=76  V=-1S U=22310  AR=1.80                                                                          
   44031 B=76  V=-1S U=22669  AR=1.80                                                                          
   44543 B=81  V=-1S U=27739  AR=1.80                                                                          
   45055 B=88  V=-1S U=34159  AR=1.80                                                                          
   45567 B=81  V=-1S U=27869  AR=1.80                                                                          
   46079 B=98  V=-1S U=36195  AR=1.80                                                                          
   46591 B=59  V=-1S U=18205  AR=1.80                                                                          
   47103 B=90  V=-1S U=34775  AR=1.80                                                                          
   47615 B=90  V=-1S U=34054  AR=1.80                                                                          
   48127 B=89  V=-1S U=34279  AR=1.80                                                                          
   48639 B=79  V=-1S U=26158  AR=1.80                                                                          
   49151 B=78  V=-1S U=26370  AR=1.80                                                                          
   49663 B=99  V=-1S U=36635  AR=1.80                                                                          
   50175 B=90  V=-1S U=34746  AR=1.80                                                                          
   50687 B=77  V=-1S U=25076  AR=1.80                                                                          
   51199 B=77  V=-1S U=23359  AR=1.80                                                                          
   51711 B=30  V=-1S U=8234  AR=1.80                                                                          
   52223 B=213  V=-1S U=6756  AR=1.80                                                                          
   52735 B=149  V=-1S U=16163  AR=1.80                                                                          
   53247 B=129  V=-1S U=24811  AR=1.80                                                                          
   53759 B=36  V=-1S U=5959  AR=1.80                                                                          
   54271 B=100  V=-1S U=30320  AR=1.80                                                                          
   54783 B=116  V=-1S U=45961  AR=1.80                                                                          
   55295 B=68  V=-1S U=25391  AR=1.80                                                                          
   55807 B=53  V=-1S U=12126  AR=1.80                                                                          
   56319 B=46  V=-1S U=13675  AR=1.80                                                                          
   56831 B=62  V=-1S U=24923  AR=1.80                                                                          
   57343 B=75  V=-1S U=29889  AR=1.80                                                                          
   57855 B=65  V=-1S U=34871  AR=1.80                                                                          
   58367 B=136  V=-1S U=28607  AR=1.80                                                                          
   58879 B=77  V=-1S U=23757  AR=1.80                                                                          
   59391 B=96  V=-1S U=29314  AR=1.80                                                                          
   59903 B=108  V=-1S U=51439  AR=1.80                                                                          
   60415 B=77  V=-1S U=19451  AR=1.80                                                                          
   60927 B=80  V=-1S U=20779  AR=1.80                                                                          
Commercials were found.
Close window when done
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Re: Linux comskip GUI window auto closes

Post by erik »

Can you set
verbose=10
in comskip.ini
run again and post the log file?
bqq100
Posts: 6
Joined: Wed Jun 06, 2018 5:19 am

Re: Linux comskip GUI window auto closes

Post by bqq100 »

erik wrote:Can you set
verbose=10
in comskip.ini
run again and post the log file?
Command: ./bin/comskip-gui --output=/tmp/comskip <path to file>.mp4 2>&1 > /tmp/comskip/gui.log

Terminal Output:

Code: Select all

Comskip 0.82.006, made using ffmpeg
Donator build
 0:33:53 - 62426 frames in 111.07 sec(562.04 fps), 1.00 sec(520.00 fps), 99%
62591 frames decoded in 111.37 seconds (562.01 fps)
Exit Code: 0

Log:
https://drive.google.com/open?id=150Fvd ... 5ssKWpmFfJ
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Re: Linux comskip GUI window auto closes

Post by erik »

I have no clue
Everything seems normal
CraigD
Posts: 12
Joined: Sat Nov 25, 2017 6:04 pm

Re: Linux comskip GUI window auto closes

Post by CraigD »

I know this thread is ancient. I experienced the same problem in the past of the GUI window closing as soon as comskip finished processing the file.

Fast forward to current time and the GUI is working as expected. The window stays open after comskip-gui processing, I can move about with keys "n", "p", etc. I can also reprocess by running comskip-gui on the *.csv file to see how changes in the ini alter commercial detection. I have tried this on openSUSE Tumbleweed and will be trying it out on Fedora, Debian and Arch in the future.

Craig
Post Reply