Login with username, password and session length
Pages: [1] 2   Go Down
  Print  
Author Topic: Recordmydesktop & MEncoder Basics  (Read 4811 times)
Jaws
Administrator
Hero Member
*****

Cookies: 61
Offline Offline

Posts: 1914



« on: March 05, 2009, 08:14:56 PM »

Here's some info I gathered on using Recordmydesktop (RMD) after researching how to screencast.

First off I'm using a USB microphone specifically this one by Logitech for $20.00...

http://www.newegg.com/Product/Product.aspx?Item=N82E16836111601

It's nicely made with a weighted base, good looks, it will pick your voice up anywhere in the room and it's cheap. What more can you ask for.

Since it's not being used with the sound card, where most mikes are plugged in, you're going to have to tell the application, in this case RMD, where the mike is. I suppose there's a terminal command to get specific info for your computer once you plug the mike in but I don't know that. I read that you can use [device hw:1,0] and this might be universal in Linux though I'm not sure about that either but it works for me.

There is a GUI for RMD but it's simple enough using the terminal. The command I use to start a recording session is...

Code:
recordmydesktop -windowid $(xwininfo |grep "Window id:"|sed -e "s/xwininfo\:\ Window id:\ // ;s/\ .*//") -fps 15 -device hw:1,0

Where...

-windowid $(xwininfo |grep "Window id:"|sed -e "s/xwininfo\:\ Window id:\ // ;s/\ .*//")

is the window you what to record. If you what to record your whole desktop just drop this portion of the command.

-fps 15 = frames per second

-device hw:1,0 = microphone location

When first launching the command, a cross-hair will appear and you use it to select the window you want to record. Clicking on a window will start a recording session.

Some handy key combos...

Ctrl + Alt + p = pause the screencast.
Ctrl + c = ends the session. There is a slight pause before the video starts encoding. Tapping Ctrl + c a second time and you'll lose whatever is left that wasn't encoded before it finished.

The default output is an out.ogv file sitting in your /home. You can watch what you recorded by clicking on the file. Kaffeine plays them fine. For some reason VLC doesn't play the sound on my system.

Part two: Mencoder tomorrow.
« Last Edit: March 07, 2009, 06:04:10 AM by Jaws » Logged

Paul LeBlanc
LGU Founder
Hero Member
*****

Cookies: 31
Offline Offline

Posts: 2102


The world is going crazy, I could use the company


WWW
« Reply #1 on: March 05, 2009, 08:58:38 PM »

 Nice info Jaws.. thanks. My mic is still sitting here... not even set up... (typical me... Cheesy)
 I get nervous cuz everyone laughs when I talk cuz I often sound like Sam Elliot doing those "Beef... it's whats for dinner" commercials Roll Eyes (must be all the smokes)
Logged
Dadster
LGU Co-Founder
Administrator
Hero Member
*****

Cookies: 63
Offline Offline

Posts: 1640



WWW
« Reply #2 on: March 05, 2009, 09:10:09 PM »

 Good timing, Jaws. I was fooling around with RMD monday night.  Didn't realize I was recording stuff until I noticed the 3 tabs on the tool bar. It seems I was recording everything on the desktop in triplicate. While all along I thought I couldn't get it to work.  I did try 3 times. Roll Eyes Tongue
Logged

It is difficult to free fools from the chains they revere. - Voltaire.
Jaws
Administrator
Hero Member
*****

Cookies: 61
Offline Offline

Posts: 1914



« Reply #3 on: March 06, 2009, 08:52:02 AM »

I'm not going to pretend to know the ins and outs of MEncoder. This is an app you can experiment with using different option and see what they do. Again, there are GUI front-ends to MEncoder but using the terminal is pretty straightforward.

For instance, after successfully encoding numerous videos, I wanted to know how to connect two or more videos into one file. I noticed that the original command I started out with was not working right. The sound for the first part video was very quiet while the second part was normal. Sure enough I moved the input file options around and it played well for both segments.

This is the command I use for single file encoding...

Code:
mencoder  -ovc lavc -ofps 30 -oac mp3lame -af volnorm=1:0.5 out.ogv -o output.avi

Where...

-ovc lavc = uses the libavcodec video codecs.
-ofps 30 = output file frames per second
-oac mp3lame = encode to MP3 (using LAME).
-af volnorm=1:0.5 = increases sound volume.
out.ogv = input file
-o output.avi = output file

If you want to string together more then one video...

Code:
mencoder  -ovc lavc -ofps 30 -oac mp3lame -af volnorm=1:0.5 out.ogv out-1.ogv -o output.avi

I didn't check but I'm sure using wildcards for multiple input files in the current directory would work. Something like *.ogv -o output.avi

Some useful commands...

Code:
mencoder -oac help = available audio codec

mencoder -ovc help = available video codec

There are a ton of web sites to research with options galore, of course I hardly read any of it... Cheesy

http://linuxreviews.org/man/mplayer/
http://web.njit.edu/all_topics/Prog_Lang_Docs/html/mplayer/encoding.html
http://diveintomark.org/tag/give = some background info on encoding.

