Tuning Freevo: display feedback when manually seeking

The­re is a nice featu­re in Fre­evo that allows one to seek the cur­ren­tly play­ing movie to any given posi­tion. One just needs to press 0 on the remo­te con­trol, then enter to which minu­te of the movie they wish to jump and press enter. For instan­ce, pres­sing 0,6,0,ENTER would fast for­ward the movie to the first hour. Unfor­tu­na­tel­ly, the­re is no visu­al feed­back whi­le pres­sing the­se keys. I tho­ught it would be nice to see „Seek to:” in mplay­er’s OSD when first pres­sed 0 and then see „Seek to: 6”, „Seek to: 60” whi­le pres­sing next buttons.

I mana­ged to do it in this way (sour­ce code edi­ting necessary):

1. Went to the /usr/lib/python2.4/site-packages/freevo/video/plugins directory.

2. Ope­ned up the mplay​er​.py file in text editor.

3. Found a line say­ing: def eventhandler(self, event, menuw=None):

4. Ten lines below def even­than­dler the­re is a line saying:

if event == VIDEO_MANUAL_SEEK:

5. After that line the­re is

rc.set_context('input')

just add that line:

self.app.write('osd_show_text "seek to: "\n')

below the rc.set_context line (self.app.write sho­uld be left ali­gned with tabs the same way rc.set_context is).

6. Fur­ther in the file the­re is a line saying:

self.seek = self.seek * 10 + int(event)

just add the line:

self.app.write('osd_show_text "seek to: ' + str(self.seek) + '"\n')

below the self​.seek line (self.app.write sho­uld be left ali­gned with tabs the same way self​.seek is).

7. Saved the file, restar­ted Fre­evo and voila!, it’s almost wor­king (I don’t know how to make it not disap­pe­ar after a second, but it does give visu­al feedback).