Skip to content

Instantly share code, notes, and snippets.

@padde
Created May 6, 2012 18:23
Show Gist options
  • Star 21 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save padde/2623647 to your computer and use it in GitHub Desktop.
Save padde/2623647 to your computer and use it in GitHub Desktop.
Convert video for PowerPoint with ffmpeg
ffmpeg -i INFILE -r 25 -f mpeg -vcodec mpeg1video -ar 48000 -b 1500k -acodec mp2 -ar 44100 -ac 1 -y OUTFILE.mpg
@vvant
Copy link

vvant commented Jul 22, 2013

For better video and audio quality:

ffmpeg -i INFILE -r 25 -f mpeg -vcodec mpeg1video -ar 48000 -b:v 5000k -b:a 128k -acodec mp2 -ar 44100 -ac 1 -y OUTFILE.mpg

@snorfalorpagus
Copy link

Powerpoint 2013 on Windows 7 seems to be happy using the libx264 video codec and aac audio codec. If you give it mpg1/mpg2 it seems to do some conversion itself when you import it, but doesn't if you use x264/aac.

@filipsPL
Copy link

filipsPL commented Jun 4, 2019

👍

Adding -b:v 2500k increase the quality of generated movie.

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