Skip to content

Instantly share code, notes, and snippets.

@helloitszak
Created September 22, 2014 05:15
Show Gist options
  • Save helloitszak/e109ac1d61bd29027e56 to your computer and use it in GitHub Desktop.
Save helloitszak/e109ac1d61bd29027e56 to your computer and use it in GitHub Desktop.
Quick script to make using mpv frame dumping easier
#!/bin/bash
if [ $# -ne 4 ]; then
echo "Usage: `basename $0` file starttime length outdir"
exit 1
fi
mpv --no-audio --no-sub --start=$2 --length=$3 --vo=image:format=png:outdir=$4 "$1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment