当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 5 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : mplayer里快捷键怎样实现的??
帖子发表于 : 2008-07-30 22:04 

注册: 2008-06-09 23:50
帖子: 4
送出感谢: 0 次
接收感谢: 0 次
p键暂停>下一首之类的这些快捷键怎样实现的
谢谢 :lol: :lol:


页首
 用户资料  
 
2 楼 
 文章标题 :
帖子发表于 : 2008-08-01 8:27 

注册: 2008-01-07 16:39
帖子: 204
送出感谢: 0 次
接收感谢: 0 次
摘自 mplayer man page
代码:
keyboard control
       <- and ->
            Seek backward/forward 10 seconds.
       up and down
            Seek forward/backward 1 minute.
       pgup and pgdown
            Seek forward/backward 10 minutes.
       [ and ]
            Decrease/increase current playback speed by 10%.
       { and }
            Halve/double current playback speed.
       backspace
            Reset playback speed to normal.
       < and >
            Go backward/forward in the playlist.
       ENTER
            Go forward in the playlist, even over the end.
       HOME and END
            next/previous playtree entry in the parent list
       INS and DEL (ASX playlist only)
            next/previous alternative source.
       p / SPACE
            Pause (pressing again unpauses).
       .
            Step forward.  Pressing once will pause movie,  every  con-
            secutive  press  will play one frame and then go into pause
            mode again (any other key unpauses).
       q / ESC
            Stop playing and quit.
       + and -
            Adjust audio delay by +/- 0.1 seconds.
       / and *
            Decrease/increase volume.
       9 and 0
            Decrease/increase volume.
       ( and )
            Adjust audio balance in favor of left/right channel.
       m
            Mute sound.
       _ (MPEG-TS, AVI and libavformat only)
            Cycle through the available video tracks.
       # (DVD, MPEG, Matroska, AVI and libavformat only)
            Cycle through the available audio tracks.
       TAB (MPEG-TS only)
            Cycle through the available programs.
       f
            Toggle fullscreen (also see -fs).
       T
            Toggle stay-on-top (also see -ontop).
       w and e
            Decrease/increase pan-and-scan range.
       o
            Toggle OSD states: none / seek / seek  +  timer  /  seek  +
            timer + total time.
       d
            Toggle  frame  dropping  states: none / skip display / skip
            decoding (see -framedrop and -hardframedrop).
       v
            Toggle subtitle visibility.
       j
            Cycle through the available subtitles.
       y and g
            Step forward/backward in the subtitle list.
       F
            Toggle displaying "forced subtitles".
       a
            Toggle subtitle alignment: top / middle / bottom.
       x and z
            Adjust subtitle delay by +/- 0.1 seconds.
       r and t
            Move subtitles up/down.
       i (-edlout mode only)
            Set start or end of an EDL skip and write  it  out  to  the
            given file.
       s (-vf screenshot only)
            Take a screenshot.
       S (-vf screenshot only)
            Start/stop taking screenshots.
       I
            Show filename on the OSD.
       ! and @
            Seek to the beginning of the previous/next chapter.
       D (-vo xvmc, -vf yadif, -vf kerndeint only)
            Activate/deactivate deinterlacer.

       (The  following keys are valid only when using a hardware accel-
       erated video output (xv, (x)vidix, (x)mga,  etc),  the  software
       equalizer (-vf eq or -vf eq2) or hue filter (-vf hue).)

       1 and 2
            Adjust contrast.
       3 and 4
            Adjust brightness.
       5 and 6
            Adjust hue.
       7 and 8
            Adjust saturation.

       (The  following keys are valid only when using the quartz or ma-
       cosx video output driver.)

       command + 0
            Resize movie window to half its original size.
       command + 1
            Resize movie window to its original size.
       command + 2
            Resize movie window to double its original size.
       command + f
            Toggle fullscreen (also see -fs).
       command + [ and command + ]
            Set movie window alpha.

       (The following keys are valid only when using the sdl video out-
       put driver.)

       c
            Cycle through available fullscreen modes.
       n
            Restore original mode.

       (The following keys are valid if you have a keyboard with multi-
       media keys.)

       PAUSE
            Pause.
       STOP
            Stop playing and quit.
       PREVIOUS and NEXT
            Seek backward/forward 1 minute.

       (The following keys are only valid if GUI support is compiled in
       and will take precedence over the keys defined above.)

       ENTER
            Start playing.
       ESC
            Stop playing.
       l
            Load file.
       t
            Load subtitle.
       c
            Open skin browser.
       p
            Open playlist.
       r
            Open preferences.

       (The  following  keys  are only valid if you compiled with TV or
       DVB input support and will take precedence over the keys defined
       above.)

       h and k
            Select previous/next channel.
       n
            Change norm.
       u
            Change channel list.

       (The  following  keys are only valid if you compiled with dvdnav
       support: They are used to navigate the menus.)

       keypad 8
            Select button up.
       keypad 2
            Select button down.
       keypad 4
            Select button left.
       keypad 6
            Select button right.
       keypad 5
            Return to main menu.
       keypad 7
            Return to nearest menu (the order of preference  is:  chap-
            ter->title->root).
       keypad ENTER
            Confirm choice.

       (The  following  keys  are only valid if teletext support is en-
       abled during compilation: They are used for controlling TV tele-
       text.)

       X    Switch teletext on/off.
       Q and W
            Go to next/prev teletext page.


       mouse control
              button 3 and button 4
                   Seek backward/forward 1 minute.
              button 5 and button 6
                   Decrease/increase volume.

       joystick control
              left and right
                   Seek backward/forward 10 seconds.
              up and down
                   Seek forward/backward 1 minute.
              button 1
                   Pause.
              button 2
                   Toggle OSD states: none / seek / seek + timer / seek
                   + timer + total time.
              button 3 and button 4
                   Decrease/increase volume.


页首
 用户资料  
 
3 楼 
 文章标题 :
帖子发表于 : 2008-08-03 19:58 
头像

注册: 2007-03-13 11:23
帖子: 1343
送出感谢: 0 次
接收感谢: 0 次
代码没有看,我想如果是我的话肯定是ncurse库来干
或是你最简单的按键的话getch也行


_________________
"We are all in the mud, but some of us are looking at the stars." (Oscar Wilde)
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/


页首
 用户资料  
 
4 楼 
 文章标题 :
帖子发表于 : 2008-08-04 9:47 

注册: 2008-01-07 16:39
帖子: 204
送出感谢: 0 次
接收感谢: 0 次
kofshower 写道:
代码没有看,我想如果是我的话肯定是ncurse库来干
或是你最简单的按键的话getch也行

代码没有看?这明明就是在说mplayer的按键,哪还需要什么库。多媒体键盘按键,游戏手柄,遥控器,都是直接支持的。


页首
 用户资料  
 
5 楼 
 文章标题 :
帖子发表于 : 2008-08-04 13:08 
头像

注册: 2007-03-13 11:23
帖子: 1343
送出感谢: 0 次
接收感谢: 0 次
哦,看完了,是建立不同设备的文件描述符数组然后去select它.之前初始化的时候将不同设备的按键映射成了相应的事件.


_________________
"We are all in the mud, but some of us are looking at the stars." (Oscar Wilde)
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 5 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 1 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译