Hi, i wanted to do this since a while. I simple osd menu. Here is the first hack wich consist of 3 menus. A generic one where each entry is bound to a command. A 'jump to' menu to choose another entry in the playlist. And a fileselector to load a file or a playlist. All this is very primitive atm but it's usable :) To use it you need to add a few lines to your input.conf like this : 8 menu up 5 menu down 4 menu cancel 6 menu ok Then run mplayer -menu some_movies .... The menu will show up when you press any of the keys you choose. Albeu
Alban Bedel writes:
i wanted to do this since a while. I simple osd menu. Here is the first hack wich consist of 3 menus. A generic one where each entry is bound to a command. A 'jump to' menu to choose another entry in the playlist. And a fileselector to load a file or a playlist. All this is very primitive atm but it's usable :) To use it you need to add a few lines to your input.conf like this :
8 menu up 5 menu down 4 menu cancel 6 menu ok
Then run mplayer -menu some_movies .... The menu will show up when you press any of the keys you choose.
Very cool stuff, I like this. It does not compile with --enable-gui, though, are gui and menu mutually exclusive? libmpcodecs/libmpcodecs.a(vf_menu.o): In function `vf_menu_read_cmd': vf_menu.o(.text+0x56): undefined reference to `menu_read_cmd' vf_menu.o(.text+0x83): undefined reference to `menu_read_cmd' vf_menu.o(.text+0xb8): undefined reference to `menu_read_cmd' vf_menu.o(.text+0xe3): undefined reference to `menu_read_cmd' vf_menu.o(.text+0x10d): undefined reference to `menu_close' libmpcodecs/libmpcodecs.a(vf_menu.o): In function `put_image': vf_menu.o(.text+0x337): undefined reference to `menu_draw' libmpcodecs/libmpcodecs.a(vf_menu.o): In function `vf_menu_set_menu': vf_menu.o(.text+0x37b): undefined reference to `menu_open' libmpcodecs/libmpcodecs.a(vf_menu.o): In function `open': vf_menu.o(.text+0x401): undefined reference to `menu_open' collect2: ld returned 1 exit status make: *** [mplayer] Error 1 Then, when we start with -menu and no file name we probably should not exit with a help screen but run the menu file picker, but this is further down the road.. Diego
Then run mplayer -menu some_movies .... Kewl stuff!! Can't wait to see it working. I'd suggest the file loader should support jumping on file depending on key pressed, so when I'm in loader I press backspace for prev dir, press "g" and the selector jumps on the first file which name starts with "g", etc..
Multifile support is buggy here as well as everywhere else :) (second loaded file doesn't get command line options, -vo, etc) -- Gabucino / Worshipping Niedermayer 4ever / "Do you always look at it encoded?" (C) D. R. F.
Hi Gabucino, on Wed, 24 Jul 2002 06:53:17 +0200 you wrote:
Then run mplayer -menu some_movies .... Kewl stuff!! Can't wait to see it working. I'd suggest the file loader should support jumping on file depending on key pressed, so when I'm in loader I press backspace for prev dir, press "g" and the selector jumps on the first file which name starts with "g", etc..
Sound like a good idea but ... I want to have this fully usable without keyboard (ie. with a remote or smthg like this), that's why i stuck to a minimal number of actions. To achive what you describe that would need to 'grab' the keyboard wich requier a hack in the input code. And then hardcode the key/actions bindings when the user enter this mode. Any suggestions are welcome.
Multifile support is buggy here as well as everywhere else :) (second loaded file doesn't get command line options, -vo, etc)
You need to find and disable the Gabucino detection wich trigger some special hidden bugs, writed in the sole purpose of having you to report them ;) Albeu
On Wed, Jul 24, 2002 at 05:22:47PM +0200, Alban Bedel wrote:
Hi Gabucino,
on Wed, 24 Jul 2002 06:53:17 +0200 you wrote:
Then run mplayer -menu some_movies .... Kewl stuff!! Can't wait to see it working. I'd suggest the file loader should support jumping on file depending on key pressed, so when I'm in loader I press backspace for prev dir, press "g" and the selector jumps on the first file which name starts with "g", etc..
Sound like a good idea but ... I want to have this fully usable without keyboard (ie. with a remote or smthg like this), that's why i stuck to a minimal number of actions. To achive what you describe that would need to 'grab' the keyboard wich requier a hack in the input code. And then hardcode the key/actions bindings when the user enter this mode. Any suggestions are welcome.
Perhaps mplayer's keybinding system should be enhanced, so that you can bind actions for certain states that override the default action for a button. This would be really nice for use with dvdnav too, if anyone ever cares about that. Rich
Hi D Richard Felker III, on Wed, 24 Jul 2002 13:12:43 -0400 you wrote:
On Wed, Jul 24, 2002 at 05:22:47PM +0200, Alban Bedel wrote:
Hi Gabucino,
on Wed, 24 Jul 2002 06:53:17 +0200 you wrote:
Then run mplayer -menu some_movies .... Kewl stuff!! Can't wait to see it working. I'd suggest the file loader should support jumping on file depending on key pressed, so when I'm in loader I press backspace for prev dir, press "g" and the selector jumps on the first file which name starts with "g", etc..
Sound like a good idea but ... I want to have this fully usable without keyboard (ie. with a remote or smthg like this), that's why i stuck to a minimal number of actions. To achive what you describe that would need to 'grab' the keyboard wich requier a hack in the input code. And then hardcode the key/actions bindings when the user enter this mode. Any suggestions are welcome.
Perhaps mplayer's keybinding system should be enhanced, so that you can bind actions for certain states that override the default action for a button. This would be really nice for use with dvdnav too, if anyone ever cares about that.
That's a good idea, I think i will go for that. Albeu
participants (4)
-
Alban Bedel -
D Richard Felker III -
Diego Biurrun -
Gabucino