Update of /cvsroot/freevo/freevo/src/util
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1379
Modified Files:
videothumb.py
Log Message:
handle mplayer TS, PES problems
Index: videothumb.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/util/videothumb.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** videothumb.py 2 May 2004 09:21:57 -0000 1.10
--- videothumb.py 23 Jun 2004 21:09:29 -0000 1.11
***************
*** 14,17 ****
--- 14,20 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.11 2004/06/23 21:09:29 dischi
+ # handle mplayer TS, PES problems
+ #
# Revision 1.10 2004/05/02 09:21:57 dischi
# better python code
***************
*** 97,100 ****
--- 100,104 ----
args = [ config.MPLAYER_CMD, videofile, imagefile ]
+
if pos != None:
args.append(str(pos))
***************
*** 153,157 ****
except IndexError:
try:
! position = str(int(mmpython.parse(filename).video[0].length / 2.0))
except:
# else arbitrary consider that file is 1Mbps and grab position at 10%
--- 157,165 ----
except IndexError:
try:
! mminfo = mmpython.parse(filename)
! position = str(int(mminfo.video[0].length / 2.0))
! if hasattr(mminfo, 'type'):
! if mminfo.type in ('MPEG-TS', 'MPEG-PES'):
! position = str(int(mminfo.video[0].length / 20.0))
except:
# else arbitrary consider that file is 1Mbps and grab position at 10%
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog