Thursday, April 16, 2009

Extracting frames from a Panasonic MTS file

MTS files are just an mpeg4 file. The command line utility ffmpeg will let you extract the frames:


Building:

svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
cd ffmpeg
./configure
make && make install


Example usage with an HD camera

ffmpeg -i 00000.MTS -s hd1080 -f image2 waa-%03d.png

This will rip all the frames into waa-%03d.png.

No comments:

Post a Comment