Video audio images in documents




Add image-files


What should be considered?

When using image files in ebooks there are a few things to consider:


When preparing chapters with images, the used file-formats should be always RTFD, Textbundle or Textpack.

Note: Images in Word and OpenOffice documents are not supported.

RTFD-files

RTFD-files can be easily created using Apple's text editor Textedit, which is preinstalled on every Mac. The image file to be added to the chapter can simply be added anywhere in the text by drag'n drop. More is not necessary in this case for preparation. When importing the chapter, eBookBinder automatically detects the included image file and prepare the chapter accordingly to include the image for the final eBook. The result can already be viewed via the chapter editor.

Textbundle- and Textpack-Files

The following points should be noted when embedding image files:


Textbundle-/Textpack-files are always associated with a markup language. For the Markdown and MultiMarkdown languages, the example below can be copied directly. For other languages ​​use the appropriate markup codes.

Note: After embedding do not forget to replace the file name (image-file.jpg) with the name of your own file.

![Alternative Txt](image-file.jpg)

Add Video and Audio Files


What should be considered?

When using audio- and video-files in eBooks there are a few things to be considered.

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


  1. The choice of video and audio format.


For video-files, the following three formats are supported for use in ePub-files:


iBooks and eBook readers based on the Webkit engine running on Apple devices can also play the mov format. However, iBooks can not run either ogg- or webM-videos. In order to achieve the greatest possible coverage the mp4-format should be used.

For audio files, the following three formats are supported for use in ePub-files:


Again, only one format should be used: mp3. Mp3 offers the highest possible coverage and causes the fewest problems.

Video and Audio Files in eBookBinder

As with pictures, video- and audio-files need to be already included in the chapters before they are added to eBookBinder. The text-file formats RTFD, Textbundle and Textpack are ideal for this.

RTFD files

RTFD files can be easily created using Apple's text editor Textedit, which is preinstalled on every Mac. The video- or audio-file to be added to the chapter can simply be added anywhere in the text using drag'n drop. More is not necessary in this case for preparation. When importing the chapter, eBookBinder automatically detects the included video-/audio-file and prepares the chapter accordingly to include the video for the final eBook. The result can already be viewed via the chapter editor.

Textbundle and Textpack Files

The following points should be noted when embedding video- and audio-files:


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

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

Code for video-files

<video src="assets/video-file.mp4" type="video/mp4" controls="controls">
Your eBook-Reader doesn't support video-data.
</video>

Code for audio-files

code
<audio src="assets/audio-file.mp3" type="audio/mpeg" controls="controls">
Your eBook-Reader doesn't support audio-data.
</audio>

Final

When these preliminary steps for the individual chapters are made, the chapters can be imported directly into eBookBinder. eBookBinder handles everything else automatically.