Page 1 of 1
Video screen capture using image magick
Posted: 2018-08-14T17:31:30-07:00
by bhushan
Hello, I need to take the screen capture from the video. Can I use ImageMagick for that? If yes, how can I use that? The overall idea is to capture at least one screen of the video.
Thanks in advance.
Re: Video screen capture using image magick
Posted: 2018-08-14T18:32:52-07:00
by snibgo
You can capture one frame, such as frame 100, of the video like this:
Re: Video screen capture using image magick
Posted: 2018-08-14T23:26:24-07:00
by bhushan
Thank you, snigbo for the quick response.
Can I also provide arguments to specify height and width of the output image?
Re: Video screen capture using image magick
Posted: 2018-08-14T23:37:31-07:00
by bhushan
Hi Snigbo,
I was able to find out how to resize but the output picture is blurry. Below is the command which I used.
Code: Select all
magick "SampleVideo_1280x720_5mb.mp4[100]" -resize 250x250 videoout.png
Can you suggest if there is a better way to get more clarity of the screen capture?
Thanks.
Re: Video screen capture using image magick
Posted: 2018-08-15T03:53:34-07:00
by snibgo
bhushan wrote:... but the output picture is blurry.
Is the unresized frame blurry? Can you link to it?
Video frames are often blurry, compared to still images. This may be due to movement, or the compromises of in-camera processing needed to record 30 frames/second.
There are many possible ways to sharpen an image. especially when also downsizing it.