Anyone wanting to add or correct something, please do.

Cheers
« Last Edit: March 07, 2009, 06:53:17 AM by Jaws » Logged

conholster
Sr. Member
****

Cookies: 28
Offline Offline

Posts: 377


me me me


WWW
« Reply #4 on: August 31, 2009, 09:39:46 AM »

How to go about editing the captures after recording? Like speeding up some parts and stuff?
Logged

Paul LeBlanc
LGU Founder
Hero Member
*****

Cookies: 31
Offline Offline

Posts: 2102


The world is going crazy, I could use the company


WWW
« Reply #5 on: August 31, 2009, 07:39:19 PM »

How to go about editing the captures after recording? Like speeding up some parts and stuff?
You mean to sound like Alvin & the Chipmunks?  Cheesy
Logged
lunoob
Hero Member
*****

Cookies: 44
Offline Offline

Posts: 1196


Old 'LGU' Guys Rule.


« Reply #6 on: August 31, 2009, 08:39:35 PM »

How to go about editing the captures after recording? Like speeding up some parts and stuff?

I've found Audacity to be good for that.  It has a fairly intuitive interface, and the effects plugins are pretty cool.
Logged

Ssh!  I'm trying to concentrate!!
conholster
Sr. Member
****

Cookies: 28
Offline Offline

Posts: 377


me me me


WWW
« Reply #7 on: September 01, 2009, 08:38:19 AM »

I thought audacity was just for audio(?).

You mean to sound like Alvin & the Chipmunks?  Cheesy

I meant editing the video mr. Smartpants  Roll Eyes
Logged

Paul LeBlanc
LGU Founder
Hero Member
*****

Cookies: 31
Offline Offline

Posts: 2102


The world is going crazy, I could use the company


WWW
« Reply #8 on: September 01, 2009, 10:21:27 AM »

 Tongue Cheesy
Logged
Sproggy
Full Member
***

Cookies: 10
Offline Offline

Posts: 59


coz i am Simply Super Man!!!


WWW
« Reply #9 on: September 01, 2009, 01:23:50 PM »

Jaws thanks for this ... i know what to do without a GUI now woohooo

Kori
Logged
lunoob
Hero Member
*****

Cookies: 44
Offline Offline

Posts: 1196


Old 'LGU' Guys Rule.


« Reply #10 on: September 01, 2009, 07:10:20 PM »

I thought audacity was just for audio(?).

You mean to sound like Alvin & the Chipmunks?  Cheesy

I meant editing the video mr. Smartpants  Roll Eyes

Oh, now I get it.  I thought you meant audio too.  I haven't done speed changes with it yet, but I believe you can do a lot of that kind of stuff in Blender using a Sequence session.
Logged

Ssh!  I'm trying to concentrate!!
freddyp
Blender Guru
Global Moderator
Hero Member
*****

Cookies: 37
Offline Offline

Posts: 479



« Reply #11 on: September 02, 2009, 05:35:35 AM »

Quote
Oh, now I get it.  I thought you meant audio too.  I haven't done speed changes with it yet, but I believe you can do a lot of that kind of stuff in Blender using a Sequence session.

Blender, IMO is not only the best video editor for linux, it's also the only one (in linux) that I can get to work. There is a very steep learning curve when it comes to mixing and chopping video and audio, but its worth the effort.
Logged
lunoob
Hero Member
*****

Cookies: 44
Offline Offline

Posts: 1196


Old 'LGU' Guys Rule.


« Reply #12 on: September 02, 2009, 11:10:43 AM »

Yup.  Steep learning curve, but once you get a lot of the basics - the Select, Grab, Zoom, Object/Edit modes etc. -  it becomes really fast and easy to do amazing things. 

Here's a pretty good tutorial for getting started with Blender's Sequence Editor:

http://www.blendernation.com/tutorials/blender-3d-beginner-tutorial-the-blender-sequence-editor/

Depending on how much time you have to devote all at once, it may take days to get through it.  But it gives tons of good info. 
Logged

Ssh!  I'm trying to concentrate!!
conholster
Sr. Member
****

Cookies: 28
Offline Offline

Posts: 377


me me me


WWW
« Reply #13 on: September 02, 2009, 01:40:38 PM »

hmmm....steep learning curve....small chance of success....didnt know I could run that fast Wink Looking into kdenlive now. Only problem is it doesnt seem to support .ogv files.
Logged

freddyp
Blender Guru
Global Moderator
Hero Member
*****

Cookies: 37
Offline Offline

Posts: 479



« Reply #14 on: September 02, 2009, 04:45:33 PM »

Quote
ooking into kdenlive now. Only problem is it doesnt seem to support .ogv files.

I've been trying to get kdenlive running properly for a long, long time and finally just gave up, don't know if its kden, PCLOS or my computer.

Kmediagrab is a nice quick and easy way of converting those .ogv files that recordmydesktop puts out, if you get kdenlive working.

P.S. I've learned to set up kdenlive to auto save every two minutes 'cause it would crash about every two and a half.
Logged
Pages: [1] 2   Go Up
  Print  
 
Jump to: