[SOLVED] Record audio that is playing

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

[SOLVED] Record audio that is playing

Postby cjsnow1 on Sun Jul 11, 2010 6:17 pm

Hi. I'm new to Linux Mint 9. I had Ubuntu 9.04 installed but found out about Mint's "Out-of-the-box" compatibility & have loved it ever since.

I'm trying to record what is playing through my speakers but have not had any success. I have tried looking at the Sound Problems sticky but it didn't help. I also tried the Ubuntu forums but that was a no also.

I preferably would like to record inside Audacity. but I don't know what Recording Device to pick. I've tried all of them (there's 4) but none of them work and the last choice (OSS) crashes audacity.

This is the inxi -A output
Code: Select all
Audio:     Card nVidia CK804 AC'97 Audio Controller driver Intel ICH
           Sound: Advanced Linux Sound Architecture Version 1.0.21

And this is the lspci | grep audio output
Code: Select all
00:04.0 Multimedia audio controller: nVidia Corporation CK804 AC'97 Audio Controller (rev a2)


Help would be appreciated.
Last edited by cjsnow1 on Fri Mar 04, 2011 12:13 pm, edited 1 time in total.
Image
Websitehttp://droppinganchor.uphero.com
My NG Pagehttp://cjsnow1.newgrounds.com/audio
iPaidTooMuch @ Endgadget wrote:AOL and Engadget, trolling the internet since the 90s
cjsnow1
Level 1
Level 1
 
Posts: 35
Joined: Thu Jul 08, 2010 11:57 am

Linux Mint is funded by ads and donations.
 

Re: Record audio that is playing

Postby conslie on Mon Jul 12, 2010 12:14 am

Guessing that you are referring to streaming audio (?), VLC will let you record and save what you are listening to when you use that player. You can find it in Mint's Software Manager. It will also record streaming video.

See http://www.videolan.org/doc/streaming-howto/en/ch02.html , about 1/3 down beginning with Transcoding and see if that seems to accomplish what you want.

Enjoy.

(edit typo)
conslie
Level 4
Level 4
 
Posts: 369
Joined: Sun Oct 11, 2009 2:03 am

Re: Record audio that is playing

Postby cjsnow1 on Tue Sep 21, 2010 2:18 pm

Sorry I didn't reply sooner.

I wasnt trying to record streaming audio, I was trying to record something playing through the output on my sound card. Btw the card is capable of doing it as I used Audacity for Windows to record music from Myspace.

Windows won't load properly on my machine so im forced to use Mint.
Image
Websitehttp://droppinganchor.uphero.com
My NG Pagehttp://cjsnow1.newgrounds.com/audio
iPaidTooMuch @ Endgadget wrote:AOL and Engadget, trolling the internet since the 90s
cjsnow1
Level 1
Level 1
 
Posts: 35
Joined: Thu Jul 08, 2010 11:57 am

Re: Record audio that is playing

Postby richyrich on Tue Sep 21, 2010 2:35 pm

as I used Audacity for Windows to record music from Myspace.


Audacity is available in the Package Manager . . :)
User avatar
richyrich
Level 13
Level 13
 
Posts: 4644
Joined: Mon May 04, 2009 8:31 pm

Re: Record audio that is playing

Postby cjsnow1 on Thu Jan 27, 2011 2:34 pm

richyrich wrote:
as I used Audacity for Windows to record music from Myspace.


Audacity is available in the Package Manager . . :)


I have audacity installed on my machine but don't know how to record the Output of my sound card.
I've tried getting a loop 3.5mm cable and plugging one end into my mic jack but I want something preferably w/o the cord.
Any suggestions?
Image
Websitehttp://droppinganchor.uphero.com
My NG Pagehttp://cjsnow1.newgrounds.com/audio
iPaidTooMuch @ Endgadget wrote:AOL and Engadget, trolling the internet since the 90s
cjsnow1
Level 1
Level 1
 
Posts: 35
Joined: Thu Jul 08, 2010 11:57 am

Re: Record audio that is playing

Postby rekik on Thu Jan 27, 2011 6:10 pm

I have solved a similar problem in Mint9 using "Pulse audio Device Chooser"
rekik
Level 3
Level 3
 
Posts: 198
Joined: Wed May 06, 2009 5:24 pm

Re: Record audio that is playing

Postby Habitual on Thu Jan 27, 2011 6:59 pm

Record what comes out of your speakers
Requirement(s): sox
Code: Select all
sudo apt-get install -y sox

Fire up gedit and add this code.
Code: Select all
#!/bin/bash
# Copyright 2008-2009, Kees Cook <kees@outflux.net>
#
# Records the PulseAudio monitor channel.
# http://www.outflux.net/blog/archives/2009/04/19/recording-from-pulseaudio/
#
#This script require sox
#sudo apt-get install sox

if [ -n "$1" ]; then
    OUTFILE="$1"
else
    TIME=$(date +%d-%b-%y_%H%M-%Z)
    OUTFILE="recording_$TIME.wav"
fi

# Get sink monitor:
MONITOR=$(pactl list | grep -A2 '^Source #' | grep 'Name: .*\.monitor$' | awk '{print $NF}' | tail -n1)

# Record it raw, and convert to a wav
echo "Recording. Ctrl-C or close window to stop"
parec -d "$MONITOR" | sox -t raw -r 44100 -sLb 16 -c 2 - "$OUTFILE"

# End of sound_cap.sh


Save it. Say to ~/sound_cap.sh


open a terminal and run this
Code: Select all
chmod 700 ~/sound_cap.sh

To use it:
in Terminal...
Code: Select all
~/sound_cap.sh

it will show "Recording. Ctrl-C or close window to stop"
Leave the terminal open while recording.

Fire up say any Audio Source (I use it on Grooveshark myself).

To stop recording Press Ctrl-C in the terminal.
To name the file being recorded, just use ~/sound_cap "name of the file.wav" (including the quotes).
Replay at your leisure.

It does NOT work if the headphones are plugged in.
Done.

HTH
User avatar
Habitual
Level 7
Level 7
 
Posts: 1609
Joined: Sun Nov 21, 2010 8:31 pm
Location: uid=0(root) gid=0(root) groups=0(root)

Re: Record audio that is playing

Postby cjsnow1 on Fri Mar 04, 2011 12:12 pm

I actually found a solution here:http://drsjlazar.blogspot.com/2009/02/tidbit-recording-soundcard-output.html
just switch the ALSA properties around, edit a .conf file, & record with audacity. Thanks for the solutions.
Image
Websitehttp://droppinganchor.uphero.com
My NG Pagehttp://cjsnow1.newgrounds.com/audio
iPaidTooMuch @ Endgadget wrote:AOL and Engadget, trolling the internet since the 90s
cjsnow1
Level 1
Level 1
 
Posts: 35
Joined: Thu Jul 08, 2010 11:57 am

Linux Mint is funded by ads and donations.
 

Return to Newbie Questions

Who is online

Users browsing this forum: No registered users and 29 guests