Skip to content

Instantly share code, notes, and snippets.

@lucasdicioccio
Last active September 9, 2021 15:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucasdicioccio/941c9e17065939e64b6d43a30f056b98 to your computer and use it in GitHub Desktop.
Save lucasdicioccio/941c9e17065939e64b6d43a30f056b98 to your computer and use it in GitHub Desktop.
nautilus scripts for Ubuntu

convert a screencast

If you record screen with (ctrl+shift+alt+R) in Ubuntu, you'll get a webm file, GitHub wants mp4. So you need to convert from webm to mp4.

The ffmpeg command allows such a conversion. Ubuntu's file navigator allows to have some right-click scripts shortcuts.

To be dropped and chmod +x in something like ~/.local/share/nautilus/scripts/ffmpeg convert to mp4

#!/bin/bash

path=$1
ffmpeg -y -i "${path}" "${path}.mp4"
notify-send "converted ${path}"
@lucasdicioccio
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment