Join Tony Harmer for an in-depth discussion in this video Adding audio and video, part of Creating EPUBs from a Pages Document.
- Pages is perhaps the easiest tool I can think of to create something called Enhanced ePub, and that's essentially an ePub, where like this one, that is primarily text based, but supported with some rich media elements. Obviously, you want to be careful here, and you don't want to include too much video or audio in your file, because remember, you're going to push the size up and there's kind of an 11 meg limit per chapter, so it really should be something that just supports the text rather than replacing it.
And indeed, if video becomes the main focus of your ePub, you might want to look at creating something in the fixed layout format. So, what I'm going to do here is, I'm just going to insert another section just after this first page here, just before the contents, and add a movie. So if I choose Insert Section, then that will be placed there like so, so here's my section that I'm going to place some video into. So I'm just going to click on the page.
So if this is something I've already got in my movies folder on my Mac or with my iPhoto collection, then I can add that using this Media tab at the top here, and focusing on movies. But it isn't, so I'm going to go to the Insert menu and then I'm going to choose the media. Now, the file I'm working with here is the AddVideo file, which is in the chapter four folder and if you're a premium subscriber to the lynda.com online training library, you'll be able to have access to this file and the files I'm about to place into this document.
Or of course, you could work along with any files of your own. So I'm going to choose sherlockintro.mov just there, it's h264 video at 720p, which is ideal for this kind of thing, so I'm just going to click Insert, just there. And so the video is added. Now, because there's nothing else on the page, it's kind of fine sitting where it is, really, but it's always a good idea to kind of get it sat in a paragraph style, so I'm just going to choose my Image paragraph style there, and hopefully be able to drag that in.
Now there's one other thing I need to do first if I go to the Arrange tab while the video is selected, and then choose Inline with Text, just there, and hopefully now that's just kind of snapped into that, it has indeed, I can see that. I can kind of change that around and it just reads Image at the top there, so that's great. I can do a couple of other things with the video as well, if I go to the Movie tab in the Inspector, and you can see I can replace the movie with other content, I can view it by playing these controls, so if I just play that (dog howling) so there you are, it's got a nice scary little jump bit in just a moment.
So I can play that through. I can edit the movie by trimming bits away, so if I need to just move this slider here and move this slider here from the end, I can actually trim this down. So if there was stuff I wanted to remove, then I could do that like so. All the simple editing stuff. Of course, anything more complex you'd need to use a video editor. I can choose a poster frame, quite simply, that's the image that you will see before the movie actually starts playing, so I'm gonna just kind of move that so I've got A Conan Doyle just over the top of Baskerville Hall, like so, perfect.
So there's my poster. And I can determine how this plays back, whether it loops or whether it loops back and forth, so plays out, plays in reverse, and playback like so. I'm just gonna leave that set at None. And there you are. That's how easy it is to add some video. Having audio is very very similar. I'm just going to drop down a line here and choose Insert, Choose, and then I'll choose my mp3 file, like so, and insert that. You can see, very similar controls, although inline is greyed out in the text wrap just there.
I can choose whether it moves along with the text or stays on the page, just sits there, like so. Because this is sort of a (indeciperhable) ePub, it moves to move. And then I've got similar controls for the audio, as I had with the video. And that will just play this small sound clip. "Elementary my dear Watson." And that's like my best ever Sherlock Holmes impersonation (laughs), but there we are. If I need to check that these are formatted for iOS, then what I can do is I can target them, I've just clicked on the movie now.
If I go to the format menu, you'll see for Movie, there is Optimize for iOS and it will do that like so. And just convert that, as you can see to H264 so perhaps it wasn't as I said it was earlier on. And if I go for the audio, you can actually do that still within the same way. And there you go. Those are both formatted for that. It is something you need to be wary of if you're using Pages on iOS. So if you're doing it on your iPad, because if it isn't a compatible format, then it will just convert it to a still image, so always always check your resulting ePub before you try pushing it out to the world.
But there we are. That's how we can add rich media elements to our ePub and create enhanced ePub.
- Building paragraph and character styles
- Creating a template
- Adding a table of contents
- Adding images, audio, video, and links
- Adding a book cover
- Converting footnotes and endnotes
- Exporting to EPUB from a desktop or a mobile device