Author: duncan
Date: Mon Dec 4 15:30:49 2006
New Revision: 8691
Modified:
branches/rel-1/freevo/src/encodingcore.py
Log:
Fixed a problem caused by replacing mmpython and not checking this module
Modified: branches/rel-1/freevo/src/encodingcore.py
==============================================================================
--- branches/rel-1/freevo/src/encodingcore.py (original)
+++ branches/rel-1/freevo/src/encodingcore.py Mon Dec 4 15:30:49 2006
@@ -228,20 +228,24 @@
def _AnalyzeSource(self):
"""Find out some basic information about the source
- ATM we will blindly assume it's a dvdrom device or a disk dvd image,
if a chapter is given"""
+ ATM we will blindly assume it's a dvdrom device or a disk dvd image,
+ if a title (chapter) number is given.
+ """
_debug_('_AnalyzeSource(self)', 2)
if self.chapter:
self.sourcetype = "dvd"
#check some things, like length
- mmpython.disc.ifoparser.open(self.source)
- data = mmpython.disc.ifoparser.title(self.chapter)
- self.length = data[2]
+ _debug_('source=\"%s\" chapter=%s' % (self.source, self.chapter))
+ dvddata = mmpython.parse(self.source)
+ dvdtitle = dvddata.tracks[self.chapter - 1]
+ self.length = dvdtitle['length']
_debug_("Video length: %s" % self.length)
#NI : maybe implement procedure to get resolution, handy for
scaling/manual cropping
self._CropDetect()
else:
data = mmpython.parse(self.source)
+ _debug_('source=\"%s\"' % (self.source))
self.sourcetype = data['type'].encode('latin1')
for f in dir(data):
print '%s: %s' % (f, eval('data["%s"]' % f))
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog