LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-20-2013, 03:02 PM   #1
Terminal_Meltdown
LQ Newbie
 
Registered: Jul 2013
Location: On the Internet
Distribution: A Cool Distro Called Arch
Posts: 6

Rep: Reputation: 3
Can't record audio playing inside virtualbox


Hello all

I am trying to capture audio from an application inside a guest OS inside virtualbox.

As the audio is playing in the VM, I opened a terminal from my host linux pc and issue this command

Code:
ffmpeg -f alsa -i hw:0 -acodec pcm_s16le out.wav
However, I get this error.

[alsa @ 0x8213e20] cannot open audio device hw:0 (Device or resource busy)

My hunch is the VM's sound device is being used.

Is there a work-a-round or it's not possible to capture audio since the VM is using the virtual sound device?

Thanks

Last edited by Terminal_Meltdown; 07-20-2013 at 03:09 PM.
 
Old 07-20-2013, 04:00 PM   #2
Terminal_Meltdown
LQ Newbie
 
Registered: Jul 2013
Location: On the Internet
Distribution: A Cool Distro Called Arch
Posts: 6

Original Poster
Rep: Reputation: 3
Hi

I just want to add my soundcard is working fine in linux and the command I used above works just fine when recording audio from my host machine. The only issue I have is when I want to capture audio that is playing in a VM.

Cheers

Last edited by Terminal_Meltdown; 07-20-2013 at 04:03 PM.
 
Old 07-20-2013, 04:25 PM   #3
Terminal_Meltdown
LQ Newbie
 
Registered: Jul 2013
Location: On the Internet
Distribution: A Cool Distro Called Arch
Posts: 6

Original Poster
Rep: Reputation: 3
Solved by using audacity and choosing Mix as the recording source.
 
Old 08-20-2013, 05:28 PM   #4
angoliroda
LQ Newbie
 
Registered: Aug 2013
Posts: 2

Rep: Reputation: Disabled
Hi,
I am a Linux Noobie and suffer from the same problem. I was about to start a thread to find help for this and I am very happy you have found a solution.
I would like to try it too, it's just I have no idea what you mean by saying "using audacity and choosing Mix as the recording source".

I also use audacity and I checked the settings and I have set the recording devices to what I believe should be right and still cannot see what you mean.

Anyway, I am using Linux Mint 13 XFCE 32bit.

Could you please explain your solution?
Thx a lot.
Attila

Last edited by angoliroda; 08-20-2013 at 05:51 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Record audio output / audio that is played in a web browser glupa4e Slackware 11 05-21-2013 01:08 AM
Record audio from several audio cards in MP3 / 30 minutes chunks alfredoyong Linux - General 2 08-30-2011 04:44 AM
[SOLVED] setting up vyatta inside Virtualbox mrmnemo Linux - Software 1 10-18-2010 12:05 PM
Can't install any apps in WinXP inside VirtualBox steffanllyn Linux - Virtualization and Cloud 1 11-03-2009 08:54 AM


All times are GMT -5. The time now is 07:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration