git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
allow gstreamer to signalize missing plugins to the gui (requires reconfiguring enigm...
[enigma2.git]
/
lib
/
python
/
Plugins
/
Extensions
/
DVDBurn
/
DVDTitle.py
diff --git
a/lib/python/Plugins/Extensions/DVDBurn/DVDTitle.py
b/lib/python/Plugins/Extensions/DVDBurn/DVDTitle.py
index 40aefafba552bb06b613689663fb2f4ae2f0ef99..1bfb3d646beeb58d658694e46165090eb6808ffd 100644
(file)
--- a/
lib/python/Plugins/Extensions/DVDBurn/DVDTitle.py
+++ b/
lib/python/Plugins/Extensions/DVDBurn/DVDTitle.py
@@
-9,7
+9,9
@@
class DVDTitle:
self.inputfile = ""
self.cutlist = [ ]
self.chaptermarks = [ ]
self.inputfile = ""
self.cutlist = [ ]
self.chaptermarks = [ ]
+ self.audiotracks = [ ]
self.timeCreate = None
self.timeCreate = None
+ self.sVideoType = -1
def addService(self, service):
from os import path
def addService(self, service):
from os import path
@@
-32,8
+34,6
@@
class DVDTitle:
self.length = info.getLength(service)
def produceFinalCuesheet(self):
self.length = info.getLength(service)
def produceFinalCuesheet(self):
- print "[produceFinalCuesheet] >>> ", self.inputfile, self.cuesheet
-
CUT_TYPE_IN = 0
CUT_TYPE_OUT = 1
CUT_TYPE_MARK = 2
CUT_TYPE_IN = 0
CUT_TYPE_OUT = 1
CUT_TYPE_MARK = 2
@@
-72,11
+72,15
@@
class DVDTitle:
reloc_pts = pts - last_in + accumulated_in
self.chaptermarks.append(reloc_pts)
reloc_pts = pts - last_in + accumulated_in
self.chaptermarks.append(reloc_pts)
- print "cutlist =", self.cutlist, "chaptermarks =", self.chaptermarks, "accumulated_in =", accumulated_in
-
if len(self.cutlist) > 1:
part = accumulated_in / (self.length*90000.0)
usedsize = int ( part * self.filesize )
if len(self.cutlist) > 1:
part = accumulated_in / (self.length*90000.0)
usedsize = int ( part * self.filesize )
- print "part=", part, "filesize=", self.filesize, "estimatedDiskspace=", usedsize
self.estimatedDiskspace = usedsize
self.length = accumulated_in / 90000
self.estimatedDiskspace = usedsize
self.length = accumulated_in / 90000
+
+ def produceAutoChapter(self, minutes):
+ if len(self.chaptermarks) < 1:
+ chapterpts = self.cutlist[0]
+ while chapterpts < self.length*90000:
+ chapterpts += 90000 * 60 * minutes
+ self.chaptermarks.append(chapterpts)