![]() |
Sigil with audio files
Does anyone know that when you embed an audio file with Sigil into an epub that Sigil creates an icon that must be clicked to play the audio file, or does the audio file automatically get played when the page where it is embedded is displayed/opened?
Steve |
Quote:
|
In other words, it is similar to images. You can add the audio file to the ePUB, but playing it must be done in the coding yourself. There is not a button for that like for an image.
|
3 Attachment(s)
Quote:
As for the playback controls, AFAIK, they don't need to be explicitly defined. Sigil playback controls support appears to be OS-dependent: Windows: The official Windows Sigil 0.8.5 release automatically displays disabled playback controls. Linux: DiapDealer's unofficial Sigil Linux 0.8.5 release automatically displays working playback controls. OSX: Sigil audio/video playback works, according to KevinH. (The test file is a valid ePub3 file that works with iBooks, Gitden Reader, ADE 4 and Readium.) Here's the HTML code: Spoiler:
|
If I remember correctly, the audio/video folders were added and some bare minimum coding was done to ensure that Sigil didn't break existing (working) epubs that had video/audio in them. But I don't believe adding/editing/playing has ever been supported (though playing might work depending on OS and video/audio codec).
It was a "first do no harm" sort of step toward audio/video support. |
Hi
Video seems to work for me with the latest Qt and some added style to makes the controls appear. |
Quote:
|
Hi,
To create a test case I used the html Sigil uses if you double-click in the Browser pane to open a Tab with audio and or video. Here are those code snippets. You just need to replace the src="" link with ../Video/your_movie_name.mp4 Code:
const QString AUDIO_HTML_BASE =KevinH |
1 Attachment(s)
Hi Doitsu,
I tested with Sigil from my master which now keeps even more of the epub3 features and your audio file (both channels) showed up and played just fine and worked correctly in BookView and Preview. I am attaching an epub_video_test_epub3.epub (it is an epub3 based only on the package version tag). It works on Mac OS X also. I also tested with stock Sigil 0.8.5 on Mac OS X and both audio and video tests work. The only issue is after saving the video in Sigil 0.8.5, the media-type was incorrectly changed to text/plain in the content.op manifest, which prevented it from working after a reload. This bug is fixed in my Sigil master. Hope this helps, Kevin |
Hi KevinH,
Thanks for the funny test file. I tested it with DiapDealer's unofficial Sigil 0.8.5 Linux release on Debian 8 and the playback worked fine, even when I unlinked the stylesheet. Of course, the 0.8.5 Windows version didn't work. D. |
Hi,
Yes, the code to deal with audio and video is inherent across the 3 platforms and built into the Qt QWebView widget. There is no bug from the Sigil end here. This seems to be an issue in QWebView for both audio and video in the QWebView widget but only for Windows platforms. I will try a web search to see if there is a workaround for and if so try to incorporate it into the next release as well as try to get the bug fix for the media-type in the content.opf backported in time for a Sigil 0.8.6 bug fix release. Both audio and video should work on Windows in Sigil, they just do not for some reason. Take care, Kevin |
Hi Doitsu,
I played around a bit more and found out that Windows seems to need PluginsEnabled set on the QWebView widget to do anything and then a bunch of extra plugins added into Sigil. No where could I find this anyplace in the Qt docs but I did find it via google in just one place. With the following change to ViewEditors/BookViewPreview.cpp: Code:
--- BookViewPreview.cpp.orig 2015-04-02 12:20:42.000000000 -0400My video epub would simply not work no matter what. I replaced the sample mp4 video with a small.mp4 video I found on the web and then it worked as well. So not all mp4 will work but some do. I have no idea why yet. I will try to get these changes into Sigil 0.8.6 if I can. Take care, KevinH |
Quote:
Someone using my linux packages was having issues with "normal" non-US keyboard functionality until I figured out (by sheer trial and error) that one of the platforminputcontexts plugins needed to be included with the package. Why there can't be a tool that clearly tells you which Qt Libraries and plugins need to be deployed with your application (on the current platform), I'll never know. |
Hi DiapDealer,
I tried the new windeployqt.exe that comes with the latest Qt5.4 for Windows on Sigil.exe just built on Win32 and it never even seemed to find or include any of the Qt plugins (after building with msvc2013_opengl). So I think for the next release we should probably include a wider range of plugins on Windows and test with an audio and video epub to at least give them a chance to work on Windows. Take care, KevinH |
Little wonder I was never able to get it working - ended up using InDesign - it was a one off :)
BR |
@KevinH & DiapDealer: I'm once again impressed by your detective work.
Sherlock Holmes ain't got nothing on you! :D :thanks: |
Hi Doitsu,
FYI - I now have made a Win 32 build of Sigil with a fix for audio and video tags working in Windows. I was able to test it and your audio test sample should play out of the box when Sigil 0.8.6 is released. Most mp4 videos will also play out of the box on Windows as well. My particular video test case (butterfly being squashed by apple) contains a QuickTime Text track (for described video?) that is ignored on Linux and Mac but prevents the video from being shown on Windows. As far as I can tell, this is simply a Qt bug that I can do nothing about. I have also fixed the corruption of mp4 media-type info in the opf on Sigil saves. So you should be good to go when Sigil 0.8.6 comes out (hopefully). Take care, KevinH |
| All times are GMT -4. The time now is 06:08 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.