Syntax error with version 0.93i on Linux (OpenELEC 6.0.3)

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
dugiehowsa
Posts: 3
Joined: Mon Aug 01, 2016 2:27 pm

Syntax error with version 0.93i on Linux (OpenELEC 6.0.3)

Post by dugiehowsa » Tue Aug 02, 2016 11:31 pm

Greetings. I am attempting to run comskip on some mpg files that are generated by my Silicondust HDHomeRun Record Engine. When I run comskip, I receive the following error message:

OpenELEC:~/dvr/Bones # comskip "Bones\ S11E14\ 20160505\ \[20160506-0000\].mpg"'
Comskip 0.93i.000, made using avcodec
The commandline used was:
comskip.bin --ini=/storage/.kodi/addons/tools.comskip/etc/comskip.ini Bones\ S11E14\ 20160505\ \[20160506-0000\].mpg

Usage:
comskip [-h|--help] [-w|--debugwindow] [-n|--playnice] [--zpcut] [--zpchapter] [--videoredo] [--csvout] [--quality] [--plist] [-m|--demux] [-p|--pid=<string>] [-t|--ts] [-d|--detectmethod=<int>] [-v|--verbose=<int>] [-u|--dump=<int>] [-s|--play] [--timing] [-q|--quiet] [--ini=<file>] [--logo=<file>] [--cut=<file>] [--output=<file>] [--selftest=<int>] <file> [<file>]

Errors:
ComSkip: excess option 20160505\
ComSkip: unexpected argument "\[20160506-0000\].mpg"
OpenELEC:~/dvr/Bones #

I tried the command with no quotes, single quotes and doubles quotes around the file name.

I tried a final time, by replacing all the spaces in the file name with underscores, and I was able to successfully run the program.

Is there a way to run the program where the file name contains spaces?

Code: Select all

OpenELEC:~/dvr/Bones # ls
Bones S11E15 20160512 [20160513-0000].mpg  Bones S11E19 20160616 [20160617-0000].mpg  Bones_S11E14_20160505.csv
Bones S11E16 20160519 [20160520-0000].mpg  Bones S11E20 20160623 [20160624-0000].mpg  Bones_S11E14_20160505.edl
Bones S11E17 20160526 [20160527-0000].mpg  Bones S11E21 20160714 [20160715-0000].mpg  Bones_S11E14_20160505.log
Bones S11E18 20160602 [20160603-0000].mpg  Bones S11E22 20160721 [20160722-0000].mpg  Bones_S11E14_20160505.mpg
OpenELEC:~/dvr/Bones # comskip "Bones S11E15 20160512 [20160513-0000].mpg"
Comskip 0.93i.000, made using avcodec
The commandline used was:
comskip.bin --ini=/storage/.kodi/addons/tools.comskip/etc/comskip.ini Bones S11E15 20160512 [20160513-0000].mpg

Usage:
  comskip  [-h|--help] [-w|--debugwindow] [-n|--playnice] [--zpcut] [--zpchapter] [--videoredo] [--csvout] [--quality] [--plist] [-m|--demux] [-p|--pid=<string>] [-t|--ts] [-d|--detectmethod=<int>] [-v|--verbose=<int>] [-u|--dump=<int>] [-s|--play] [--timing] [-q|--quiet] [--ini=<file>] [--logo=<file>] [--cut=<file>] [--output=<file>] [--selftest=<int>] <file> [<file>]

  -h, --help                Display syntax
  -w, --debugwindow         Show debug window
  -n, --playnice            Slows detection down
  --zpcut                   Outputs a ZoomPlayer cutlist
  --zpchapter               Outputs a ZoomPlayer chapter file
  --videoredo               Outputs a VideoRedo cutlist
  --csvout                  Outputs a csv of the frame array
  --quality                 Outputs a csv of false detection segments
  --plist                   Outputs a mac-style plist for addition to an EyeTV archive as the 'markers' property
  -m, --demux               Demux the input into elementary streams
  -p, --pid=<string>        The PID of the video in the TS
  -t, --ts                  The input file is a Transport Stream
  -d, --detectmethod=<int>  An integer sum of the detection methods to use
  -v, --verbose=<int>       Verbose level
  -u, --dump=<int>          Dump the cutscene at this frame number
  -s, --play                Play the video
  --timing                  Dump the timing into a file
  -q, --quiet               Not output logging to the console window
  --ini=<file>              Ini file to use
  --logo=<file>             Logo file to use
  --cut=<file>              CutScene file to use
  --output=<file>           Folder to use for all output files
  --selftest=<int>          Execute a selftest
  <file>                    Input file
  <file>                    Output folder for cutlist

