You can insert video and audio into a Sozi presentation, or even into any SVG document, using the Add video or audio extension for Inkscape.
Installing
- Download the
Sozi-extras-media-[...].zip
from the latest release of Sozi. - The zip archive contains two files:
sozi_extras_media.inx
andsozi_extras_media.py
. Extract them to the Inkscape extensions folder:- for Linux and OS X:
~/.config/inkscape/extensions
, - for Windows:
C:\Program Files\Inkscape\share\extensions
,
- for Linux and OS X:
- Open Inkscape. In the Extensions menu, you should find a Sozi extras submenu with the item Add video or audio.
Using
When adding a new audio or video element to an SVG document, you are asked to provide the following information:
- Media element: video or audio.
- Width: the width of the element, in pixels.
- Height: the height of the element, in pixels.
- MIME type: the type of the media file (e.g.
video/mp4
oraudio/ogg
). - File name or URL: the location of the media file.
- Play automatically in Sozi frame: check the box to start playing automatically when a Sozi presentation enters a given frame.
- Start playing when entering frame (id): the Id of the frame where the media should start playing automatically.
- Stop playing when entering frame (id): the Id of the frame where the media should stop playing automatically.
Example
The presentation below plays a video in the second frame and an audio sample in the third frame. Download the presentation files.
Browser support
Technically, this feature relies on the HTML5 <video>
and <audio>
elements that can be embedded into SVG documents.
Web browsers do not support the same set of media formats.
See the follwing page for more information:
Media formats supported by the HTML audio and video elements (Mozilla Developer Network).
Currently, Chrome (as of version 33) does not apply geometrical transformations (rotation, scaling, translation) to video and audio elements embedded in SVG documents. Media will always show in the top-left corner of the browser window. As far as we know, only Firefox handles them correctly.