Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8451097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:08:45+00:00 2026-06-10T11:08:45+00:00

I am using this command to extract a series of images from a video

  • 0

I am using this command to extract a series of images from a video to express them as a visual time-frame of the video.

ffmpeg -i inputfile.mp4 -r 1 -t 12 image-%d.jpeg

Most of my videos are in mp4 format. I am able to extract the images successfully but the time taken for extraction is too long.

Is there any way I could reduce the time for image extraction ?

EDIT: It is taking me 60 secs to get 8 thumbnails from a 15 sec long video encoded in MP4 format, I am doing this operation on my Galaxy Nexus(Android Phone) is there any way to improve the speed of operation, ideally I want it be less than ~10secs.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T11:08:46+00:00Added an answer on June 10, 2026 at 11:08 am

    Hm, define “slow” 🙂 I just did this and it took four seconds on a standard machine. There might be ways to speed that up, but ffmpeg has to decode the MP4 packet structure (GOP), extract the frame and store the JPG image – four seconds looks reasonable to me. I just see little room for improvement in your command-line:

    ffmpeg -i inputfile.mp4 -r 1 -an -t 12 -s 512x288 -vsync 1 -threads 4 image-%d.jpeg

    Play around with the threads and -s parameter (this one defines the target image size – it will not speed up the process, but if you don’t want to keep the source image size it will save you an additional step).

    Also, make sure that you have an ffmpeg build that matches your platform – there are great differences in speed there. Unfortunately, I can’t give you a general advice here. For your scenario it may be an idea to compile the ffmpeg sources yourself.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently I am using this command to extract the images: ffmpeg -i input.mp4 output_%03d.jpeg
I'm using the schtasks command from C# like this: schtasks /create /sc ONCE ...
I'm using this sql command to get column names : select COLUMN_NAME from INFORMATION_SCHEMA.COLUMNS
I'm using the data loader from command line to extract all the FeedItems that
I got this extract from msdn MSDN COMMAND BUILDER CLASS . Would it be
I am using this command to generate Localizable.strings file. I have to go through
I built wxWidgets on Linux using this command: ../configure --enable-shared --disable-debug It see results
I have turned computer monitor off using this command SendMessage(f.Handle, WM_SYSCOMMAND, (IntPtr)SC_MONITORPOWER, (IntPtr)(turnOff ?
I have compiled my application on Linux (Intel) machine using this command gcc –g
how to insert inner array in mongodb using php I run this command in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.