Skip to content

Instantly share code, notes, and snippets.

@ssg
Created March 13, 2013 16:06
Show Gist options
  • Save ssg/5153571 to your computer and use it in GitHub Desktop.
Save ssg/5153571 to your computer and use it in GitHub Desktop.
@echo off
rem this converts a recorded gource ppm stream along with a mp3 soundtrack to a youtube compatible format
rem with decent quality and file size
rem usage: ppm2youtube <ppmfile> <mp3file> <outputfile>
set FFMPEG_DIR=d:\ffmpeg
%FFMPEG_DIR\bin\ffmpeg -y -f image2pipe -vcodec ppm -i "%1" -i "%2" -map 0 -map 1 -c:v libx264 -c:a libvo_aacenc -preset slow -pix_fmt yuv420p -threads 8 -bf 0 "%3"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment