LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Using ffmpeg to grab movie of a part of my screen and not the whole screen (https://www.linuxquestions.org/questions/linux-software-2/using-ffmpeg-to-grab-movie-of-a-part-of-my-screen-and-not-the-whole-screen-4175412485/)

Mike_V 06-20-2012 09:58 AM

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

mjolnir 06-20-2012 03:34 PM

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. :-)


All times are GMT -5. The time now is 10:40 PM.