Wednesday, June 15, 2011

[ijqyavxy] Creating a Mac playable video with ffmpeg

Creating a video from a series of images, to complement the Microsoft windows technique earlier.

Quick and dirty: the settings are the same as a video camera dumped file, which the Mac could play.

ffmpeg -f image2 -r 29 -i a%d.jpg -r 29 -s 720x540 -f rawvideo -pix_fmt yuv420p /tmp/foo.raw
x264 --fps 29 --input-res 720x540 --profile baseline -o /tmp/foo.264 /tmp/foo.raw
ffmpeg -r 29 -i /tmp/foo.264 -i soundtrack.wav -r 29 -s 720x540 -vcodec copy -acodec pcm_s16le /tmp/out.mov

Ubuntu Linux 11.04 Natty, for which ffmpeg does not have libx264 support.

1 comment :

Ken said...

libavcodec-extra-52 would probably have been an easier way to go.