Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 10-22-2019, 04:47 PM   #1
fbrzvnrnd
Fanatic
fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.
 
Posts: 557
Karma: 400004
Join Date: Feb 2009
Device: ONYX M96
Error in EPUB3 validation

Hi,
I'm trying to validate ad EPUB3 with some video as remote resources.
I got a warning that I don not understand:

Code:
OPF-018	WARNING	The 'remote-resources' property was declared in the OPF, but no reference to remote resources has been found. Make sure this property is legitimate.
The video has been tagged, for example, inside file "hello.xhtml" as:

Code:
<video controls="controls" src="http://www.venerandi.com/video/video.mp4"><p>sorry, you can not see video</p></video>
In .opf I wrote:

Code:
<item id="video20" href="http://www.venerandi.com/video/video.mp4" media-type="video/mp4"/>
and:

Code:
<item id="hello.xhtml" href="Text/hello.xhtml" media-type="application/xhtml+xml" properties="remote-resources"/>
I do not understand where the error is, maybe I'm missing something?

Thank you in advance


Fabrizio
fbrzvnrnd is offline   Reply With Quote
Old 10-22-2019, 05:39 PM   #2
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: 46,190
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by fbrzvnrnd View Post
Hi,
I'm trying to validate ad EPUB3 with some video as remote resources.
I got a warning that I don not understand:

Code:
OPF-018	WARNING	The 'remote-resources' property was declared in the OPF, but no reference to remote resources has been found. Make sure this property is legitimate.
The video has been tagged, for example, inside file "hello.xhtml" as:

Code:
<video controls="controls" src="http://www.venerandi.com/video/video.mp4"><p>sorry, you can not see video</p></video>
I do not understand where the error is, maybe I'm missing something?

Thank you in advance
I haven't played with remote resources much but I vaguely seem to remember that you do not need the <p></p> tags for the "sorry" message and that you need to specify the source using the <source> tag.

Code:
<video controls="controls" src="http://www.venerandi.com/video/video.mp4">Your device does not support the video tag.</video>
I tried a quick test using Sigil and Page Edit to play.

Here's what I added to Section0001.xhtml:

Code:
<body>
<video width="1280" height="720">
  <source src="https://sample-videos.com/video123/mp4/720/big_buck_bunny_720p_1mb.mp4"/>
Your browser does not support the video tag.
</video> 
</body>
And these two lines in content.opf:

Code:
    <item id="Section0001.xhtml" href="Text/Section0001.xhtml" media-type="application/xhtml+xml" properties="remote-resources"/>
    <item id="extvideo01" href="https://sample-videos.com/video123/mp4/720/big_buck_bunny_720p_1mb.mp4" media-type="video/mp4"/>
I spread the video tag over multiple lines for ease in reading. A single line works as well.

Good luck!

Last edited by DNSB; 10-22-2019 at 05:42 PM.
DNSB is offline   Reply With Quote
Advert
Old 10-23-2019, 03:31 AM   #3
fbrzvnrnd
Fanatic
fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.
 
Posts: 557
Karma: 400004
Join Date: Feb 2009
Device: ONYX M96
Thank you for the answer. After some tests it SEEMS that the OPF-018 warning wakes up when the video tag is inside a div tag. This has not sense at all, but it is.
I think it is a epubcheck bug, I'll keep investigate.
fbrzvnrnd is offline   Reply With Quote
Old 10-23-2019, 06:07 PM   #4
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: 46,190
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
There are some weird oddities in the way that epubcheck generates error message so this may be one.
DNSB is offline   Reply With Quote
Old 10-24-2019, 03:38 AM   #5
fbrzvnrnd
Fanatic
fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.
 
Posts: 557
Karma: 400004
Join Date: Feb 2009
Device: ONYX M96
yeah, thanks anyway because your message help me to change the tag order.
fbrzvnrnd is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
EPUB3 Validation Error - Assertion failed: package dcterms:modified meta element mu grahamnaismith ePub 7 02-14-2019 09:44 AM
Validation Error epub3 soparch ePub 2 12-01-2015 11:38 PM
EPUB3 footnote validation roger64 Workshop 11 06-03-2015 07:56 AM
Epub3 XHTML Validation epub3 Ramesh Arpitha ePub 5 06-30-2014 08:32 PM


All times are GMT -4. The time now is 02:58 AM.


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