From: Paul S. <pa...@si...> - 2004-12-20 19:01:53
|
Over the weekend someone came by with a CD with .avi and subtitles. Freevo correctly displayed the subtitles, good technical test succeeded however now I want to get rid of them... So I looked around the 1.5.2 code and found two minor patches that make life much more pleasurable. patch event.py so the video_events read: VIDEO_EVENTS = { 'PLAY' : PLAY, 'PAUSE' : PAUSE, 'STOP' : STOP, 'EXIT' : STOP, 'UP' : PLAYLIST_PREV, 'DOWN' : PLAYLIST_NEXT, 'CH+' : PLAYLIST_PREV, 'CH-' : PLAYLIST_NEXT, 'LEFT' : Event(SEEK, arg=-60), 'RIGHT' : Event(SEEK, arg=60), 'REW' : Event(SEEK, arg=-10), 'FFWD' : Event(SEEK, arg=10), 'MENU' : MENU, 'DISPLAY' : TOGGLE_OSD, 'SUBTITLE' : VIDEO_NEXT_SUBTITLE, 'REC' : STORE_BOOKMARK, '0' : VIDEO_MANUAL_SEEK } and patch mplayer.py in video/plugins to read: if p.eventhandler(event): return True if event==VIDEO_NEXT_SUBTITLE: self.app.write('sub_visibility\n') return True if event == VIDEO_MANUAL_SEEK: 4 lines gives more usability.... -- Paul Sijben mailto:pa...@si... Amersfoort, NL http://www.sijben.net tel:+31 334557522 fax:+31 33 4557523 |