Florian Kulzer wrote:
On Tue, Dec 02, 2008 at 11:41:35 -0700, [EMAIL PROTECTED] wrote:
Florian Kulzer wrote:
On Sun, Nov 30, 2008 at 14:48:09 -0700, wauhugo AT yahoo DOT com wrote:
I can playback the stream through the speakers and record it from the
microphone with the sound recorder application. (with added noise and
worse quality)
Is there any better way to download or record such RTMPT streams for
offline use?
(running SID amd64 HDA nForce sound chip)
[...]
If mplayer does not work (it cannot play certain compressed flash
streams AFAIK) then you can play the stream with the flash application
and capture the sound directly from the ALSA device (instead of going
via speakers and microphone). The trick is to set the correct capture
device; with alsamixer (from package alsa-utils) you can press TAB to
see the capture devices. You probably have to set the capture device to
"Mix" and adjust the volume, then it should be possible to capture what
is played with e.g. the arecord utility. If you prefer GUI applications
to record, audacity should work as well, provided you set the right
capture device.
man arecord speaks about the ".asoundrc" file. Where can I find this
file on my Debian system (SID amd64)?
http://alsa.opensrc.org/index.php/.asoundrc
I think, I begin to understand a bit.
How can JACK be configured and be used to redirect the sound from a
stream, which is playing to a RECORDING DEVICE?
I have never used jack (or any other sound daemon) to record the PCM
output. All the soundcards that I am familiar with have "Mix" as a
capture device, and then the procedure is straightforward:
http://alsa.opensrc.org/index.php/Record_from_pcm
as recommended in this file:
$ amixer set 'Mix' cap
amixer: Unable to find simple control 'Mix',0
or slightly modified:
$ amixer set 'PCM' cap
amixer: Invalid command!
$ amixer
Simple mixer control 'Master',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 43
Mono:
Front Left: Playback 31 [72%] [-18.00dB] [on]
Front Right: Playback 31 [72%] [-18.00dB] [on]
Simple mixer control 'PCM',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 20
Mono:
Front Left: Playback 20 [100%] [0.00dB] [on]
Front Right: Playback 20 [100%] [0.00dB] [on]
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958 Default PCM',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Digital',0
Capabilities: cvolume
Capture channels: Front Left - Front Right
Limits: Capture 0 - 120
Front Left: Capture 120 [100%] [30.00dB]
Front Right: Capture 120 [100%] [30.00dB]
Simple mixer control 'Ext Mic',0
Capabilities: pvolume cvolume pswitch cswitch
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 20 Capture 0 - 23
Front Left: Playback 0 [0%] [-30.00dB] [off] Capture 0 [0%] [0.00dB] [off]
Front Right: Playback 0 [0%] [-30.00dB] [off] Capture 0 [0%] [0.00dB]
[off]
Simple mixer control 'ExtMic',0
Capabilities: cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0
Capture channels: Mono
Mono: Capture [on]
Simple mixer control 'Int Mic',0
Capabilities: pvolume cvolume pswitch cswitch
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 20 Capture 0 - 23
Front Left: Playback 0 [0%] [-30.00dB] [off] Capture 0 [0%] [0.00dB] [off]
Front Right: Playback 0 [0%] [-30.00dB] [off] Capture 0 [0%] [0.00dB]
[off]
Simple mixer control 'IntMic',0
Capabilities: cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0
Capture channels: Mono
Mono: Capture [off]
If you cannot find the "Mix" capture device then maybe it has another
name (or there is a problem with the support for soundcard). I would be
interested in seeing the output of:
amixer | perl -n0e 'split(/(?<=\n)(?=[^ ])/);foreach(@_){if(/capture/i){print
$_}}'
~$ amixer | perl -n0e 'split(/(?<=\n)(?=[^
])/);foreach(@_){if(/capture/i){print $_}}'
Simple mixer control 'Digital',0
Capabilities: cvolume
Capture channels: Front Left - Front Right
Limits: Capture 0 - 120
Front Left: Capture 120 [100%] [30.00dB]
Front Right: Capture 120 [100%] [30.00dB]
Simple mixer control 'Ext Mic',0
Capabilities: pvolume cvolume pswitch cswitch
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 20 Capture 0 - 23
Front Left: Playback 0 [0%] [-30.00dB] [off] Capture 0 [0%] [0.00dB] [off]
Front Right: Playback 0 [0%] [-30.00dB] [off] Capture 0 [0%] [0.00dB]
[off]
Simple mixer control 'ExtMic',0
Capabilities: cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0
Capture channels: Mono
Mono: Capture [on]
Simple mixer control 'Int Mic',0
Capabilities: pvolume cvolume pswitch cswitch
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 20 Capture 0 - 23
Front Left: Playback 0 [0%] [-30.00dB] [off] Capture 0 [0%] [0.00dB] [off]
Front Right: Playback 0 [0%] [-30.00dB] [off] Capture 0 [0%] [0.00dB]
[off]
Simple mixer control 'IntMic',0
Capabilities: cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0
Capture channels: Mono
Mono: Capture [off]
Another possibility is using ALSA's "file" plugin to direct the PCM output to a
file:
http://www.alsa-project.org/alsa-doc/alsa-lib/pcm_plugins.html#pcm_plugins_file
are these plugins to be inserted into a to be created /home/user/.asoundrc
or for system-wide availability into a to be created /etc/asound.conf?
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]