PCLinuxOS-Forums
News: ...FLASH!!! ...New PCLinuxOS Testing board now open. Register today! Be an active contributor to the PCLinuxOS future! ... Read all about it now, on THIS forum!!!..
 
*
Welcome, Guest. Please login or register. May 27, 2012, 05:16:35 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: How to record audio when using recordmydesktop!  (Read 676 times)
Kurdistan
Full Member
***
Offline Offline

Posts: 174



« on: September 19, 2011, 03:09:20 PM »

After request from a user (cirrus_minor) in the community, I thought I can write a how-to. This how-to will focus how to add audio when recording the desktop with recordmydesktop.

1. First of all you need to install pulseaudio. Texstar have written a good guide. Follow it:
 http://www.pclinuxos.com/forum/index.php/topic,83740.0.html
2. Afterward install pavucontrol from synaptic.
3. Install recordmydesktop from synaptic.
4. Open recordmydesktop and then press advanced.
5. Now press “Sound” and look for unit/device. Change DEFAULT to default.
6. Open pavucontrol and go to record(ing) and then change to “Monitor of Internal Audio Analog Stereo”.
7. Done! (Maybe restart recordmydesktop can be needed after applied the change).

Have fun with recordmydesktop! Smiley
Logged

Running PCLinuxOS on my USB. PCLinuxOS went bang on me. I have X-another distro on my laptop for now. Will give PCLinuxOS a try in the feature.
AndrzejL
PCLinuxOS Tester
Super Villain
*******
Offline Offline

Posts: 11990


Registered Linux User #490933


WWW
« Reply #1 on: September 19, 2011, 03:28:35 PM »

You dont need pulseaudio... been recording videos with sound using alsa for ages now...

I'm sick, in bed but when I am better I will add some more info...

Andy

Edit: When Kurdistan is writing "install / open recordmydesktop" he means qt-recordmydesktop or gtk-recordmydesktop depends on your preferences. Recordmydesktop by itself is a command line application.
Logged

Kurdistan
Full Member
***
Offline Offline

Posts: 174



« Reply #2 on: September 19, 2011, 03:44:49 PM »

You dont need pulseaudio... been recording videos with sound using alsa for ages now...

I'm sick, in bed but when I am better I will add some more info...

Andy

That would be great.  Smiley

Get well!
Logged

Running PCLinuxOS on my USB. PCLinuxOS went bang on me. I have X-another distro on my laptop for now. Will give PCLinuxOS a try in the feature.
YouCanToo
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 4251


Location: Lebanon, OR., USA


WWW
« Reply #3 on: September 19, 2011, 08:52:13 PM »

You dont need pulseaudio... been recording videos with sound using alsa for ages now...

I'm sick, in bed but when I am better I will add some more info...

Andy

Hope that you are feeling better soon!
Logged





Be sure to visit the NEW Knowledge Base


Linux is user-friendly- it's just picky who its friends are!
AndrzejL
PCLinuxOS Tester
Super Villain
*******
Offline Offline

Posts: 11990


Registered Linux User #490933


WWW
« Reply #4 on: September 20, 2011, 12:21:59 AM »

You dont need pulseaudio... been recording videos with sound using alsa for ages now...

I'm sick, in bed but when I am better I will add some more info...

Andy

Hope that you are feeling better soon!

Thanks Dude. I hope so too.

Andy
Logged

AndrzejL
PCLinuxOS Tester
Super Villain
*******
Offline Offline

Posts: 11990


Registered Linux User #490933


WWW
« Reply #5 on: September 20, 2011, 03:15:40 AM »

My bronchi reminded to me about itself so as You can imagine I don't feel very well but I have decided to post my way of recording stuff anyway.

Code:
recordmydesktop -x 1 -y 1 --width 639 -height 479 --device hw:0,0 -s_quality 10 --no-wm-check -fps 25 -o ~/Video.ogv

This is my standard desktop recording command for a video with sound.

