29eBookBindBinder Tutorial - Embed Video- and Audio-files

In the following, I'll explain in detail how video- and audio-files have to be prepared/embedded in text-files so eBookBinder can integrate them later in the final eBook. This article has become quite long and sometimes a bit technical. But if you have done it once, consecutive edits should then easily go of the hand. A small note: For this tutorial eBookBinder 1.4.0 Beta 1 is required. You can download this version from following links:

Whether you use the Sandboxed- or the sandbox-free-version, does not matter in this case.

For more information about eBookBinder 1.4.0 Beta 1 can be found in the last post::eBookBinder 1.4.0 Preview

Now, let's get to the topic:

What has to be considered

When using audio- and video-files inside eBooks you need to consider a few things.

1. Not all eBook-readers and -programs for reading eBooks support audio- and video-files. In particular, eBookreaders with eInk technology can not play videos in most cases.

2. The choice of video- and audio-format. For video formats there are basically three options:

iBooks and eBook-Readers based on the Webkit-engine running on Apple devices can also play the mov format. iBooks however, cannot play neither webM nor ogg. In order to achieve maximum coverage the mp4-format should be used.

For audio-files, the following three formats are supported in principle:

Also in this case there should be used only one format: mp3. Mp3 offers the widest coverage and causes the fewest problems.

Video- and Audio-files in eBookBinder

Like pictures, video- and audio-files need to be included in the chapters itself before they are added in eBookBinder. For doing so, the textfile-formats RTFD, Textbundle and Textpack are the best choices.


RTFD files can be easily created with Apple's word-processor Textedit, which is pre-installed on every Mac. The video- or audio-file that you want to add to the chapter can be easily added via drag'n drop into the text at any location. That's all in this case to prepare. When importing the chapter, eBookBinder automatically detects the included video/audio-file and prepares the chapter to embed the video for the final eBook. Within the Chapter-editor the result can already be watched.

Textbundle- and Textpack-files

Embedding video- and audio-files in Textbundle-/Textpack-files must comply to following conditions:

Textbundle-/Textpack-files are always associated with a markup-language. For the languages ​​Markdown, MultiMarkdown and Wikitext the examples below can be copied directly. Additional formatting is necessary for other languages (for example, in Smark the code below has to be embedded in +html+ +endhtml+).

After embedding, do not forget to replace the file name (video-file.mp4 and audio-file.mp3) in accordance with the name of your own files.

<video src="assets/video-file.mp4" type="video/mp4" controls="controls">
Your browser does not support the video tag.

<audio src="assets/audio-file.mp3" type="audio/mpeg" controls="controls">
Your browser does not support the audio tag.

If this preliminary work is completed on each chapter you want videos in, the chapters can be added directly into eBookBinder. Everything else is done by eBookBinder automatically.

Until next time!