Re: [Freevo-cvslog] freevo/src/video mplayer.py,1.26,1.27 videoitem.py,1.20,1.21

2003-03-17 Thread Aubin Paul
On Mon, Mar 17, 2003 at 08:57:37PM +0100, Dirk Meyer wrote:
> Play has a parameter arg. Set args to '-ss xxx' and it should
> work. BTW, how does this work for you. For avis setting the time works
> almost perfect, for mpg2 (== DVD) it's a mess. I started mplayer with
> -ss 15:00 and it started at time 21:00.

Oh, I did it somewhat differently; but I can change it if I did it the
"wrong" way. However, the other issue I had was that I added a submenu
for playing the subitems of an XML file, so I want to be able to
specify the filename to play. 

I haven't tried with DVDs because I don't have a rom drive; I don't
know how exact it'll be because it's really up to mplayer to jump to
the right spot. 

AVI's work fine  though; it might be a removable media issue.


---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog


[Freevo-cvslog] freevo/src/video mplayer.py,1.26,1.27 videoitem.py,1.20,1.21

2003-03-17 Thread outlyer
Update of /cvsroot/freevo/freevo/src/video
In directory sc8-pr-cvs1:/tmp/cvs-serv6841

Modified Files:
mplayer.py videoitem.py 
Log Message:
Some changes for the bookmarks
o videoitem.py - Added bookmark menu, bookmark "parser" and menu generation,
haven't figured out how to pass the timecode to mplayer though. I tried
setting mplayer_options, but self.play seems to just ignore them. I don't
know how to pass anything to self.play either. ARGH.
o mplayer.py - commented out two extraneous prints.




Index: mplayer.py
===
RCS file: /cvsroot/freevo/freevo/src/video/mplayer.py,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** mplayer.py  17 Mar 2003 16:34:33 -  1.26
--- mplayer.py  17 Mar 2003 18:54:44 -  1.27
***
*** 10,13 
--- 10,21 
  # ---
  # $Log$
+ # Revision 1.27  2003/03/17 18:54:44  outlyer
+ # Some changes for the bookmarks
+ # o videoitem.py - Added bookmark menu, bookmark "parser" and menu generation,
+ # haven't figured out how to pass the timecode to mplayer though. I tried
+ # setting mplayer_options, but self.play seems to just ignore them. I 
don't
+ # know how to pass anything to self.play either. ARGH.
+ # o mplayer.py - commented out two extraneous prints.
+ #
  # Revision 1.26  2003/03/17 16:34:33  outlyer
  # Added preliminary movie bookmarks (i.e. places to jump to on next play)
***
*** 385,393 
  return TRUE
  else:
- print self.item
  self.stop()
  self.thread.item = None
  rc.app = None
- print self.item
  return self.item.eventhandler(event)
  
--- 393,399 

Index: videoitem.py
===
RCS file: /cvsroot/freevo/freevo/src/video/videoitem.py,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** videoitem.py16 Mar 2003 19:28:05 -  1.20
--- videoitem.py17 Mar 2003 18:54:45 -  1.21
***
*** 10,13 
--- 10,21 
  # ---
  # $Log$
+ # Revision 1.21  2003/03/17 18:54:45  outlyer
+ # Some changes for the bookmarks
+ # o videoitem.py - Added bookmark menu, bookmark "parser" and menu generation,
+ # haven't figured out how to pass the timecode to mplayer though. I tried
+ # setting mplayer_options, but self.play seems to just ignore them. I 
don't
+ # know how to pass anything to self.play either. ARGH.
+ # o mplayer.py - commented out two extraneous prints.
+ #
  # Revision 1.20  2003/03/16 19:28:05  dischi
  # Item has a function getattr to get the attribute as string
***
*** 124,128 
  
  self.filename = filename
- 
  self.name= util.getname(filename)
  
--- 132,135 
***
*** 213,221 
  return a list of possible actions on this item.
  """
- 
  items = [ (self.play, 'Play'), (self.settings, 'Change play settings') ]
  if self.variants:
  items += [ (self.show_variants, 'Show variants') ]
! 
  # show DVD/VCD title menu for DVDs, but only when we aren't in a
  # submenu of a such a menu already
--- 220,227 
  return a list of possible actions on this item.
  """
  items = [ (self.play, 'Play'), (self.settings, 'Change play settings') ]
  if self.variants:
  items += [ (self.show_variants, 'Show variants') ]
! 
  # show DVD/VCD title menu for DVDs, but only when we aren't in a
  # submenu of a such a menu already
***
*** 226,229 
--- 232,242 
  if self.mode == 'vcd':
  items += [( self.dvd_vcd_title_menu, 'VCD title list' )]
+ for m in self.subitems:
+ # Allow user to watch one of the subitems instead of always both
+ items += [( self.play, 'Play %s' % (m.filename))]
+ if os.path.exists(util.get_bookmarkfile(m.filename)):
+ myfilename = util.get_bookmarkfile(m.filename)
+ self.current_subitem = myfilename
+ items += [( self.bookmark_menu, 'Bookmark list %s' % 
(myfilename))]
  return items
  
***
*** 350,353 
--- 363,392 
  menuw.hide()
  self.video_player.play('', mplayer_options, self, 'dvdnav')
+ 
+ def bookmark_menu(self,arg=None, menuw=None):
+ """
+ Bookmark list
+ """
+ bookmarkfile = self.current_subitem
+ items = []
+ m = open(bookmarkfile,'r')
+