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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:04:03+00:00 2026-06-11T19:04:03+00:00

I created a GIF using ffmpeg using the following command: ffmpeg -i foo.mp4 -ss

  • 0

I created a GIF using ffmpeg using the following command:

ffmpeg -i foo.mp4 -ss 00:00:18 -t 00:00:06 -pix_fmt rgb24 bar.gif

However, the resulting bar.gif was over 300 MB in size while the movie file foo.mp4 was about 15 MB!

What gives?

  • 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-11T19:04:04+00:00Added an answer on June 11, 2026 at 7:04 pm

    A comprehensive answer to this question is difficult :-p In a nutshell, it comes down to how the compression is done in each format.

    In GIF animations, each frame is conceptually a separate GIF image. All of the GIF images are then stored in one large GIF file, with instructions to play the frames back with a certain delay between the frames. To optimize the frames, you can run the GIF through a program that can delete duplicate information from one frame to the next (the GIMP “Animation Optimize” filter is a good way to do that: GIMP – Simple Animations).

    On the other hand, video formats like MP4 have a different approach. They assume that frames are going to be similar, and only store the difference between two frames. Additionally, the amount of data for each frame is limited to the specified video bitrate given when you begin the compression. Lossy compression is performed to bring the video file down to the desired bitrate. To further optimize the video file, most video transcoders include options for “two-pass encoding”. This runs through the video twice: the first time it just gathers information about what parts of the file are more complex, and then the second time it compresses every not complex portion of the video more aggressively.

    There are many other optimizations as part of the video encoding process that are just plain missing from the GIF file format. Also, it’s worth pointing out that a GIF animation is going to be limited to a 256-color palette, which can result in image dithering. MP4 uses something more similar to a JPEG compression for the video frames (although with additional optimizations targeted specifically at video… the old MJPEG format was basically just stacks of JPEG images, just as GIF animations are stacks of GIF images).

    If you can give more information about your specific use case, we may be able to help you find a better solution.

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

Sidebar

Related Questions

I have successfully used the following command line to create a new GIF image
I've created a motion GIF, and implemented it into a web page button using
I need to create an animated GIF by using frames in Java. For example,
I created a python server on port 8000 using python -m SimpleHTTPServer . When
I created a following class within a namespace Global namespace Global { public static
I'm using Jquery for menu created like: <div class=prof_info1>home</div><div class=prof_info2>info2</div><div class=prof_info3>info3</div> And Jquery code
I'm trying to do something similar to http://www.lukew.com/ff/content/simpletable1.gif . I created my structure like
Using Wordpress I have created a multiple select box so that users can select
In a WPF Application using XAML, I created a stackpanel(width 1030) and I have
I'm a bit new to web-programming. Using DHTML 3.0 Visual Designer I created a

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.