Video in epub conversion

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Video in epub conversion

willwade
So I have some books with a lot of videos..

I'm not expecting them to work in epub - but I would like a fallback. Is it possible to write an adaption to the conversion to edit any videos to a link (I guess this would work for youtube/vimeo but not ones stored in relative dirs)

e.g.

.Video 4.1 Eye pointing to symbols on an E-tran frame
video::cuwgD8YZD3k[youtube]


Would become
.Video 4.1 Eye pointing to symbols on an E-tran frame
See here for the video: http://youtube.com/watch?q=cuwgD8YZD3k 


Can I do this or should it be put in as a feature req?

Will
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Video in epub conversion

mojavelinux
Administrator
Currently, the EPUB converter is missing a handler for the video macro. we would need an issue for this in https://github.com/asciidoctor/asciidoctor-epub3 (and probably one for sound too).

What we do in Asciidoctor PDF is insert a still image of the video (if it's available) and make it a link to the video. We could do that.

The EPUB spec does support video embeds, but of course, support depends on the reader. I just checked and some readers seem to allow the YouTube or Vimeo embeds. I think for a local video, the file needs be registered in the manifest.


-Dan

On Mon, Dec 5, 2016 at 7:27 AM, willwade [via Asciidoctor :: Discussion] <[hidden email]> wrote:
So I have some books with a lot of videos..

I'm not expecting them to work in epub - but I would like a fallback. Is it possible to write an adaption to the conversion to edit any videos to a link (I guess this would work for youtube/vimeo but not ones stored in relative dirs)

e.g.

.Video 4.1 Eye pointing to symbols on an E-tran frame
video::cuwgD8YZD3k[youtube]


Would become
.Video 4.1 Eye pointing to symbols on an E-tran frame
See here for the video: http://youtube.com/watch?q=cuwgD8YZD3k 


Can I do this or should it be put in as a feature req?

Will


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Video-in-epub-conversion-tp5137.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux
Loading...