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 6581931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:12:58+00:00 2026-05-25T16:12:58+00:00

How can I convert a video file (mpeg, for example) into a collection of

  • 0

How can I convert a video file (mpeg, for example) into a collection of images?

Ideal answer would cover both C++ and Java using available libraries, and also how to manually strip the individual frames out of a video file for some common video format.

  • 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-05-25T16:12:58+00:00Added an answer on May 25, 2026 at 4:12 pm

    To extract all frames losslessly, use

    ffmpeg -i "$input_file" -f image2 "outdir/%05d.png"
    

    If you prefer a different output format, just change .png; by default ffmpeg will infer the file type from the extension.

    The option -f image2 tells ffmpeg to write to a series of images. The "outdir/%05d.png" gives a filename pattern, in this case “5-digit frame number.png“.

    If you only want to extract n frames per second, add the option -r n after "$input_file". (I think n can be floating-point.)

    In the case that your video is Motion JPEG (mjpeg), instead use:

    ffmpeg -i "$input_file" -vcodec copy -f image2 "outdir/%05d.jpg"
    

    This unpacks the frames directly from the video stream, which is faster and obviously uses less disk space.

    For more information/other options, see the man page or the documentation (search for image2).

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

Sidebar

Related Questions

I need to convert image sequences(ie,png) to video file in iPhone. How i can
How can I convert a byte array to a video file? like mp4 Given
I want to convert a video, say catch.avi , into its frames (as images)
I'd like to be able to use FFmpeg to convert a video file from
how can i upload and convert the video to mp4 behind the scene so
I have 28,000 images I need to convert into a movie. I tried mencoder
How can you display a video (mpeg or avi) with controls (play, stop, fullscreen)
I need to convert mp3 files into mp4 or any other video formats, with
I have a *.mp4 video file(MPEG4 video codec) and I am trying to convert
I have a list of Bitmaps, how can I convert it to avi file

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.