LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-20-2012, 09:58 AM   #1
Mike_V
Member
 
Registered: Apr 2009
Location: Boston MA
Distribution: CentOS 6.2 x86_64 GNU/Linux
Posts: 59

Rep: Reputation: 19
Using ffmpeg to grab movie of a part of my screen and not the whole screen


Hi there,

I'm trying to capture a part of my screen as movie. From other sites I've found this:
Code:
ffmpeg -f x11grab -s wxga -r 25 -i :0.0 -sameq output.mpg -t 20
and it nicely captures a movie of my whole screen for 20 seconds, but I now want to restict the movie to only capture a part of the screen.

Does anybody have experience doing this with ffmpeg?

I have already played with the flags -padleft (which will give a black area on the left in the output and does not "restrict" the movie to capture a smaller area), and -cropleft ("error cropping picture").

I have been searching for a linux version of Capture Me that I use on my mac. Capture Me has a nice gui with a box that I can simply lay over a part of my screen that will then be recorded.

Thanks,
Mike

Edit: I'm currently working on linux CentOS 6.2 RedHat

Last edited by Mike_V; 06-20-2012 at 11:46 AM.
 
Old 06-20-2012, 03:34 PM   #2
mjolnir
Member
 
Registered: Apr 2003
Posts: 815

Rep: Reputation: 99
I don't use centos so your on your own with this. I use recordmydesktop with ubuntu and it works well.

From here: https://sites.google.com/site/develo...-on-centos-6-2

'How to install recordmydesktop on centos 6.2 Download the source tar.gz from http://recordmydesktop.sourceforge.net/downloads.php
Open terminal and cd into the directory which contains the tar.gz file
execute "tar -xvzf <filename>.tar.gz". This will create a new folder.
ecexute "cd <new folder name>"'

Code:
yum install zlib-devel
yum install libICE-devel
yum install libSM-devel
yum install libX11-devel
yum install libX11-devel
yum install libXext-devel
yum install libXfixes-devel
yum install libXdamage-devel
yum install libvorbis-devel
yum install libtheora-devel



make
make install
I do have some ffmpeg scriptlets somewhere on another box that will do this but recordmydesktop is much easier for just occasional use. I have a bad habit of forgetting how the heck I did something if I don't use it often. :-)

Last edited by mjolnir; 06-20-2012 at 03:44 PM.
 
  


Reply



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
ffmpeg screen capture with (video+sound) Stragonian Slackware 15 11-26-2011 07:11 AM
Screen grab software Paul_Lee Linux - Software 2 06-08-2010 08:01 PM
The movie screen appeared incorrectly thone Linux - General 1 08-11-2004 10:49 PM
grab - Simply a useless bash script to take a screen shot; Required command: import micxz Programming 2 10-08-2003 07:59 PM
Screen Movie Makers/Recorders Paul12 Linux - General 3 08-14-2001 01:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:12 PM.

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
Open Source Consulting | Domain Registration