Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 12-21-2012, 12:07 PM   #1
mgardner
Junior Member
mgardner began at the beginning.
 
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?
mgardner is offline   Reply With Quote
Old 12-21-2012, 01:18 PM   #2
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,463
Karma: 192992430
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."
DiapDealer is offline   Reply With Quote
Old 12-21-2012, 07:07 PM   #3
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,447
Karma: 157030631
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by mgardner View Post
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?
Short answer is, you can't.

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
Hitch is offline   Reply With Quote
Old 12-21-2012, 08:21 PM   #4
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,488
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:
Originally Posted by DiapDealer
There might be a slight difference between "no longer eliminates video and audio tags" and "support for video and audio."
Indeed. FlightCrew for example has not been updated to support EPUB 3 and video is an EPUB 3 feature. Right now 0.6.2 is still EPUB 2 with some EPUB 3 feature support.
user_none is offline   Reply With Quote
Old 12-22-2012, 12:33 AM   #5
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,447
Karma: 157030631
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by user_none View Post
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.



Indeed. FlightCrew for example has not been updated to support EPUB 3 and video is an EPUB 3 feature. Right now 0.6.2 is still EPUB 2 with some EPUB 3 feature support.

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.
Hitch is offline   Reply With Quote
Old 12-24-2012, 08:05 AM   #6
mgardner
Junior Member
mgardner began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2012
Device: Nexus 7
Thanks, Hitch, for the response, that does help.

Quote:
Originally Posted by user_none View Post
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.
What format should the video be in to add it like this? I tried it with an MP4 (using the add image button), and it didn't work. When I tried adding the MP4 by right-clicking on the video folder, it stuck it in the audio folder instead. I'll try it again later today and see if I can figure it out (I'm using 0.6.2 on linux, by the way; I just mentioned 0.6.1 above because that's where video tags were mentioned).

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?
mgardner is offline   Reply With Quote
Old 12-24-2012, 08:58 AM   #7
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by mgardner View Post
What format should the video be in to add it like this?
webm and h.264 are the recommended formats per the EPUB 3 spec.


Quote:
Originally Posted by mgardner View Post
I tried it with an MP4 (using the add image button), and it didn't work.
What about the description add image would make you think it deals with video.

Quote:
Originally Posted by mgardner View Post
When I tried adding the MP4 by right-clicking on the video folder, it stuck it in the audio folder instead.
Sigil's add functionality currently works off of file extension.

Audio extensions:
  • aac
  • m4a
  • mp3
  • mpeg
  • mpg

Video extensions:
  • m4v
  • mp4
  • mov*
  • ogg
  • webm

* mov was added to the video list after 0.6.2 was released.

Quote:
Originally Posted by mgardner View Post
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?
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.
user_none is offline   Reply With Quote
Old 12-24-2012, 12:50 PM   #8
mgardner
Junior Member
mgardner began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2012
Device: Nexus 7
Quote:
Originally Posted by user_none View Post
What about the description add image would make you think it deals with video.
Because you said "0.6.2 allows you to add video directly in Sigil just like adding an html page or image", and the add image functionality is the only thing remotely similar that I could find in the UI. Is there any documentation anywhere that I could look at to know how I'm supposed to add video directly? The wiki doesn't have anything I could find, and the user guide is pre 0.6.0.

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.
mgardner is offline   Reply With Quote
Old 12-24-2012, 12:56 PM   #9
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by mgardner View Post
Because you said "0.6.2 allows you to add video directly in Sigil just like adding an html page or image", and the add image functionality is the only thing remotely similar that I could find in the UI.
File, Add, Add Existing. It only imports the file into Sigil.

Quote:
Originally Posted by mgardner View Post
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?
There is nothing like insert (not add) image for video or audio. The format for audio and video is:

Code:
<audio controls="controls" src="../Audio/audio.ext"></audio>
<video controls="controls" src="../Video/video.ext"></video>
However, both the audio and video tags have a lot of options. They are block level tags and can have many different sub tags. They also have various attributes that control how they display and how users can interact with the objects. Due to this isn't not easy to add something like the insert image feature for audio and video.
user_none is offline   Reply With Quote
Old 12-24-2012, 01:07 PM   #10
mgardner
Junior Member
mgardner began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2012
Device: Nexus 7
Quote:
Originally Posted by user_none View Post
The format for audio and video is:

Code:
<audio controls="controls" src="../Audio/audio.ext"></audio>
<video controls="controls" src="../Video/video.ext"></video>
However, both the audio and video tags have a lot of options. They are block level tags and can have many different sub tags. They also have various attributes that control how they display and how users can interact with the objects. Due to this isn't not easy to add something like the insert image feature for audio and video.
Thanks. I had tried using html5 video tags (as shown here: http://www.w3schools.com/html/html5_video.asp), but there are some differences in the format you gave that I never would have figured out.
mgardner is offline   Reply With Quote
Old 12-24-2012, 01:10 PM   #11
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by mgardner View Post
Thanks. I had tried using html5 video tags (as shown here: http://www.w3schools.com/html/html5_video.asp), but there are some differences in the format you gave that I never would have figured out.
This one is specific to EPUB and much more helpful.
user_none is offline   Reply With Quote
Old 12-24-2012, 03:07 PM   #12
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,447
Karma: 157030631
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by user_none View Post
This one is specific to EPUB and much more helpful.
And, seriously, even though I didn't know 0.6.2 had enabled this functionality (who loves ya, user_none, meme, etc.!), I meant what I said about reading each retailer's explicit specifications for the video. They're not the same. Make sure you read and target the retailer upon which you intend the v-book to be seen.

Sorry about the original misinformation, truly.

Hitch
Hitch is offline   Reply With Quote
Old 02-22-2013, 12:07 PM   #13
x-li-x
Junior Member
x-li-x began at the beginning.
 
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.
x-li-x is offline   Reply With Quote
Old 02-22-2013, 07:23 PM   #14
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,488
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.
user_none is offline   Reply With Quote
Old 02-22-2013, 07:47 PM   #15
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,447
Karma: 157030631
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by x-li-x View Post
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!
As I think I said in my post on December 24th, I mentioned that not all audio and video tags are identical, for all devices. Did you match up your coding to the iBooks Asset Guidelines for those tags? Is your video compatible, for that matter, H264 m4v?

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
Hitch is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 02:12 PM.


MobileRead.com is a privately owned, operated and funded community.