diff --git a/mythplugins/mytharchive/mythburn/scripts/mythburn.py b/mythplugins/mytharchive/mythburn/scrip
index f0c96ea..335c1a5 100755
|
a
|
b
|
import ImageFont |
| 88 | 88 | import ImageColor |
| 89 | 89 | import unicodedata |
| 90 | 90 | import time |
| 91 | | import datetime |
| 92 | 91 | import tempfile |
| 93 | 92 | from fcntl import ioctl |
| 94 | 93 | import CDROM |
| 95 | 94 | from shutil import copy |
| 96 | 95 | |
| 97 | 96 | import MythTV |
| | 97 | from MythTV import datetime |
| 98 | 98 | from MythTV.altdict import OrdDict |
| 99 | 99 | |
| 100 | 100 | # media types (should match the enum in mytharchivewizard.h) |
| … |
… |
def runMythtranscode(chanid, starttime, destination, usecutlist, localfile): |
| 1696 | 1696 | """Use mythtranscode to cut commercials and/or clean up an mpeg2 file""" |
| 1697 | 1697 | |
| 1698 | 1698 | rec = DB.searchRecorded(chanid=chanid, starttime=starttime).next() |
| | 1699 | starttime = rec.starttime.utcisoformat() |
| 1699 | 1700 | cutlist = rec.markup.getcutlist() |
| 1700 | 1701 | |
| 1701 | 1702 | cutlist_s = "" |
| … |
… |
def encodeNuvToMPEG2(chanid, starttime, mediafile, destvideofile, folder, profil |
| 2134 | 2135 | qdiff = value |
| 2135 | 2136 | |
| 2136 | 2137 | if chanid != -1: |
| | 2138 | utcstarttime = datetime.duck(starttime).utcisoformat() |
| 2137 | 2139 | if (usecutlist == True): |
| 2138 | 2140 | PID=os.spawnlp(os.P_NOWAIT, "mythtranscode", "mythtranscode", |
| 2139 | 2141 | '--profile', '27', |
| 2140 | 2142 | '--chanid', chanid, |
| 2141 | | '--starttime', starttime, |
| | 2143 | '--starttime', utcstarttime, |
| 2142 | 2144 | '--honorcutlist', |
| 2143 | 2145 | '--fifodir', folder) |
| 2144 | 2146 | write("mythtranscode started (using cut list) PID = %s" % PID) |
| … |
… |
def encodeNuvToMPEG2(chanid, starttime, mediafile, destvideofile, folder, profil |
| 2146 | 2148 | PID=os.spawnlp(os.P_NOWAIT, "mythtranscode", "mythtranscode", |
| 2147 | 2149 | '--profile', '27', |
| 2148 | 2150 | '--chanid', chanid, |
| 2149 | | '--starttime', starttime, |
| | 2151 | '--starttime', utcstarttime, |
| 2150 | 2152 | '--fifodir', folder) |
| 2151 | 2153 | |
| 2152 | 2154 | write("mythtranscode started PID = %s" % PID) |