Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
becki:linux:sound [2015-09-14 10:23] becki |
becki:linux:sound [2020-06-23 07:22] (aktuell) becki |
||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
====== Linux Sound and Audio == | ====== Linux Sound and Audio == | ||
+ | |||
+ | {{tagtopic>linux +audio&rsort&order=modified}} | ||
+ | |||
===== Overview == | ===== Overview == | ||
Zeile 67: | Zeile 70: | ||
aplay -D hw:PCH /usr/share/sounds/KDE_Logout_new.wav | aplay -D hw:PCH /usr/share/sounds/KDE_Logout_new.wav | ||
- | === Select Sound Card with mplayer == | + | === Permanently select default Sound Card == |
- | Cli examples: | + | FIXME A good place to start is probably at ''/etc/asound.state'' |
+ | |||
+ | ===== Mplayer == | ||
+ | ==== Select output driver == | ||
+ | |||
+ | As of Slack 14.4 Pulse is active, but mplayer still uses Alsa as output. In order to avoid detours (see above), change this permanently to pulse by editing /etc/mplayer/mplayer.conf : | ||
+ | |||
+ | ao=pulse | ||
+ | |||
+ | Older CLI examples for alsa (before pulseaudio) | ||
mplayer -ao alsa:device=hw=1 or | mplayer -ao alsa:device=hw=1 or | ||
Zeile 76: | Zeile 88: | ||
mplayer -ao alsa:device=hw=PCH.0 or | mplayer -ao alsa:device=hw=PCH.0 or | ||
- | Or permanently by editing /etc/mplayer/mplayer.conf : | + | #/etc/mplayer/mplayer.conf: |
ao=alsa:device=hw=1 | ao=alsa:device=hw=1 | ||
- | === Permanently select default Sound Card == | ||
- | |||
- | FIXME A good place to start is probably at ''/etc/asound.state'' | ||
- | ===== Mplayer == | ||
==== Steaming throuh Socks Proxy == | ==== Steaming throuh Socks Proxy == | ||
Zeile 97: | Zeile 104: | ||
mplayer -ao pcm <file>|<url> | mplayer -ao pcm <file>|<url> | ||
- | ==== Dump audio to ogg vorbis file == | + | ==== Webcam viewing / testing == |
<code> | <code> | ||
- | mkfifo myrecord | + | mplayer tv:// |
- | oggenc myrecord & | + | |
- | mplayer -ao pcm:file=myrecord <file>|<url> | + | |
- | rm myrecord | + | |
</code> | </code> | ||
- | This is useful for recording internet radio. | + | Source: http://www.linuxtv.org/wiki/index.php/MPlayer#Using_MPlayer_for_Webcam_Viewing |
- | Note: Encoding directly to ogg seems to work only with mencoder using ''-lavcopts acodec=vorbis''. But mencoder doesn't seem to support stream URLS. | + | ==== Slave mode == |
- | FIXME How to stop recording? ''sleep <seconds>; killall mplayer''? | + | http://www.mplayerhq.hu/DOCS/tech/slave.txt |
- | Recording can also combined with proxy usage. Omit cache in this case: | + | ===== Mixer == |
- | curl --socks5 localhost:1080 <url> | mplayer -quiet -ao pcm:file=myrecord - | + | As of Slack 14.2 Pulseaudio is included and activated by default. |
- | ==== Slave mode == | + | CLI frontend: ''pamixer'' |
+ | GUI fromtend: ''pavucontrol'' | ||
- | http://www.mplayerhq.hu/DOCS/tech/slave.txt | + | <note>It is **not** recommended to make ''/etc/rc.d/rc.pulseaudio'' runnable. Normally pulseaudio will start automatically as-needed with an instance per audio user.</note> |
- | ===== Mixer == | + | ===== Bluetooth == |
+ | |||
+ | In order to channel audio from any source to an external speaker or headset via bluetooth, first make ''/etc/rc.d/rc.bluetooth'' runnable and start it as root. | ||
+ | |||
+ | Now start the ''blueman-manager'' GUI to connect to the remote device. | ||
- | FIXME Slack comes with esound (apparently disabled). According to usr/doc/esound-0.2.41/README esound is deprecated. Whereas pulseaudio is available only on slackbuilds | + | The ''pavucontrol'' GUI allows you to route the sound to the according remote device. You might need to check the button "Set as fallback" for that output device. |
- | ===== Attic == | + | ===== Attic / obsolete == |
mixer: alsamixer (,rexima, amixer) | mixer: alsamixer (,rexima, amixer) |