You are not logged in.
I have a nice command to capture a video of my desktop/s. (ffmpeg is compiled with x11grab)
I have two screens, main to the left, secondary to the right, a continuation of main.
If I run:
ffmpeg -f x11grab -s `xdpyinfo | grep 'dimensions:'|awk '{print $2}'` -r 25 -i :0.0 ./Desktop/mydesktop.mkv
I get a video of both screens as one, with a size of 3840x1080
If I run
ffmpeg -f x11grab -s 1920x1080 -r 25 -i :0.0 ./Desktop/mydesktop1.mkv
I get my main screen
How would I do a screen video capture of my secondary screen only? (e.g from 1921-3840)
Last edited by Joe90 (2015-01-19 02:04:47)
Offline
A really wild guess on my part since I only have one screen and don't have ffmpeg is compiled with x11grab
ffmpeg -f x11grab -s 1921x3840 -r 25 -i :0.0 ./Desktop/mydesktop2.mkv
Let me know.
Edit: mydesktop2.mkv
Last edited by Sector11 (2015-01-18 23:20:21)
· ↓ ↓ ↓ ↓ ↓ ↓ ·
BunsenLabs Forums now Open for Registration
· ↑ ↑ ↑ ↑ ↑ ↑ · BL ModSquad
Offline
^ Probably want that to be "1921x1080"
That's not going to work though, as you'll need offset of x-coördinate + 1920x1080. I'm not sure how to specify this. The offset should obviously be 1921, but again: not sure how to specify it.
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
I am a #! forum moderator. Feel free to send me a PM with any question you have!
Offline
this may help. The o.o specifies the display, +x,x specifies offset as below:
0.0 is display.screen number of your X11 server, same as the DISPLAY environment variable.
ffmpeg -f x11grab -video_size cif -framerate 25 -i :0.0+10,20 /tmp/out.mpg
Offline
Figured it out, in fact I appear to have answered something similar to this on another forum @ 3 years ago, must be my age!
The screen size is the same as in the second example: "-s 1920x1080", but as tknomanzr rightly points out, I needed an x coordinate after the display section: :0.0+1920,0.
Full code for secondary screen capture:
ffmpeg -f x11grab -s 1920x1080 -r 25 -i :0.0+1920,0 ./Desktop/mydesktop1.mkv
Thanks for the help guys
Offline
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat