|
1 ----------------------------------------------------------- |
|
2 stdin mixer - Copyright (C) 2007 Lluís Batlle i Rossell |
|
3 Program licensed under GPL v2 or above. |
|
4 See the file COPYING. |
|
5 [http://vicerveza.homeunix.net/~viric/soft/stdinmix] |
|
6 [this file is written in UTF-8] |
|
7 ----------------------------------------------------------- |
|
8 |
1 Motivation |
9 Motivation |
2 ----------- |
10 ----------- |
3 I wanted to run mplayer, and command things to it using a key bind. I could |
11 I wanted to run mplayer, and command things to it using a key bind. I could |
4 run "mplayer -slave", but I needed its standard input accessible from any other |
12 run "mplayer -slave", but I needed its standard input accessible from any other |
5 program. Then, I wrote this program to share stdin. |
13 program. Then, I wrote this program to share stdin. |
30 |
38 |
31 If you don't specify any argument, it will connect to the mentioned unix socket, |
39 If you don't specify any argument, it will connect to the mentioned unix socket, |
32 and forward the current stdin to that socket. |
40 and forward the current stdin to that socket. |
33 |
41 |
34 |
42 |
|
43 Known problems |
|
44 ------------------ |
|
45 If you write data at the same time to the application stdin and to the unix |
|
46 socket, both will be mixed in a quite unpredictable way. I let the user |
|
47 control this not to happen. |
|
48 |
|
49 |
35 How do I use it |
50 How do I use it |
36 ------------------ |
51 ------------------ |
37 I wanted a program for transcribing voice in audio tracks. I had mplayer, and |
52 I wanted a program for transcribing voice in audio tracks. I had mplayer, and |
38 I only needed a way to send commands to it as "-slave". By now, on need, |
53 I only needed a way to send commands to it as "-slave". By now, on need, |
39 I use xbindkeys [1] to map F1 to "mplayer-remote -p" (pause) and |
54 I use xbindkeys [1] to map F1 to "mplayer-remote -p" (pause) and |
40 F2 to "mplayer-remote -b" (back a few seconds). Then I can transcribe in |
55 F2 to "mplayer-remote -b" (back a few seconds). Then I can transcribe in |
41 my favourite editor (vim) pausing and moving back the audio track when needed. |
56 my favourite editor (vim) pausing and moving back the audio track when needed. |
42 |
57 |
|
58 You can find some scripts in the utils/ directory. |
|
59 |
|
60 |
|
61 Author |
|
62 --------- |
|
63 Lluís Batlle i Rossell |
|
64 [http://vicerveza.homeunix.net/~viric/] |
|
65 [viric ĉe vicerveza punkto homelinux punkto net] |
|
66 |
43 |
67 |
44 References |
68 References |
45 ------------ |
69 ------------ |
46 [1] xbindkeys: http://hocwp.free.fr/xbindkeys/xbindkeys.html |
70 [1] xbindkeys: http://hocwp.free.fr/xbindkeys/xbindkeys.html |