Extracting movies from libreoffice

I have a short movie that I imported into a libreoffice presentation. I wanted a copy of that movie back, but I couldn’t figure out how to extract a copy. In desperation, I figured I’d try opening the file with file-roller, the GNOME archive manager.

james@computer:/tmp$ file mgmt-berlin-osdc-17may2017.odp 
mgmt-berlin-osdc-17may2017.odp: OpenDocument Presentation
james@computer:/tmp$ mkdir out
james@computer:/tmp$ file-roller -f mgmt-berlin-osdc-17may2017.odp -e out/
[snip]
james@computer:/tmp$ cd out/
james@computer:/tmp/out$ ls
Configurations2/ Media/ meta.xml Pictures/ styles.xml
content.xml META-INF/ mimetype settings.xml Thumbnails/
james@computer:/tmp/out$

To my amazement, this worked perfectly! I found my video in the Media/ folder, and out it came! You can do this entirely with the GUI if you prefer:

file-roller-ods

This is the graphical view of file-roller, opening up a libreoffice .ods presentation file.

As you can assume, pictures are also available. I haven’t cared to dig much further, but hopefully you enjoyed this tip!

Happy Hacking,

James