Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 05-20-2015, 06:51 AM   #1
MikeT!
Junior Member
MikeT! began at the beginning.
 
Posts: 9
Karma: 10
Join Date: May 2015
Device: Kobo
Angry Epub3 and Smil - Problem

Hi everyone, i'm a new member

I've a problem with smil file, i've insert all things with Sigil but Azardi won't play the file .mp3!

In the OPF file i have
Code:
 
[..]
 <meta property="media:duration" refines="#path_overlay">50.574s</meta>
    <meta property="media:active-class">media</meta>
[..]
    <item href="Text/Section0003.xhtml" id="Section0003.xhtml" media-overlay="path_overlay" media-type="application/xhtml+xml" />
[..]
    <item href="Misc/Section0003.smil" id="path_overlay" media-type="application/smil+xml" />
In the .xhtml file
Code:
 
[..]
 <h2 class="title1" id="heading_id_3">I. Come andò che maestro Ciliegia, falegname, trovò un pezzo di legno, che piangeva e rideva come un bambino.</h2>

  <div class="img">
    <img alt="Pinocchio e Geppetto" src="../Images/img0001.png" /><br />
  </div>

  <p id="sentence01"><span class="title">C’</span>era una volta...</p>

  <p class="testo_dialogo" id="sentence02">– Un re! – diranno subito i miei piccoli lettori.</p>
[..]
In the CSS
Code:
[..]
.media {
    background-color: #abc;
}
[..]
And the file SMIL is
Code:
<smil 
     xmlns="http://www.w3.org/ns/SMIL"
     xmlns:epub="http://www.idpf.org/2007/ops"
     version="3.0">
    <body>

			<par id="heading_id_3">
				<text src="../Text/Section0003.xhtml#heading_id_3"/>
				<audio src="../Audio/collodi_pinocchi_sil_02_cap01.mp3" clipBegin="37.000s" clipEnd="39.000s"/>
			</par>

			<par id="sentence01">
				<text src="../Text/Section0003.xhtml#sentence01"/>
				<audio src="../Audio/collodi_pinocchi_sil_02_cap01.mp3" clipBegin="39.000s" clipEnd="41.000s"/>
			</par>
[..]
Two hours trying to figure out what is the problem but nothing, i think that is all ok! But when i'm going to open the file with Azardi, there is no possibity to play audio..
If you want more code tell me, i insert only the (for me) important line..
Thank's in advance for any response..
MikeT! is offline   Reply With Quote
Old 05-20-2015, 07:06 AM   #2
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,680
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
SMIL is only supported in ePub3 ebooks and very few apps actually support it.
  1. Have you formatted the book as an epub3 ebook?
  2. Have you checked the book with epubcheck?
Doitsu is offline   Reply With Quote
Advert
Old 05-20-2015, 07:30 AM   #3
MikeT!
Junior Member
MikeT! began at the beginning.
 
Posts: 9
Karma: 10
Join Date: May 2015
Device: Kobo
Quote:
Originally Posted by Doitsu View Post
Have you formatted the book as an epub3 ebook?
Umh I took the Epub and i start to modified it, so it think no, i haven't formatted. Do you have any suggestion to do this?
Quote:
Originally Posted by Doitsu View Post
Have you checked the book with epubcheck?
I validate with Sigil, there are some error in the opf file, like
>>attribute "property" not allowed here
>>attribute "refines" not allowed here
>>attribute "media-overlay" not allowed here

These are the errors referr to the lines that i added for Smil..
I have another Epub with Smil that work on Azardi, and Sigil tell me the same errors in this file
MikeT! is offline   Reply With Quote
Old 05-20-2015, 07:39 AM   #4
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,680
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by MikeT! View Post
I validate with Sigil, there are some error in the opf file
If you've used the built-in Sigil validator (FlightCrew), you'll always get error messages for epub3 files, because it can't handle epub3-only attributes.

That's why I suggested epubcheck online, which can handle epub2 and epub3 files.

BTW, there's a Sigil epub3 export plugin that you can use to convert an epub2 file to an epub3 file.

Also check out the free SMIL-based epub3 audio books on the Read Beyond website.
Doitsu is offline   Reply With Quote
Old 05-21-2015, 11:46 AM   #5
MikeT!
Junior Member
MikeT! began at the beginning.
 
Posts: 9
Karma: 10
Join Date: May 2015
Device: Kobo
Quote:
Originally Posted by Doitsu View Post
BTW, there's a Sigil epub3 export plugin that you can use to convert an epub2 file to an epub3 file.

Also check out the free SMIL-based epub3 audio books on the Read Beyond website.
First of all, thank you, all the link is very useful!
I convert the Epub2 in Epub3 and a lots of errors go away

I see that is present an epubcheck offline, because upload every time the epub (now 8 Mb) is not the best
I'll try epubcheck with jdk1.7.0_79 and jre1.8.0_45 but everytime i've Error of class,

Spoiler:


Do you know why? (with the validator online this epub doesn't have error)

P.s. Sorry if I wrote in this topic for this thing, if u want i can open another topic..
MikeT! is offline   Reply With Quote
Advert
Old 05-21-2015, 12:25 PM   #6
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,680
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by MikeT! View Post
I'll try epubcheck with jdk1.7.0_79 and jre1.8.0_45 but everytime i've Error of class [...] Do you know why? (with the validator online this epub doesn't have error)
Most likely your Java version is outdated or you didn't unzip the epubcheck archive correctly. (The folder that you extracted epubcheckx.xxx.jar to also needs to contain a lib folder with 8 other jar files.)

What version number is displayed if you enter the following command in a terminal/command prompt window?

Code:
java -version
If the version number isn't 1.5.0_xx (or higher) epubcheck won't run. (You can download the latest Java version from Oracle.)

If you have a current Java version, download pagina EPUB-Checker. It uses the same libraries as epubcheck but comes with a GUI.
Doitsu is offline   Reply With Quote
Old 05-21-2015, 12:33 PM   #7
MikeT!
Junior Member
MikeT! began at the beginning.
 
Posts: 9
Karma: 10
Join Date: May 2015
Device: Kobo
Quote:
Originally Posted by Doitsu View Post
If you have a current Java version, download pagina EPUB-Checker. It uses the same libraries as epubcheck but comes with a GUI.
Yeah, this works perfectly

Thank's, thank you very much for all your help
MikeT! is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Epub3 XHTML Validation epub3 Ramesh Arpitha ePub 5 06-30-2014 08:32 PM
ePub SMIL Validation odedta ePub 3 01-05-2014 08:17 AM
New Errors Converting epub3 -> zip -> epub3 Lola25 ePub 2 11-12-2013 09:37 PM
Pausing SMIL audio (iBooks) chrxr ePub 3 11-30-2011 06:31 AM


All times are GMT -4. The time now is 08:10 AM.


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