Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 08-13-2021, 08:20 AM   #31
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,439
Karma: 5703082
Join Date: Nov 2009
Device: many
Why would you need to manipulate the shadow DOM? What do you mean by "keys"? If you want to add subtitles, that is already supported. The epub3 test epub shows them being used.
KevinH is offline   Reply With Quote
Old 08-20-2021, 03:44 AM   #32
MicroDrie
Connoisseur
MicroDrie ought to be getting tired of karma fortunes by now.MicroDrie ought to be getting tired of karma fortunes by now.MicroDrie ought to be getting tired of karma fortunes by now.MicroDrie ought to be getting tired of karma fortunes by now.MicroDrie ought to be getting tired of karma fortunes by now.MicroDrie ought to be getting tired of karma fortunes by now.MicroDrie ought to be getting tired of karma fortunes by now.MicroDrie ought to be getting tired of karma fortunes by now.MicroDrie ought to be getting tired of karma fortunes by now.MicroDrie ought to be getting tired of karma fortunes by now.MicroDrie ought to be getting tired of karma fortunes by now.
 
Posts: 58
Karma: 438844
Join Date: Aug 2019
Device: PC, Linux Mint, Tablet, and Telephone
Quote:
Originally Posted by KevinH View Post
Why would you need to manipulate the shadow DOM? What do you mean by "keys"? If you want to add subtitles, that is already supported. The epub3 test epub shows them being used.
The word "keys" instead of button was an unfortunate choice of mine in the context of the question.

As a non-native speaker and writer, there are times when I like to turn the subtitles on or off. There is indeed a button for that automatically appears in non-full screen mode if a valid subtitle file is present.

But .... once you switch to full screen, that button for turning the subtitles on or off is unfortunately no longer displayed.
To add those, and other buttons, you must have access to the shadow DOM.
MicroDrie is offline   Reply With Quote
Advert
Old 10-06-2022, 11:17 AM   #33
increase
Connoisseur
increase began at the beginning.
 
increase's Avatar
 
Posts: 95
Karma: 10
Join Date: Jan 2020
Device: kindle
embedding video

I have a working video embeded in sigil epub3 with this code

<div style="font-size: 16px;"><p style="padding-bottom: 3px; text-align: center; line-height: 1; margin: 0px;"><video src="../Video/class_sketch.mp4" width="432" height="292" poster="../Images/social-classes.jpg" controls=""></video></p>

The video plays in an epub reader but the thumbnail image does not show on the reader, yet it displays in the sigil page

I am using sigil 0.9
increase is offline   Reply With Quote
Old 10-06-2022, 11:32 AM   #34
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,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by increase View Post
I have a working video embeded in sigil epub3 with this code

<div style="font-size: 16px;"><p style="padding-bottom: 3px; text-align: center; line-height: 1; margin: 0px;"><video src="../Video/class_sketch.mp4" width="432" height="292" poster="../Images/social-classes.jpg" controls=""></video></p>

The video plays in an epub reader but the thumbnail image does not show on the reader, yet it displays in the sigil page

I am using sigil 0.9
Sorry--what is it that you're trying to do? Embed video in an ePUB? That's worked for some years now, so...what is the part that isn't working for you?

Hitch
Hitch is offline   Reply With Quote
Old 10-06-2022, 11:51 AM   #35
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: 28,341
Karma: 203719646
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I think the video is playing (in Sigil and in an epub reader), but it sounds like they're wishing that the thumbnail poster that Sigil's QtWebEngine renderer chooses to display would show up in the reader as well.

I think if you want that sort of consistency across all devices/renderers, one would need to provide their own custom player controls in the epub, no?
DiapDealer is offline   Reply With Quote
Advert
Old 10-06-2022, 11:52 AM   #36
increase
Connoisseur
increase began at the beginning.
 
increase's Avatar
 
Posts: 95
Karma: 10
Join Date: Jan 2020
Device: kindle
Quote:
Originally Posted by Hitch View Post
Sorry--what is it that you're trying to do? Embed video in an ePUB? That's worked for some years now, so...what is the part that isn't working for you?

Hitch
It is the video thumbnail it displays on the sigil page but when I open the reader it shows blank yet the video plays ok
Attached Thumbnails
Click image for larger version

Name:	bank.png
Views:	95
Size:	143.0 KB
ID:	197010  

Last edited by increase; 10-06-2022 at 12:02 PM.
increase is offline   Reply With Quote
Old 10-09-2022, 04:03 PM   #37
increase
Connoisseur
increase began at the beginning.
 
increase's Avatar
 
Posts: 95
Karma: 10
Join Date: Jan 2020
Device: kindle
How about adding an external link to an image is that possible in Sigil 0.9x
increase is offline   Reply With Quote
Old 10-09-2022, 04:10 PM   #38
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,888
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by increase View Post
How about adding an external link to an image is that possible in Sigil 0.9x
What do you do if your device does not have network access?
I don't believe Sigil (or others) will STOP you from doing a poor choice.

(And why so OLD a version of Sigil? It has come a long way since then )
theducks is offline   Reply With Quote
Old 10-09-2022, 05:06 PM   #39
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,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by increase View Post
How about adding an external link to an image is that possible in Sigil 0.9x
I don't mean to be dim, but what difference does it make if it works IN SIGIL? Sigil is an ePUB editor, not a reader. T'ain't nobody gonna read it there, right?

If the image works in ADE, Azardi, Books (f/k/a iBooks), MoonReader (or whatever), then...why does the appearance in Sigil matter?

Wouldn't it be less brain-damaging to just think of it that way and focus on the results that will actually be seen?

