Please note that LinuxExchange will be shutting down on December 31st, 2016. Visit this thread for additional information and to provide feedback.

Hi, I want to take a screenshot of my desktop using FFMPEG, however I have no clue of how to set up a command like this and every time I search on google I only get how to extract a frame from a video... I ONLY want to take a single screenshot from my desktop using FFMPEG, so what is the command for that? Also, I am using ubuntu 12.04 LTS.

asked 04 Jun '14, 09:23

LinucNerd's gravatar image

LinucNerd
1123
accept rate: 0%




This is off the top of my head, but it may get you started.

ffmpeg -t 1 -s 1024x768 -f x11grab -i :0.0+0,0 -f mjpeg output.png

-i is input file and this tells it to use the desktop starting from top left
-t 1 is to take a frame
-s is size
man ffmpeg :-)

link

answered 16 Jul '14, 11:26

Jim4Prez's gravatar image

Jim4Prez
111
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×81
×9
×8

Asked: 04 Jun '14, 09:23

Seen: 5,237 times

Last updated: 16 Jul '14, 11:26

powered by OSQA