Skip to content

Instantly share code, notes, and snippets.

@mbohun
Created December 5, 2012 06:26
Show Gist options
  • Save mbohun/4212997 to your computer and use it in GitHub Desktop.
Save mbohun/4212997 to your computer and use it in GitHub Desktop.
making of gameplay video - linux / frame dump / ffmpeg
# - from within an application dump frames (in PNG format) into some output dir; and save/record the audio into a file
# - convert the frames (with imagemagick) to JPEG format? (or does ffmeg do this for us too?)
# - use ffmpeg to make a footage
#
$ ffmpeg -i frames%d.jpg -vcodec mpeg4 video.mp4
# - add the audio to the footage
#
$ ffmpeg -i video.mp4 -i audio.mp3 -vcodec copy -acodec copy result.mp4 -newaudio
# optionally use mplayer/mencoder to transcode the footage further ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment