Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1195 connectés 

  FORUM HardWare.fr
  Linux et OS Alternatifs
  Multimédia

  [MPlayer] mapper ses propres raccourcis, la touche K

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[MPlayer] mapper ses propres raccourcis, la touche K

n°1230902
weed
Posté le 02-08-2010 à 23:28:08  profilanswer
 

Hello tout le monde,  
 
Je voulais tester le mapping des touches de maplyer, j'ai donc créer un fichier input.conf
 

Code :
  1. lucid@lucid-desktop:~/.mplayer$ ls -l
  2. total 8
  3. -rw-r--r-- 1 lucid lucid 44 2010-07-12 23:12 config
  4. -rw-r--r-- 1 lucid lucid 31 2010-08-02 23:13 input.conf
  5. lucid@lucid-desktop:~/.mplayer$ cat input.conf
  6. K echo "coucou" >> /tmp/coucou


 
malheuresuement, que je lis une vidéo et que j'appuie sur la touche K, je n'ai pas de fichier "coucou" dans /tmp.
Ou est ce que j'ai fauté ?


Message édité par weed le 02-08-2010 à 23:50:03
mood
Publicité
Posté le 02-08-2010 à 23:28:08  profilanswer
 

n°1230919
weed
Posté le 03-08-2010 à 08:45:54  profilanswer
 

Bon en fait, on peux peut être pas mapper la touche K car je ne l'a trouve pas avec l'option -input keylist
 

Code :
  1. lucid@lucid-desktop:~/.mplayer$ mplayer -input keylist
  2. SPACE
  3. SHARP
  4. ENTER
  5. TAB
  6. CTRL
  7. BS
  8. DEL
  9. INS
  10. HOME
  11. END
  12. PGUP
  13. PGDWN
  14. ESC
  15. RIGHT
  16. LEFT
  17. DOWN
  18. UP
  19. F1
  20. F2
  21. F3
  22. F4
  23. F5
  24. F6
  25. F7
  26. F8
  27. F9
  28. F10
  29. F11
  30. F12
  31. ...
  32. ...


 
J'ai donc fais avec une touche présente : F6

Code :
  1. lucid@lucid-desktop:~/.mplayer$ cat input.conf
  2. F6 echo "coucou" >> /tmp/coucou
  3. lucid@lucid-desktop:~/.mplayer$ bash
  4. lucid@lucid-desktop:~/.mplayer$


 
mais je ne vois toujours pas mon fichier coucou dans /tmp

n°1231129
weed
Posté le 03-08-2010 à 21:34:34  profilanswer
 

Citation :

-input <commands>
              This  option can be used to configure certain parts of the input
              system.  Paths are relative to ~/.mplayer/.
              NOTE: Autorepeat is currently only supported by joysticks.
 
              Available commands are:
 
                 conf=<filename>
                      Specify input configuration file other than the  default
                      ~/.mplayer/input.conf.  ~/.mplayer/<filename> is assumed
                      if no full path is given.


par curiosité, j'ai donc tenté de spécifier le fichier de conf :  

Code :
  1. mplayer -input conf=input.conf ../Downloads/video.mp4


mais cela ne fonctionne toujours pas. Aucun fichier n'est créé dans /tmp

n°1231238
Tsomi
From station to station
Posté le 04-08-2010 à 15:46:42  profilanswer
 

Hello,
 
À mon avis, tu peux juste faire un raccourci vers une des actions proposées par mplayer -input cmdlist, et non pas des commandes shell, etc.


Message édité par Tsomi le 04-08-2010 à 15:46:56
n°1231309
weed
Posté le 04-08-2010 à 22:07:47  profilanswer
 

Tu as raison en fait.  
J'ai fait un test avec la commande "quit". Je quite bien ma vidéo.
 

Code :
  1. lucid@lucid-desktop:~/.mplayer$ cat input.conf
  2. F6 quit
  3. F7 get_time_pos


 
J'aimerais en fait, enregistrer la position dans un fichier.
 
Si je ne peux pas utiliser bash :(, comment je pourrais faire ?
 
Quand j'appuie sur la touche F7, la position est bien affiché mais comment l'enregistrer dans un fichier ?

Citation :

VDec: vo config request - 1280 x 720 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 1280x720 => 1280x720 Planar YV12  
ANS_TIME_POSITION=4.7:  0.000 ct: -0.012   0/  0 46%  2%  1.3% 4 0
A:  35.0 V:  35.0 A-V:  0.000 ct: -0.012   0/  0 46%  2%  1.2% 4 0  

n°1231312
Tsomi
From station to station
Posté le 04-08-2010 à 22:25:16  profilanswer
 

Hm, c'est peut-être possible d'obtenir ce comportement en te basant sur ce tuto :
 
http://doc.ubuntu-fr.org/tutoriel/ [...] en_esclave


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs
  Multimédia

  [MPlayer] mapper ses propres raccourcis, la touche K

 

Sujets relatifs
mplayer lis en N&B les vidéos de mon APN, pas Dolphin !Instalation (K)Ubuntu sur Raid 0 (SCSI)
Touche fonction et imprmplayer bug avec Jack
Comment enregistrer webcam avec mplayer ? [Résolu]re attribuer le volume aux touche initiale pour macbook blanc
emacs raccourcis pour commenter Ctrl+/J'ai perdu la touche 'flèche-bas'
mplayer met trois minutes avant de lire piste d'un DVD ! [résolu] 
Plus de sujets relatifs à : [MPlayer] mapper ses propres raccourcis, la touche K


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR