How to Optimize Videos and Add Them to Your Ebook

A frequently asked question about video files: How big is too big?

Quick answer: Always optimize videos.

Long Answer: Our 7th-grade art teacher, Mr. Hoffman, was a formidable, yet free spirit, committed to bringing out the artist within each of us. Whenever someone dared to approach him with a simple question, like “How big should the tree be?” he scoffed and rattled off the same answer every time. “Legs long enough to reach the bike pedals.”

We sat again grumbling to ourselves, “What do biker’s legs have to do with my tree?” With a little trial and error we usually figured it out, and surprisingly, he did make artists, of sorts, of us all. Now years later, when someone asks how large should an ebook file be, I’m tempted to say in his gruff voice, “Legs long enough to reach the bike pedals.”

Optimize Videos

Interactive ebooks should be no larger than they need to be. Large enough to get the job done, and no bigger.

An unnecessarily large-sized ebook, can cost you:

  1. Inconvenience for your readers in downloading an unnecessarily large file,
  2. Rejections by ebook stores that have an imposed size limit,
  3. Possibility of file corruption, if your computer can’t handle the file size.

No matter how much text you have in your ebook, it will never be the reason for a large file size. The main reason is usually due to large unoptimized media: audio, video, and images. Video is the usual suspect, since a single video file can easily surpass 1 GB.

There are two routes you can take to include video files and still have a nice small ebook.

The first option is to upload the video to a video hosting website like YouTube or Vimeo, then embed the video in your ebook. While embedding videos does result in the smallest possible file size, it does also mean that your viewers will need internet access to see the videos.

The second option is to optimize videos and include them in the ebook for easier and smoother viewing for your readers.

A few days ago we faced a 30-chapter ebook that was 2.2 GB in file size. After dissecting the contents of the ebook, we found 4 videos which alone summed up to 2.1 GB! We managed to optimize the videos and reduce the file size of the entire ebook to only 79 MB, with zero quality loss.

So to help you out, we’ll start a three part blog series on optimizing media for your ebook. Because videos are the most common culprit and their effect disastrous, we’ll start with optimizing videos.

Video optimization

So what is optimizing? Optimizing may involve changing formats, resampling (bit rate, frequency, etc), changing resolution, or downgrading quality. The latter may not necessarily be detectable to the human eye, especially when viewed on small screens. The idea is to reach the least quality and resolution possible while maintaining high quality for your viewers.

Adobe Media Encoder is one of the most popular software options for encoding and optimizing video files. Since the software is not free and comes only as part of the Premiere Pro or After Effects subscription, we will show you how to optimize videos, using a free alternative: Handbrake. It is open-source, available for Windows and Mac, and does exactly what we need. You may download it from the following link: https://handbrake.fr/.

Steps

1. Gather all your video files.

Unless you’re very organized, the easiest way to do this is, is to simply go to the listing of all video files in your ebook in Kotobee Author. Click on the Support menu, and select Open Working Directory. Navigate to the EPUB/video folder. You will find a list of all the videos in your ebook. Conveniently any changes made to these files will instantly take place throughout your ebook.  Keep this window open.  We’ll be needing it in a minute.

Open Working Directory in Kotobee

2. Optimize Videos

1. Open Handbrake. The start screen looks like this.

Open Handbrake

2. Drag and drop a video file from the Kotobee window we just opened to this Handbrake window. You will then have access to all the settings. Note: It is possible to batch convert all the video files at once.

Presets to optimize videos

3. Select a preset. On the right side you will see a panel list of presets, with the selected default being “Fast 1080p 30.” We are mainly interested in the Web presets. If your original video is high definition, a good Web preset would be the Gmail Large preset. Otherwise, you may go with the Gmail Medium. If time is a luxury in your hands, you can play around with different presets until you find the optimal size-quality combination. Don’t bother trying resolutions higher than the original, it will look the same and you’ll end up with a larger file.

4. Enter a new destination for the optimized file (desktop for now would be fine) and check the “Web Optimized” option (below the file name). Note: Do not change the file name.

optimize videos file and web settings

5. Click on Start Encode in the top control bar.

Handbrake: start encode

6. Handbrake will start optimizing your file. The time it takes depends on the length and resolution of the original file. Once the optimization is complete, head back to Kotobee.

3. Replace the original video files.

  1. Once again open Kotobee Author’s working directory. Click on the Support menu, and select Open Working Directory. Navigate to the EPUB/videos folder.
  2. Replace the old video files with the newly generated ones on your desktop.  You can drag and drop or copy-paste.
  3. Save your Kotobee Author project.

If you check your ebook project’s file size now, it should be significantly smaller. Legs just long enough to reach the pedals. No bigger.

Conclusion

Now you’re able to make your future interactive ebook’s videos optimized with appropriate file size. Hope those steps were easy and straightforward. Tune in next time for how to Optimize Audio Files and Images for Ebooks.

You may also like

How to Create an Interactive Ebook: A Step-by-Step Guide

Book Widgets: Everything You Need to Know

The Power of Questions in Interactive Ebooks

Found this article useful? Share it with others!