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


You can follow James on Mastodon for more frequent updates and other random thoughts.
You can follow James on Twitter for more frequent updates and other random thoughts.
You can support James on GitHub if you'd like to help sustain this kind of content.
You can support James on Patreon if you'd like to help sustain this kind of content.


Comments

Nothing yet.


Post a comment



(sorry but the spammers were getting too crazy!)

Thank you

Your comment has been submitted and will be published if it gets approved.

Click here to see the patch you generated.

OK