As You can see it has x and y parameters both equal 1. This means that the video will start recording in the top left corner of the screen. It can be changed to Your liking.

Width and height parameters are added as well but as You can see I am recording video in resolution 640 x 480 but I am using values 639 and 479 so I have subtracted 1 from each of them. You can use any resolution that is available on Your machine but always subtract x and y values from the width and height. Example if x and y both are equal 1 then 1280 x 800 = 1279 x 799...

--device hw:0,0 overrides the capture device used. To find out what device should be used use alsamixer utility and press F2. See video for more details. In my case the capture device id equals 00:00 so I use hw:0,0 but Your mileage may vary.

-s_quality value is also added with parameter 10 - as always You can experiment with the value.

--no-wm-check I found it very useful - judge for Yourself.

-fps value can be decreased / increased

-o /path/to/the/video.ogv file

The biggest problem for some users is with synchronization of the audio / video but that's another issue. If You are not afraid of messing around the command line - You will get it right eventually. I usually record the video without a sound and then add a song as a background.

When the command is running press and hold CTRL and the press C and release both. Video will start encoding. After recording the video I usually use my  favorite tools like mencoder and avidemux to edit it.

Regards

Andy
Logged

AndrzejL
PCLinuxOS Tester
Super Villain
*******
Offline Offline

Posts: 11990


Registered Linux User #490933


WWW
« Reply #6 on: September 20, 2011, 06:54:40 AM »

Oh and just an additional info - yes You can achieve all this from the GUI but there are few buts:

A) encoding video in GUI takes longer
B) recording videos from a full screen games crashes GUI versions or records videos in the maximum resolution while the game only needs let's say 640x480 so You get black / unused rectangles on the side of the video...
C) it's easier to choose the part of the screen that You want to record from the CLI mode
D) I found it easier to operate then gui. Some of the options are not really present in gui while I can add them to the command in CLI...

I use gtk-recordmydesktop on the occasion too but most of the time I would use CLI version.

Regards.

Andy
Logged

Kurdistan
Full Member
***
Offline Offline

Posts: 174



« Reply #7 on: September 20, 2011, 07:51:47 AM »

Thanks for your post. Now we have the CLI-way and the GUI-way. Great!  Smiley
Logged

Running PCLinuxOS on my USB. PCLinuxOS went bang on me. I have X-another distro on my laptop for now. Will give PCLinuxOS a try in the feature.
Texstar
Administrator
Super Villain
*****
Offline Offline

Posts: 11805



« Reply #8 on: September 20, 2011, 10:32:54 AM »

I'm sick, in bed but when I am better I will add some more info...

Andy



Andy goes out in public sick ... 4 billion people die.



I need to learn how to make videos on Linux so thanks for the info.
Logged

Follow the development of PCLinuxOS on Twitter
Help fund the PCLinuxOS project!

"I'm not so good on advice, can I interest you in a sarcastic reply?"
AndrzejL
PCLinuxOS Tester
Super Villain
*******
Offline Offline

Posts: 11990


Registered Linux User #490933


WWW
« Reply #9 on: September 20, 2011, 10:58:14 AM »

I'm sick, in bed but when I am better I will add some more info...

Andy

Andy goes out in public sick ... 4 billion people die.



I need to learn how to make videos on Linux so thanks for the info.

Heh heh heh Wink...

No worries... I took a shortcut a'la Harry Potter Wink.


Andy
Logged

cirrus_minor
Full Member
***
Offline Offline

Posts: 123


☆★ #watp ★☆


WWW
« Reply #10 on: October 11, 2011, 12:46:10 PM »

Thank you all very much for this tut , im sure it come in handy for many more recent converts like myself.
Logged



$ PCLOS~KDE~ 2011.Kernel:2.6.38.8
CPU:Intel® Pentium D 2x3.GHz
GPU:ASUS® [G92 EN8800 GT TOP] 512MB DDR3.
Memory:3072MB'DDR2 | HDD Size 1TB
Audio:Audigy2 ZS 7.1
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM