Skip to content

Instantly share code, notes, and snippets.

@padde padde/gist:2623647
Created May 6, 2012

Embed
What would you like to do?
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

This comment has been minimized.

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

This comment has been minimized.

Copy link

snorfalorpagus commented Feb 4, 2015

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

This comment has been minimized.

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
You can’t perform that action at this time.