Author Topic: How to record audio when using recordmydesktop!  (Read 2164 times)

Offline Kurdistan

  • Full Member
  • ***
  • Posts: 177
How to record audio when using recordmydesktop!
« on: September 19, 2011, 02: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! :)
Running PCLinuxOS on my USB. PCLinuxOS went bang on me. I have X-u-b-u-n-t-u on my laptop for now. Will give PCLinuxOS a try in the feature.

Offline AndrzejL

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 12789
  • RLU #490933
    • Wordpress On The Wardrobe...
Re: How to record audio when using recordmydesktop!
« Reply #1 on: September 19, 2011, 02: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.
« Last Edit: September 20, 2011, 05:48:48 AM by AndrzejL »

Offline Kurdistan

  • Full Member
  • ***
  • Posts: 177
Re: How to record audio when using recordmydesktop!
« Reply #2 on: September 19, 2011, 02: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.  :)

Get well!
Running PCLinuxOS on my USB. PCLinuxOS went bang on me. I have X-u-b-u-n-t-u on my laptop for now. Will give PCLinuxOS a try in the feature.

Offline YouCanToo

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 5324
  • Location: Lebanon, OR., USA
    • Spreading the word.......
Re: How to record audio when using recordmydesktop!
« Reply #3 on: September 19, 2011, 07: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!




Be sure to visit the NEW Knowledge Base


Linux is user-friendly- it's just picky who its friends are!

Offline AndrzejL

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 12789
  • RLU #490933
    • Wordpress On The Wardrobe...
Re: How to record audio when using recordmydesktop!
« Reply #4 on: September 19, 2011, 11:21:59 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!

Thanks Dude. I hope so too.

Andy

Offline AndrzejL

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 12789
  • RLU #490933
    • Wordpress On The Wardrobe...
Re: How to record audio when using recordmydesktop!
« Reply #5 on: September 20, 2011, 02: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: [Select]
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
« Last Edit: March 28, 2013, 04:05:22 PM by AndrzejL »

Offline AndrzejL

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 12789
  • RLU #490933
    • Wordpress On The Wardrobe...
Re: How to record audio when using recordmydesktop!
« Reply #6 on: September 20, 2011, 05: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
« Last Edit: September 20, 2011, 05:59:33 AM by AndrzejL »

Offline Kurdistan

  • Full Member
  • ***
  • Posts: 177
Re: How to record audio when using recordmydesktop!
« Reply #7 on: September 20, 2011, 06:51:47 AM »
Thanks for your post. Now we have the CLI-way and the GUI-way. Great!  :)
« Last Edit: September 20, 2011, 08:49:43 AM by Kurdistan »
Running PCLinuxOS on my USB. PCLinuxOS went bang on me. I have X-u-b-u-n-t-u on my laptop for now. Will give PCLinuxOS a try in the feature.

Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12490
Re: How to record audio when using recordmydesktop!
« Reply #8 on: September 20, 2011, 09: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.

Thanks to everyone who donates. You keep the servers running.

Offline AndrzejL

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 12789
  • RLU #490933
    • Wordpress On The Wardrobe...
Re: How to record audio when using recordmydesktop!
« Reply #9 on: September 20, 2011, 09: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 ;)...

No worries... I took a shortcut a'la Harry Potter ;).


Andy
« Last Edit: September 20, 2011, 10:18:24 AM by AndrzejL »

Offline cirrus_minor

  • Full Member
  • ***
  • Posts: 125
  • ☆★ #watp ★☆
    • cirrus minor
Re: How to record audio when using recordmydesktop!
« Reply #10 on: October 11, 2011, 11:46:10 AM »
Thank you all very much for this tut , im sure it come in handy for many more recent converts like myself.


$ 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