Ask Your Question

How to convert all linked videos to embedded videos? [closed]

asked 2014-04-19 00:25:16 +0200

teichman gravatar image

updated 2015-09-08 08:58:11 +0200

Alex Kemp gravatar image

I use linked videos while making a presentation to avoid the overhead of embedding. However, when the presentation is finished, I typically want to be able to export a copy of the presentation with all videos embedded.

There are two compelling reasons for this: backups and longevity. If something goes wrong at presentation time, there is a backup that can easily be played on someone else's machine, and many years later the presentation will still work even though videos files are not necessarily in the same relative location.

So, is there a way to do this? I'm using Impress on Ubuntu 12.04, but newer versions are fine too.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2016-02-21 07:09:11.941266


Oh - hacking the zip archive / XML is fine if necessary.

teichman gravatar imageteichman ( 2014-04-19 00:27:27 +0200 )edit

1 Answer

Sort by » oldest newest most voted

answered 2014-04-20 03:00:20 +0200

oweng gravatar image

You are going to have to manually change the XML and copy the required video files to a newly created Media/ directory in the ODP. This is what the XML for a linked video[1] looks like:

<draw:plugin xlink:href="../../path/to/video.ogg" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" draw:mime-type="application/">

... and here is the same video embedded in the ODP:

<draw:plugin xlink:href="Media/video.ogg" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" draw:mime-type="application/">

[1] Video format is an OGG container with these stream encodings:

Duration: 00:00:31.12, start: 0.000000, bitrate: 578 kb/s
    Stream #0.0: Video: theora, yuv420p, 384x288 [PAR 1:1 DAR 4:3], 25 fps, 25 tbr, 25 tbn, 25 tbc
    Stream #0.1: Audio: vorbis, 32000 Hz, stereo, s16, 64 kb/s
edit flag offensive delete link more


oweng, thanks for your reply. This actually looks fairly easy to script, assuming the ogg format isn't required. I'll probably give this a try in the near future.

teichman gravatar imageteichman ( 2014-04-20 07:54:19 +0200 )edit

... and the near future is here, sooner than expected. Here's a gross, poorly-tested script that got the job done for me: portify.


teichman gravatar imageteichman ( 2014-04-20 08:56:27 +0200 )edit

@teichman, well done, very similar to how I would solve the problem. Sorry for the confusion about the OGG container (any video merely needs to be in a format with a supported and accessible codec). The footnote was merely illustrative. Other containers / formats are encoded in the same manner (with a corresponding MIME / media type).

oweng gravatar imageoweng ( 2014-04-20 09:31:52 +0200 )edit

Question Tools

1 follower


Asked: 2014-04-19 00:25:16 +0200

Seen: 336 times

Last updated: Apr 20 '14