Detection methods available:
          1 - Black Frame
          2 - Logo
          4 - Scene Change
          8 - Resolution Change
         16 - Closed Captions
         32 - Aspect Ratio
         64 - Silence
        128 - CutScenes
        255 - USE ALL AVAILABLE

Errors:
ComSkip: excess option 20160512
ComSkip: unexpected argument "[20160513-0000].mpg"
OpenELEC:~/dvr/Bones # comskip 'Bones S11E15 20160512 [20160513-0000].mpg'
Comskip 0.93i.000, made using avcodec
The commandline used was:
comskip.bin --ini=/storage/.kodi/addons/tools.comskip/etc/comskip.ini Bones S11E15 20160512 [20160513-0000].mpg

Usage:
  comskip  [-h|--help] [-w|--debugwindow] [-n|--playnice] [--zpcut] [--zpchapter] [--videoredo] [--csvout] [--quality] [--plist] [-m|--demux] [-p|--pid=<string>] [-t|--ts] [-d|--detectmethod=<int>] [-v|--verbose=<int>] [-u|--dump=<int>] [-s|--play] [--timing] [-q|--quiet] [--ini=<file>] [--logo=<file>] [--cut=<file>] [--output=<file>] [--selftest=<int>] <file> [<file>]

  -h, --help                Display syntax
  -w, --debugwindow         Show debug window
  -n, --playnice            Slows detection down
  --zpcut                   Outputs a ZoomPlayer cutlist
  --zpchapter               Outputs a ZoomPlayer chapter file
  --videoredo               Outputs a VideoRedo cutlist
  --csvout                  Outputs a csv of the frame array
  --quality                 Outputs a csv of false detection segments
  --plist                   Outputs a mac-style plist for addition to an EyeTV archive as the 'markers' property
  -m, --demux               Demux the input into elementary streams
  -p, --pid=<string>        The PID of the video in the TS
  -t, --ts                  The input file is a Transport Stream
  -d, --detectmethod=<int>  An integer sum of the detection methods to use
  -v, --verbose=<int>       Verbose level
  -u, --dump=<int>          Dump the cutscene at this frame number
  -s, --play                Play the video
  --timing                  Dump the timing into a file
  -q, --quiet               Not output logging to the console window
  --ini=<file>              Ini file to use
  --logo=<file>             Logo file to use
  --cut=<file>              CutScene file to use
  --output=<file>           Folder to use for all output files
  --selftest=<int>          Execute a selftest
  <file>                    Input file
  <file>                    Output folder for cutlist

Detection methods available:
          1 - Black Frame
          2 - Logo
          4 - Scene Change
          8 - Resolution Change
         16 - Closed Captions
         32 - Aspect Ratio
         64 - Silence
        128 - CutScenes
        255 - USE ALL AVAILABLE

Errors:
ComSkip: excess option 20160512
ComSkip: unexpected argument "[20160513-0000].mpg"
OpenELEC:~/dvr/Bones #


erik
Site Admin
Posts: 3310
Joined: Sun Aug 21, 2005 3:49 pm

