Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Compression Techniques How to take screen shot of video size by ffmpeg

  • How to take screen shot of video size by ffmpeg

    Posted by Rahul Mehta on February 8, 2011 at 7:38 am

    Hi,

    I want to take screen shot of size of the video. How can if take it , as now i can take the screen shot of this size like 120×90 by following code.

    $cmd = "$ffmpeg -i $video -deinterlace -an -ss $second -t 00:00:01 -r 1 -y -s 120x90 -vcodec mjpeg -f mjpeg $image 2>&1";

    Please suggest .

    Thanks

    Michael Rampe replied 15 years, 7 months ago 2 Members · 1 Reply
  • 1 Reply
  • Michael Rampe

    February 14, 2011 at 11:32 pm

    [Rahul Mehta] “I want to take screen shot of size of the video. How can if take it , as now i can take the screen shot of this size like 120×90 by following code.”

    Not sure of the question here. Do you want the size to be the same as the original? If so, just remove the -s flag and FFmpeg will use the source size.

    Michael

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy