[mythtv-users] lossless_cut errors out

Daniel Neher daniel.neher at gmail.com
Fri Oct 3 09:14:06 UTC 2014


Hello all,

I'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.
My command is as follows:

user at ubuntu:~$ lossless_cut -f /media/TV/1021_20141002000000.mpg -m
/home/user/Downloads/

Traceback (most recent call last):
  File "/usr/share/lossless_cut/lossless_cut.py", line 1825, in <module>
    LOSSLESS_CUT.cut_video_file()
  File "/usr/share/lossless_cut/lossless_cut.py", line 502, in
cut_video_file
    self._collect_metadate()
  File "/usr/share/lossless_cut/lossless_cut.py", line 535, in
_collect_metadate
    self.mythtvinterface.get_recorded_data()
  File "/usr/share/lossless_cut/importcode/mythtvinterface.py", line 372,
in get_recorded_data
    self._get_fps_and_more()
  File "/usr/share/lossless_cut/importcode/mythtvinterface.py", line 677,
in _get_fps_and_more
    firstframe = [seek.mark for seek in self.recorded.seek
  File "/usr/lib/python2.7/dist-packages/MythTV/database.py", line 491, in
__iter__
    self._populate()
  File "/usr/lib/python2.7/dist-packages/MythTV/database.py", line 555, in
_populate
    self._refdat)
  File "/usr/lib/python2.7/dist-packages/MythTV/_conn_mysqldb.py", line 71,
in execute
    raise MythDBError(MythDBError.DB_RAW, e.args)
MythTV.exceptions.MythDBError: MySQL error: not enough arguments for format
string



Here is when I use the -b option (can't use -B as no video is being
produced)
user at ubuntu:~$ ll_report -f /media/TV/1021_20141002000000.mpg -b
Traceback (most recent call last):
  File "/usr/share/lossless_cut/ll_report.py", line 697, in <module>
    LL_REPORT.ll_report()
  File "/usr/share/lossless_cut/ll_report.py", line 339, in ll_report
    self.mythtvinterface.get_recorded_data()
  File "/usr/share/lossless_cut/importcode/mythtvinterface.py", line 372,
in get_recorded_data
    self._get_fps_and_more()
  File "/usr/share/lossless_cut/importcode/mythtvinterface.py", line 677,
in _get_fps_and_more
    firstframe = [seek.mark for seek in self.recorded.seek
  File "/usr/lib/python2.7/dist-packages/MythTV/database.py", line 491, in
__iter__
    self._populate()
  File "/usr/lib/python2.7/dist-packages/MythTV/database.py", line 555, in
_populate
    self._refdat)
  File "/usr/lib/python2.7/dist-packages/MythTV/_conn_mysqldb.py", line 71,
in execute
    raise MythDBError(MythDBError.DB_RAW, e.args)
MythTV.exceptions.MythDBError: MySQL error: not enough arguments for format
string



When I run lossless_cut with the --test option it seems to work great:
user at ubuntu:~$ lossless_cut -f /media/TV/1021_20141002000000.mpg -m
/home/user/Downloads/ --test

These are the variables and options to be used when performing a
loss less cut of a MythTV recorded video:

  Lossless Cut version:         0.2.2

  MythTV recorded source video: "/media/TV/1021_20141002000000.mpg"

  The Log file location:        "/tmp"
  The Log file:                 "/tmp/1021_20141002000000.log"

  Move/Save path for mkv file:  "/home/user/Downloads/"
  Working directory path:       "/tmp/lossless_cut"

  Add metadata to mkv file:     "True"
  Delete the mpg file:          "False"
  Keep the log file:            "False"
  Remove subtitles and
  secondary audio tracks:       "False"
  Test the script dependencies: "True"

  Movie metadata format:        "%(title)s (%(releasedate)s)"
  TV Series metadata format:    "%(series)s -
S%(season_num)02dE%(episode_num)02d - %(episode)s"

  Utilities for extracting subtitles:
    mythtvccextractor args:     "--verbose -i "%(recordedfile)s""
    ccextractor args:           "-teletext -datapid %(subid)s -tpage
%(subpage)s --defaultcolor "#ffd700" -utf8 "%(recordedfile)s" -o
"%(sub_filename)s""

  Mythvidexport format args:
    Television:                 "Review/%TITLE% - S%SEASONPAD%E%EPISODEPAD%
- %SUBTITLE%"
    Movie:                      "Review/%TITLE% (%YEAR%)"
    Generic:                    "Review/%TITLE%: %SUBTITLE%"

  Concert Cuts format args:
    File export or move name:   "False"


Congratulations! All script dependencies have been satisfied.
You are ready to perform loss less cuts on MythTV recorded videos.



Does anyone know whats going on? Thanks a ton all! -Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20141003/a89bcaa4/attachment.html>


More information about the mythtv-users mailing list