Re: Syntax error with version 0.93i on Linux (OpenELEC 6.0.3

Post by erik » Wed Aug 03, 2016 7:31 am

Are you sure you need to escape the square brackets?
e.g
use [12345]
instead of \[12345\]

dugiehowsa
Posts: 3
Joined: Mon Aug 01, 2016 2:27 pm

Re: Syntax error with version 0.93i on Linux (OpenELEC 6.0.3

Post by dugiehowsa » Wed Aug 03, 2016 12:45 pm

erik wrote:Are you sure you need to escape the square brackets?
e.g
use [12345]
instead of \[12345\]
I tried using double quotes without the slashes, and still no luck.

Code: Select all

OpenELEC:~/dvr/Bones # ls
Bones S11E15 20160512 [20160513-0000].mpg  Bones S11E19 20160616 [20160617-0000].mpg  Bones_S11E14_20160505.csv
Bones S11E16 20160519 [20160520-0000].mpg  Bones S11E20 20160623 [20160624-0000].mpg  Bones_S11E14_20160505.edl
Bones S11E17 20160526 [20160527-0000].mpg  Bones S11E21 20160714 [20160715-0000].mpg  Bones_S11E14_20160505.log
Bones S11E18 20160602 [20160603-0000].mpg  Bones S11E22 20160721 [20160722-0000].mpg  Bones_S11E14_20160505.mpg


OpenELEC:~/dvr/Bones # comskip "Bones S11E15 20160512 [20160513-0000].mpg"
Comskip 0.93i.000, made using avcodec
The commandline used was:
comskip.bin --ini=/storage/.kodi/addons/tools.comskip/etc/comskip.ini Bones S11E15 20160512 [20160513-0000].mpg

Usage:
  comskip  [-h|--help] [-w|--debugwindow] [-n|--playnice] [--zpcut] [--zpchapter] [--videoredo] [--csvout] [--quality] [--plist] [-m|--demux] [-p|--pid=<string>] [-t|--ts] [-d|--detectmethod=<int>] [-v|--verbose=<int>] [-u|--dump=<int>] [-s|--play] [--timing] [-q|--quiet] [--ini=<file>] [--logo=<file>] [--cut=<file>] [--output=<file>] [--selftest=<int>] <file> [<file>]

  -h, --help                Display syntax
  -w, --debugwindow         Show debug window
  -n, --playnice            Slows detection down
  --zpcut                   Outputs a ZoomPlayer cutlist
  --zpchapter               Outputs a ZoomPlayer chapter file
  --videoredo               Outputs a VideoRedo cutlist
  --csvout                  Outputs a csv of the frame array
  --quality                 Outputs a csv of false detection segments
  --plist                   Outputs a mac-style plist for addition to an EyeTV archive as the 'markers' property
  -m, --demux               Demux the input into elementary streams
  -p, --pid=<string>        The PID of the video in the TS
  -t, --ts                  The input file is a Transport Stream
  -d, --detectmethod=<int>  An integer sum of the detection methods to use
  -v, --verbose=<int>       Verbose level
  -u, --dump=<int>          Dump the cutscene at this frame number
  -s, --play                Play the video
  --timing                  Dump the timing into a file
  -q, --quiet               Not output logging to the console window
  --ini=<file>              Ini file to use
  --logo=<file>             Logo file to use
  --cut=<file>              CutScene file to use
  --output=<file>           Folder to use for all output files
  --selftest=<int>          Execute a selftest
  <file>                    Input file
  <file>                    Output folder for cutlist

Detection methods available:
          1 - Black Frame
          2 - Logo
          4 - Scene Change
          8 - Resolution Change
         16 - Closed Captions
         32 - Aspect Ratio
         64 - Silence
        128 - CutScenes
        255 - USE ALL AVAILABLE

Errors:
ComSkip: excess option 20160512
ComSkip: unexpected argument "[20160513-0000].mpg"
OpenELEC:~/dvr/Bones #

erik
Site Admin
Posts: 3310
Joined: Sun Aug 21, 2005 3:49 pm

Re: Syntax error with version 0.93i on Linux (OpenELEC 6.0.3

Post by erik » Wed Aug 03, 2016 1:33 pm

The comskip build you are using is not created by me but by someone else that copied the comskip sources and made many changes so I'm not really able to support you

erik
Site Admin
Posts: 3310
Joined: Sun Aug 21, 2005 3:49 pm

Re: Syntax error with version 0.93i on Linux (OpenELEC 6.0.3

Post by erik » Wed Aug 03, 2016 1:35 pm

You probably need to escape the spaces but maybe not the brackets

dugiehowsa
Posts: 3
Joined: Mon Aug 01, 2016 2:27 pm

Re: Syntax error with version 0.93i on Linux (OpenELEC 6.0.3

Post by dugiehowsa » Fri Aug 05, 2016 10:52 pm

erik wrote:You probably need to escape the spaces but maybe not the brackets
I've tried several combinations of quotes and escapes, but no such luck. I will just start working on a script that replaces the spaces with underscores.

Code: Select all

OpenELEC:~/dvr/Bones # ls
Bones S11E15 20160512 [20160513-0000].mpg  Bones S11E19 20160616 [20160617-0000].mpg  Bones_S11E14_20160505.csv
Bones S11E16 20160519 [20160520-0000].mpg  Bones S11E20 20160623 [20160624-0000].mpg  Bones_S11E14_20160505.edl
Bones S11E17 20160526 [20160527-0000].mpg  Bones S11E21 20160714 [20160715-0000].mpg  Bones_S11E14_20160505.log
Bones S11E18 20160602 [20160603-0000].mpg  Bones S11E22 20160721 [20160722-0000].mpg  Bones_S11E14_20160505.mpg
OpenELEC:~/dvr/Bones # comskip "Bones\ S11E15\ 20160512\ \[20160513-0000\].mpg"
Comskip 0.93i.000, made using avcodec
The commandline used was:
comskip.bin --ini=/storage/.kodi/addons/tools.comskip/etc/comskip.ini Bones\ S11E15\ 20160512\ \[20160513-0000\].mpg

Usage:
  comskip  [-h|--help] [-w|--debugwindow] [-n|--playnice] [--zpcut] [--zpchapter] [--videoredo] [--csvout] [--quality] [--plist] [-m|--demux] [-p|--pid=<string>] [-t|--ts] [-d|--detectmethod=<int>] [-v|--verbose=<int>] [-u|--dump=<int>] [-s|--play] [--timing] [-q|--quiet] [--ini=<file>] [--logo=<file>] [--cut=<file>] [--output=<file>] [--selftest=<int>] <file> [<file>]

  -h, --help                Display syntax
  -w, --debugwindow         Show debug window
  -n, --playnice            Slows detection down
  --zpcut                   Outputs a ZoomPlayer cutlist
  --zpchapter               Outputs a ZoomPlayer chapter file
  --videoredo               Outputs a VideoRedo cutlist
  --csvout                  Outputs a csv of the frame array
  --quality                 Outputs a csv of false detection segments
  --plist                   Outputs a mac-style plist for addition to an EyeTV archive as the 'markers' property
  -m, --demux               Demux the input into elementary streams
  -p, --pid=<string>        The PID of the video in the TS
  -t, --ts                  The input file is a Transport Stream
  -d, --detectmethod=<int>  An integer sum of the detection methods to use
  -v, --verbose=<int>       Verbose level
  -u, --dump=<int>          Dump the cutscene at this frame number
  -s, --play                Play the video
  --timing                  Dump the timing into a file
  -q, --quiet               Not output logging to the console window
  --ini=<file>              Ini file to use
  --logo=<file>             Logo file to use
  --cut=<file>              CutScene file to use
  --output=<file>           Folder to use for all output files
  --selftest=<int>          Execute a selftest
  <file>                    Input file
  <file>                    Output folder for cutlist

Detection methods available:
          1 - Black Frame
          2 - Logo
          4 - Scene Change
          8 - Resolution Change
         16 - Closed Captions
         32 - Aspect Ratio
         64 - Silence
        128 - CutScenes
        255 - USE ALL AVAILABLE

Errors:
ComSkip: excess option 20160512\
ComSkip: unexpected argument "\[20160513-0000\].mpg"
OpenELEC:~/dvr/Bones # comskip "Bones S11E15 20160512 \[20160513-0000\].mpg"
Comskip 0.93i.000, made using avcodec
The commandline used was:
comskip.bin --ini=/storage/.kodi/addons/tools.comskip/etc/comskip.ini Bones S11E15 20160512 \[20160513-0000\].mpg

Usage:
  comskip  [-h|--help] [-w|--debugwindow] [-n|--playnice] [--zpcut] [--zpchapter] [--videoredo] [--csvout] [--quality] [--plist] [-m|--demux] [-p|--pid=<string>] [-t|--ts] [-d|--detectmethod=<int>] [-v|--verbose=<int>] [-u|--dump=<int>] [-s|--play] [--timing] [-q|--quiet] [--ini=<file>] [--logo=<file>] [--cut=<file>] [--output=<file>] [--selftest=<int>] <file> [<file>]

  -h, --help                Display syntax
  -w, --debugwindow         Show debug window
  -n, --playnice            Slows detection down
  --zpcut                   Outputs a ZoomPlayer cutlist
  --zpchapter               Outputs a ZoomPlayer chapter file
  --videoredo               Outputs a VideoRedo cutlist
  --csvout                  Outputs a csv of the frame array
  --quality                 Outputs a csv of false detection segments
  --plist                   Outputs a mac-style plist for addition to an EyeTV archive as the 'markers' property
  -m, --demux               Demux the input into elementary streams
  -p, --pid=<string>        The PID of the video in the TS
  -t, --ts                  The input file is a Transport Stream
  -d, --detectmethod=<int>  An integer sum of the detection methods to use
  -v, --verbose=<int>       Verbose level
  -u, --dump=<int>          Dump the cutscene at this frame number
  -s, --play                Play the video
  --timing                  Dump the timing into a file
  -q, --quiet               Not output logging to the console window
  --ini=<file>              Ini file to use
  --logo=<file>             Logo file to use
  --cut=<file>              CutScene file to use
  --output=<file>           Folder to use for all output files
  --selftest=<int>          Execute a selftest
  <file>                    Input file
  <file>                    Output folder for cutlist

Detection methods available:
          1 - Black Frame
          2 - Logo
          4 - Scene Change
          8 - Resolution Change
         16 - Closed Captions
         32 - Aspect Ratio
         64 - Silence
        128 - CutScenes
        255 - USE ALL AVAILABLE

Errors:
ComSkip: excess option 20160512
ComSkip: unexpected argument "\[20160513-0000\].mpg"
OpenELEC:~/dvr/Bones # comskip "Bones S11E15 20160512 [20160513-0000].mpg"
Comskip 0.93i.000, made using avcodec
The commandline used was:
comskip.bin --ini=/storage/.kodi/addons/tools.comskip/etc/comskip.ini Bones S11E15 20160512 [20160513-0000].mpg

Usage:
  comskip  [-h|--help] [-w|--debugwindow] [-n|--playnice] [--zpcut] [--zpchapter] [--videoredo] [--csvout] [--quality] [--plist] [-m|--demux] [-p|--pid=<string>] [-t|--ts] [-d|--detectmethod=<int>] [-v|--verbose=<int>] [-u|--dump=<int>] [-s|--play] [--timing] [-q|--quiet] [--ini=<file>] [--logo=<file>] [--cut=<file>] [--output=<file>] [--selftest=<int>] <file> [<file>]

  -h, --help                Display syntax
  -w, --debugwindow         Show debug window
  -n, --playnice            Slows detection down
  --zpcut                   Outputs a ZoomPlayer cutlist
  --zpchapter               Outputs a ZoomPlayer chapter file
  --videoredo               Outputs a VideoRedo cutlist
  --csvout                  Outputs a csv of the frame array
  --quality                 Outputs a csv of false detection segments
  --plist                   Outputs a mac-style plist for addition to an EyeTV archive as the 'markers' property
  -m, --demux               Demux the input into elementary streams
  -p, --pid=<string>        The PID of the video in the TS
  -t, --ts                  The input file is a Transport Stream
  -d, --detectmethod=<int>  An integer sum of the detection methods to use
  -v, --verbose=<int>       Verbose level
  -u, --dump=<int>          Dump the cutscene at this frame number
  -s, --play                Play the video
  --timing                  Dump the timing into a file
  -q, --quiet               Not output logging to the console window
  --ini=<file>              Ini file to use
  --logo=<file>             Logo file to use
  --cut=<file>              CutScene file to use
  --output=<file>           Folder to use for all output files
  --selftest=<int>          Execute a selftest
  <file>                    Input file
  <file>                    Output folder for cutlist

Detection methods available:
          1 - Black Frame
          2 - Logo
          4 - Scene Change
          8 - Resolution Change
         16 - Closed Captions
         32 - Aspect Ratio
         64 - Silence
        128 - CutScenes
        255 - USE ALL AVAILABLE

Errors:
ComSkip: excess option 20160512
ComSkip: unexpected argument "[20160513-0000].mpg"
OpenELEC:~/dvr/Bones # comskip Bones\ S11E15\ 20160512\ \[20160513-0000\].mpg
Comskip 0.93i.000, made using avcodec
The commandline used was:
comskip.bin --ini=/storage/.kodi/addons/tools.comskip/etc/comskip.ini Bones S11E15 20160512 [20160513-0000].mpg

Usage:
  comskip  [-h|--help] [-w|--debugwindow] [-n|--playnice] [--zpcut] [--zpchapter] [--videoredo] [--csvout] [--quality] [--plist] [-m|--demux] [-p|--pid=<string>] [-t|--ts] [-d|--detectmethod=<int>] [-v|--verbose=<int>] [-u|--dump=<int>] [-s|--play] [--timing] [-q|--quiet] [--ini=<file>] [--logo=<file>] [--cut=<file>] [--output=<file>] [--selftest=<int>] <file> [<file>]

  -h, --help                Display syntax
  -w, --debugwindow         Show debug window
  -n, --playnice            Slows detection down
  --zpcut                   Outputs a ZoomPlayer cutlist
  --zpchapter               Outputs a ZoomPlayer chapter file
  --videoredo               Outputs a VideoRedo cutlist
  --csvout                  Outputs a csv of the frame array
  --quality                 Outputs a csv of false detection segments
  --plist                   Outputs a mac-style plist for addition to an EyeTV archive as the 'markers' property
  -m, --demux               Demux the input into elementary streams
  -p, --pid=<string>        The PID of the video in the TS
  -t, --ts                  The input file is a Transport Stream
  -d, --detectmethod=<int>  An integer sum of the detection methods to use
  -v, --verbose=<int>       Verbose level
  -u, --dump=<int>          Dump the cutscene at this frame number
  -s, --play                Play the video
  --timing                  Dump the timing into a file
  -q, --quiet               Not output logging to the console window
  --ini=<file>              Ini file to use
  --logo=<file>             Logo file to use
  --cut=<file>              CutScene file to use
  --output=<file>           Folder to use for all output files
  --selftest=<int>          Execute a selftest
  <file>                    Input file
  <file>                    Output folder for cutlist

Detection methods available:
          1 - Black Frame
          2 - Logo
          4 - Scene Change
          8 - Resolution Change
         16 - Closed Captions
         32 - Aspect Ratio
         64 - Silence
        128 - CutScenes
        255 - USE ALL AVAILABLE

Errors:
ComSkip: excess option 20160512
ComSkip: unexpected argument "[20160513-0000].mpg"
OpenELEC:~/dvr/Bones #

Post Reply