Re: Why does this ALSA config no longer work in Fedora 12, RESOLVED

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/05/2010 11:28 AM, Neil Bird wrote:
> Around about 05/03/10 09:34, n2xssvv.g02gfr12930 typed ...
>> The following ALSA config enabled the recording of played sound
>> It is no longer working, any ideas as to why?
> 
>    None at all, but I'd put money on pulse-audio.
> 
>    I found the following on the net a while ago (still using F10 then), and 
> successfully used it to record a bit of radio I was listening to through 
> firefox+flash -> pulse-audio.  It's slightly tweaked from the one I found, 
> and I don't recall where I found it:
> 
> #!/bin/bash
> # pa-record
> OUT="$1"
> if [ -z "$OUT" ]; then
>      echo "Usage: $0 output-file" >&2
>      exit 1
> fi
> rm -f "$OUT"
> EXT=${OUT##*.}
> 
> # Get sink monitor:
> MONITOR=$(pactl list | grep -A1 '^\*\*\* Source #' | grep '^Name: 
> .*\.monitor$' | cut -d" " -f2 | tail -n1)
> 
> # Record it raw, and convert to a wav or ogg
> echo "Recording to $OUT ..."
> echo "Close this window to stop"
> if [ "$EXT" == "ogg" ];  then
>      parec --format=s16le -d "$MONITOR" | oggenc --raw --quiet --quality=4 
> -o "$OUT" -
> else
>      parec -d "$MONITOR" | sox -t raw -r 44k -sLb 16 -c 2 - "$OUT"
> fi
> 
Neil,

After some investigation I managed to alter the above script to work for
me. Unfortunately it didn't work out of the box, but it was easily put
right.

So folks,thanks to Neil here and a bit of geekiness to fix up the script
you can record playing sound using pulseaudio.

JB

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux