XML technologies / ePUB / ePub für (In)Designer / Videos in ePub / Basics of iOS-compatible video

(Excerpt from “ePub für (In)Designer — Mit InDesign Schritt für Schritt zum E-Book” by Sascha Heck & Yves Apel)

Until recently, the only way to create video playable on Windows and Macintosh without extra software was uncompressed AVI (Audio Video Interleave). Without permitted size reduction, a few minutes quickly occupied hundreds of megabytes or several gigabytes, unthinkable for an e-book.

The highly efficient compression of H.264 (MPEG4) solved this. High-resolution video, including HD, can now have small files. H.264 is popular because it works on common Windows, Macintosh, iOS and other mobile systems, allowing playback almost everywhere.

H.264 is often called MPEG4, especially as extensions are mp4 or m4v. Note, however, that MPEG4 is not limited to H.264 and may also include standards such as DAVC, X.264 and Matroska. Ensure MPEG4 video is created in the H.246 standard.

Note:
While researching this book, we found online claims that mp4 files do not work in iBooks on iPhone. Our tests revealed no problems.

File sizes

Video exceeds audio, images and text in size. With common dimensions and medium compression, one minute requires about 7–10 MB. Longer and more numerous videos slow e-book opening and display. When planning an enhanced e-book, remember ePub’s maximum size of 2 GB.

Video also demands considerable device power. Oversized video may stutter on weaker devices or crash the app or device.

Aspect ratio

Aspect ratio describes screen and video proportions as width:height. Common ratios are 4:3, older television, and 16:9, widescreen.

Common 4:3 dimensions are 1024 × 768, 640 × 480, 480 × 360, 400 × 300 and 320 × 240; 16:9 uses 1280 × 720, 640 × 360, 480 × 270 and 400 × 224.

iPad is 4:3. A 16:9 video therefore has black bars above and below to show the whole frame; filling the screen instead hides parts on the left and right.

Preview image

A preview is usually a frame from the video, displayed while not playing. Define one. Apple inexplicably specifies 300 × 150 pixels, ratio 2:1, while requiring 4:3 or 16:9 video. These conflict: exporting the preview with the video’s proportions is preferable.

Barnes & Noble NOOK Color requires both preview and video in widescreen to avoid distortion.

Bitrate

Bitrate defines video resolution, measured not in dpi but kbit/s. For iPad and other tablets, 1,000 kbit/s suits the available screen size. For comparison, ordinary television on a much larger screen uses about 3,500 kbit/s; DVD, 9,800; BluRay, 40,000. Higher resolution means larger files.

Conclusion

For iPad-only output, use 4:3. For multiple devices, prefer 16:9 widescreen. The popular 480 × 270-pixel size gives good results. Bitrate should not exceed 1,000 kbit/s.

  

 

 

 

back to top