<div dir="ltr">Hello all,<br><br>I&#39;m trying to use lossless_cut to cut out commercials and drop the file that was cut into another directory. Every time I try to actually run it on a recording (with out the --test option) it errors.<br>My command is as follows:<br><br>user@ubuntu:~$ lossless_cut -f /media/TV/1021_20141002000000.mpg -m /home/user/Downloads/<br><br>Traceback (most recent call last):<br>  File &quot;/usr/share/lossless_cut/lossless_cut.py&quot;, line 1825, in &lt;module&gt;<br>    LOSSLESS_CUT.cut_video_file()<br>  File &quot;/usr/share/lossless_cut/lossless_cut.py&quot;, line 502, in cut_video_file<br>    self._collect_metadate()<br>  File &quot;/usr/share/lossless_cut/lossless_cut.py&quot;, line 535, in _collect_metadate<br>    self.mythtvinterface.get_recorded_data()<br>  File &quot;/usr/share/lossless_cut/importcode/mythtvinterface.py&quot;, line 372, in get_recorded_data<br>    self._get_fps_and_more()<br>  File &quot;/usr/share/lossless_cut/importcode/mythtvinterface.py&quot;, line 677, in _get_fps_and_more<br>    firstframe = [seek.mark for seek in self.recorded.seek<br>  File &quot;/usr/lib/python2.7/dist-packages/MythTV/database.py&quot;, line 491, in __iter__<br>    self._populate()<br>  File &quot;/usr/lib/python2.7/dist-packages/MythTV/database.py&quot;, line 555, in _populate<br>    self._refdat)<br>  File &quot;/usr/lib/python2.7/dist-packages/MythTV/_conn_mysqldb.py&quot;, line 71, in execute<br>    raise MythDBError(MythDBError.DB_RAW, e.args)<br>MythTV.exceptions.MythDBError: MySQL error: not enough arguments for format string<br><br><br><br>Here is when I use the -b option (can&#39;t use -B as no video is being produced)<br>user@ubuntu:~$ ll_report -f /media/TV/1021_20141002000000.mpg -b<br>Traceback (most recent call last):<br>  File &quot;/usr/share/lossless_cut/ll_report.py&quot;, line 697, in &lt;module&gt;<br>    LL_REPORT.ll_report()<br>  File &quot;/usr/share/lossless_cut/ll_report.py&quot;, line 339, in ll_report<br>    self.mythtvinterface.get_recorded_data()<br>  File &quot;/usr/share/lossless_cut/importcode/mythtvinterface.py&quot;, line 372, in get_recorded_data<br>    self._get_fps_and_more()<br>  File &quot;/usr/share/lossless_cut/importcode/mythtvinterface.py&quot;, line 677, in _get_fps_and_more<br>    firstframe = [seek.mark for seek in self.recorded.seek<br>  File &quot;/usr/lib/python2.7/dist-packages/MythTV/database.py&quot;, line 491, in __iter__<br>    self._populate()<br>  File &quot;/usr/lib/python2.7/dist-packages/MythTV/database.py&quot;, line 555, in _populate<br>    self._refdat)<br>  File &quot;/usr/lib/python2.7/dist-packages/MythTV/_conn_mysqldb.py&quot;, line 71, in execute<br>    raise MythDBError(MythDBError.DB_RAW, e.args)<br>MythTV.exceptions.MythDBError: MySQL error: not enough arguments for format string<br><br><br><br>When I run lossless_cut with the --test option it seems to work great:<br>user@ubuntu:~$ lossless_cut -f /media/TV/1021_20141002000000.mpg -m /home/user/Downloads/ --test<br><br>These are the variables and options to be used when performing a<br>loss less cut of a MythTV recorded video:<br><br>  Lossless Cut version:         0.2.2<br><br>  MythTV recorded source video: &quot;/media/TV/1021_20141002000000.mpg&quot;<br><br>  The Log file location:        &quot;/tmp&quot;<br>  The Log file:                 &quot;/tmp/1021_20141002000000.log&quot;<br><br>  Move/Save path for mkv file:  &quot;/home/user/Downloads/&quot;<br>  Working directory path:       &quot;/tmp/lossless_cut&quot;<br><br>  Add metadata to mkv file:     &quot;True&quot;<br>  Delete the mpg file:          &quot;False&quot;<br>  Keep the log file:            &quot;False&quot;<br>  Remove subtitles and<br>  secondary audio tracks:       &quot;False&quot;<br>  Test the script dependencies: &quot;True&quot;<br><br>  Movie metadata format:        &quot;%(title)s (%(releasedate)s)&quot;<br>  TV Series metadata format:    &quot;%(series)s - S%(season_num)02dE%(episode_num)02d - %(episode)s&quot;<br><br>  Utilities for extracting subtitles:<br>    mythtvccextractor args:     &quot;--verbose -i &quot;%(recordedfile)s&quot;&quot;<br>    ccextractor args:           &quot;-teletext -datapid %(subid)s -tpage %(subpage)s --defaultcolor &quot;#ffd700&quot; -utf8 &quot;%(recordedfile)s&quot; -o &quot;%(sub_filename)s&quot;&quot;<br><br>  Mythvidexport format args:<br>    Television:                 &quot;Review/%TITLE% - S%SEASONPAD%E%EPISODEPAD% - %SUBTITLE%&quot;<br>    Movie:                      &quot;Review/%TITLE% (%YEAR%)&quot;<br>    Generic:                    &quot;Review/%TITLE%: %SUBTITLE%&quot;<br><br>  Concert Cuts format args:<br>    File export or move name:   &quot;False&quot;<br><br><br>Congratulations! All script dependencies have been satisfied.<br>You are ready to perform loss less cuts on MythTV recorded videos.<br><br><br><br>Does anyone know whats going on? Thanks a ton all! -Dan<br></div>