Skip to content

Instantly share code, notes, and snippets.

@lifning
Created June 14, 2012 09:18
Show Gist options
  • Save lifning/2929249 to your computer and use it in GitHub Desktop.
Save lifning/2929249 to your computer and use it in GitHub Desktop.
A quick and dirty script to convert glc dumps to MKV using ffmpeg. Created because mencoder, which the glc encode script uses, is broken and old.
#!/bin/bash
mkfifo ${1}.{yuv,wav}
glc-play ${1} -y 1 -o ${1}.yuv &
glc-play ${1} -a 1 -o ${1}.wav &
ffmpeg -i ${1}.yuv -i ${1}.wav ${1}.mkv
rm -f ${1}.{yuv,wav}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment