![]() |
#1 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Dec 2012
Device: Nexus 7
|
Adding video to an ebook in Sigil
I see that support for audio and video were added to Sigil in version 0.6.1. I'm trying to figure out how to add videos to my ebook, and I couldn't find any kind of documentation on this forum or elsewhere that told me what the tags are supposed to look like, and there was no functionality that I could find for adding video tags in the application itself. I tried putting in tags formatted according to html5, and Sigil complained that it wasn't valid xhtml. Can anyone point me to some description of the proper way of including video in my ebook with Sigil?
|
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,358
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
There might be a slight difference between "no longer eliminates video and audio tags" and "support for video and audio."
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Create the epub, using placeholder tags. Then you'll have to edit the ePUB by hand, using an HTML editor (or you can use ePUBtweak). If the former, explode the ePUB; if the latter, it will explode it for you. Open the file(s) in which you've placed the placeholder tags. Replace the placeholder tags with the "<video>" tags, or what-have-you, and then SAVE. You'll have to put the actual video in the eponymously-named folders. With regard to what the tags should be or say, I'll recommend that first, you pay a visit to w3schools.com and brush up on those tags, and then you'll need to read the documentation for whichever retailer you're aiming at, to be ungrammatical. Each retailer (device) is different. If you're working for iBooks, the most likely culprit, read the iBooks Publisher's Asset Guide, and they'll detail the exact tag usage, and what types of audio/ video you have to use. OK? Hope that helps. Hitch |
|
![]() |
![]() |
![]() |
#4 | |
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
0.6.2 allows you to add video directly in Sigil just like adding an html page or image (at least it should and if it doesn't then that's bug). 0.6.2 does not support playing the video (or audio) in book view or code view. 0.7.0 will.
Quote:
|
|
![]() |
![]() |
![]() |
#5 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hell, really? I thought we were still limited to doing it the old fashioned way! Cool--thanks, guys. ETA: Seriously, thanks. We do a fair number of these, and having this capability will be SUPER.--H Hitch Last edited by Hitch; 12-22-2012 at 02:57 PM. Reason: Added bigger THANKS. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Dec 2012
Device: Nexus 7
|
Thanks, Hitch, for the response, that does help.
Quote:
Also, if it doesn't support playing the video, will a thumbnail or anything show up, or will the place be blank in the book view? |
|
![]() |
![]() |
![]() |
#7 | ||
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
webm and h.264 are the recommended formats per the EPUB 3 spec.
Quote:
Quote:
Audio extensions:
Video extensions:
* mov was added to the video list after 0.6.2 was released. This is a limitation of the version of Qt Sigil uses because not all HTML 5 features are supported. 0.7.0 will be using Qt 5 which has added HTML 5 support. |
||
![]() |
![]() |
![]() |
#8 | |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Dec 2012
Device: Nexus 7
|
Quote:
I figured out the codec issue - I thought I was using mp4, but apparently it was an mpg from my camera. I converted the file, and now it shows up in the right spot. So all I need to know is, is there functionality to add the video tags already in Sigil, and if so, where is it, or do I need to do as Hitch said and add the tags myself after figuring out the particular format that I need? Thanks for your help. |
|
![]() |
![]() |
![]() |
#9 | ||
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Quote:
Quote:
Code:
<audio controls="controls" src="../Audio/audio.ext"></audio> <video controls="controls" src="../Video/video.ext"></video> |
||
![]() |
![]() |
![]() |
#10 | |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Dec 2012
Device: Nexus 7
|
Quote:
|
|
![]() |
![]() |
![]() |
#11 | |
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Quote:
|
|
![]() |
![]() |
![]() |
#12 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Sorry about the original misinformation, truly. Hitch |
|
![]() |
![]() |
![]() |
#13 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Feb 2013
Device: iPad
|
Hi, I downloaded the new Sigil Version 0.7.0 and tried to insert audio (mp3) and video (mpeg4) files into Sigil.
It was quite easy to insert them, but the EPUB Validation says that audio and video are no valid elements. The HTML Code looks like: <audio controls="controls" src="../Audio/Audio.mp3">Audio</audio> <video controls="controls" src="../Video/Video.mp4"></video> The EPUB Validation says: attribute 'controls' is not declared for element 'audio' attribute 'src' is not declared for element 'audio' no declaration found for element 'audio' element 'audio' is not allowed for content model '(p|h1|h2|h3|h4|h5|h6|div|ul|ol|dl|pre|hr|blockquo te|address|fieldset|table|switch|form|noscript|ins |del|script)' The same messages apear for the 'video' tag. When I try to open the EPUB (with video or audio tags) on the iPad it says that the file could not be downloaded. When I delete the audio an video tags it works perfectly. I can open the EPUB (with video or audio tags) on my desktop with Azardi and Adobe Digital Editions but the videos don't play. So, the new Sigil version does support audio and video. But the validation not? And there seems to be a problem on the iPad with these audio and video tags. Do you run into the same issues when trying to open an EPUB created with Sigil with audio and video on the iPad? Thank you for your help! Last edited by x-li-x; 02-22-2013 at 12:26 PM. |
![]() |
![]() |
![]() |
#14 |
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
There is a difference between supporting audio and video and it being compilant for EPUB 2. You can add audio and video but it's still invalid because Sigil does not yet support EPUB 3.
|
![]() |
![]() |
![]() |
#15 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Do you have a poster image? I don't see your height and width settings for the video, either? Or a width for the video control? Hitch |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sigil Adding Page Breaks in TOC! | jackibar | Sigil | 16 | 10-24-2012 01:20 PM |
Problem: Sigil Auto-adding Attributes to <p>'s | drummerboy | Sigil | 7 | 08-19-2012 10:50 AM |
Sigil Adding White Space? | beingnickb | Sigil | 20 | 07-31-2012 07:43 AM |
Sigil 0.2.0 Embedding Fonts - Adding all the bits | ghostyjack | Sigil | 30 | 05-14-2011 03:30 AM |
Sigil Automatically Adding Code | christinerose | Sigil | 7 | 04-28-2011 11:07 AM |