| Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-08-2011, 02:22 AM
|
#1
|
|
Member
Registered: Oct 2005
Location: NewZealand
Distribution: Crunchbang, Slitaz, Puppy
Posts: 67
Rep:
|
ffmpeg recording desktop audio properly
Hi, I'm recording my desktop with this ffmpeg command:
Code:
ffmpeg -f alsa -ac 2 -i hw:0,0 -f x11grab -r 30 -s $(xwininfo -root | grep 'geometry' | awk '{print $2;}')
-i :0.0 -acodec pcm_s16le -vcodec libx264 -vpre lossless_ultrafast -threads 0 -y output.mkv
and although it's working, I'm getting tinny, far-away sounding audio.
Is there a way to more directly capture the sound or just get it sounding good?
|
|
|
|
09-08-2011, 08:37 PM
|
#2
|
|
Senior Member
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,648
Rep: 
|
Make sure that you have the record volume controls turned up. Could be called ogain, igain, pcm1, rec etc. depending on your sound system. Gmixer does a good job showing all of them.
Your command looks fine. Bet it's a volume control.
|
|
|
|
09-14-2011, 01:46 AM
|
#3
|
|
Member
Registered: Oct 2005
Location: NewZealand
Distribution: Crunchbang, Slitaz, Puppy
Posts: 67
Original Poster
Rep:
|
oh that sux, I recorded myself trying "every" setting in alsamixer and still didn't get good sound
I'm stumped
|
|
|
|
09-14-2011, 07:21 PM
|
#4
|
|
Senior Member
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,648
Rep: 
|
Since you're having problems with the audio you might try to troubleshoot just it.
Launch ffmpeg with
Code:
ffmpeg -f alsa -i hw:0,0 -vn -acodec libmp3lame -ab 128k capture.mp3
or
Code:
ffmpeg -f alsa -i /dev/dsp -vn -acodec libmp3lame -ab 128k capture.mp3
Then play a media file or speek into your mic. That will get you 128k mp3 audio that any Linux or BSD box should do. Eliminate pcm or x264 as a cause. If you still don't have audio then find that mixer control that isn't up.
|
|
|
|
09-21-2011, 05:09 AM
|
#5
|
|
Member
Registered: Oct 2005
Location: NewZealand
Distribution: Crunchbang, Slitaz, Puppy
Posts: 67
Original Poster
Rep:
|
Hey, thanks for your help but I'm not getting good results from linux. I guess it's a problem with alsa, but I can't really be fussed installing gstreamer, trying oss or fixing the audio with audacity, so I'll prolly just try windows (when it's convenient to do so) -it's not a high priority, I just wanted to record some streaming tv at dw-world (tomorrow today, if you're interested) but I can just watch it once, 'cause I'm not fussed
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:52 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|