Hitch
Hitch is offline   Reply With Quote
Old 10-09-2022, 05:40 PM   #40
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,439
Karma: 5703082
Join Date: Nov 2009
Device: many
That thumbnail is created by the reader by loading the first frame of the video that is linked. Recent versions of Sigil are Chromium based and support lots of things that many older readers do not. Some videos types support embedded thumbnail images as well.

That said, there used to be a "poster" attribute for the video tag in html5 that forced an image placeholder. I have no idea if any ebook readers support it though, and I am not sure if even Sigil supports it as it is not a href, or src attribute but it does point to a relative image url.

ps. checked the Sigil code and the "poster" attribute on the video tag will be properly updated by Sigil if the xhtml file is renamed or moved. But I have never seen that "poster" attribute on the video tag actually used. According to the spec, if it is not present, the first frame of the video will be used once available. So that is up to the ereader itself to handle and obviously some do not.

Last edited by KevinH; 10-09-2022 at 06:39 PM.
KevinH is offline   Reply With Quote
Old 10-10-2022, 10:04 AM   #41
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,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by KevinH View Post
That thumbnail is created by the reader by loading the first frame of the video that is linked. Recent versions of Sigil are Chromium based and support lots of things that many older readers do not. Some videos types support embedded thumbnail images as well.

That said, there used to be a "poster" attribute for the video tag in html5 that forced an image placeholder. I have no idea if any ebook readers support it though, and I am not sure if even Sigil supports it as it is not a href, or src attribute but it does point to a relative image url.

ps. checked the Sigil code and the "poster" attribute on the video tag will be properly updated by Sigil if the xhtml file is renamed or moved. But I have never seen that "poster" attribute on the video tag actually used. According to the spec, if it is not present, the first frame of the video will be used once available. So that is up to the ereader itself to handle and obviously some do not.
Warning: Lately, I think my brains are melting, so take this post with a grain of salt, yeah?

I could SWEAR that we used that "poster" attribute for the old iBooks ePUBs with multimedia. Now...I can go forth, look it up, but...that was a while ago. I'm pretty sure that's gotta be...hell. 8 years? Maybe 10? It was definitely ePUB2, I believe, too.

??? (Maybe I'm just losing my mind. It's hanging out with youse guys.)

Hitch
Hitch is offline   Reply With Quote
Old 10-10-2022, 10:31 AM   #42
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,439
Karma: 5703082
Join Date: Nov 2009
Device: many
Could be.

But technically, video tags are not allowed in epub2 according to the official spec. Both calibre and Sigil supported it under epub2 as extensions. I assume iBooks did the same. Full support for a limited set of video formats (and even using external video resources) was not added to the spec officially until epub3.

So support under epub2 is very spotty at best by many e-readers. Most real epub3 readers should now support it.
KevinH is offline   Reply With Quote
Old 10-10-2022, 11:03 AM   #43
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,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by KevinH View Post
Could be.

But technically, video tags are not allowed in epub2 according to the official spec. Both calibre and Sigil supported it under epub2 as extensions. I assume iBooks did the same. Full support for a limited set of video formats (and even using external video resources) was not added to the spec officially until epub3.

So support under epub2 is very spotty at best by many e-readers. Most real epub3 readers should now support it.
I just checked and we are "fo sho'" using that in ePUB3. I am reasonably certain we used it in ePUB2, too, b/c at the time, that was an iBooks requirement (which was the only bloody place you could play video, anyway, in terms of the regular "retail" market, ignoring Azardi, Readium, et al.)

Lemme see...yup. As far back as 2011, you had to use a "poster" image, for iBooks. The coding (this is copied verbatim from "iBookstoreAssetGuide.pdf" 4.7, Rev.4, p. 22, 2011-07-13) was:

Code:
video src="video/H264-640x480.m4v" controls="controls"
poster="images/posterimage.jpg" width="320" height="240"/>
Yowzers, it's a miracle I can remember that. What I do recall--this was a book for a new publisher client, a formerly VERY successful, Edgar-winning trade-pubbed author, set up her own publishing house and omg, she just had to have video in her eBook, this flagship ebook for her publishing company. We screwed around with it a lot. I mean...2011, ya know?

It worked. I have video of it working (ha!) on my website, I think. Dang, that was only what, 11 years ago?

Hitch
Hitch is offline   Reply With Quote
Old 10-10-2022, 11:11 AM   #44
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,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
P.S.:

I'm still trying to understand why the POSTER image matters inside Sigil. I am not...I'm not criticizing the poster's query. I'm simply trying to understand it better--perhaps there's a workaround. ???

Hitch
Hitch is offline   Reply With Quote
Old 10-10-2022, 11:41 AM   #45
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 44,586
Karma: 168431235
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Hitch View Post
P.S.:
I'm still trying to understand why the POSTER image matters inside Sigil. I am not...I'm not criticizing the poster's query. I'm simply trying to understand it better--perhaps there's a workaround. ???
Perhaps using a newer version of Sigil with the BibiReader, EpubJSReader or ReadiumReader plugins to test video playing would make this discussion more worthwhile. Comparing displaying an ePub in Sigil's preview to displaying the same epub in an ereader (app, device, whatever) makes little sense to me.
DNSB is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Embedding metadata into epub files steve1977 Editor 36 06-23-2021 05:48 PM
Audio and video files support in Calibre shijo Calibre 3 07-21-2017 12:19 PM
Plugin for video, audio, and image files? woodr2011 Plugins 0 09-24-2015 07:51 AM
Audio or Video files into an eBook using calibre Khadar Calibre 27 09-22-2014 02:43 AM


All times are GMT -4. The time now is 04:24 AM.


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