Saturday, March 14, 2009

FFmpeg - Media file conversion tool


FFmpeg will be more useful for converting any media file.

We can use this tool from php by using exec command. Please find below the example code for converting media file to .flv file.

exec("ffmpeg -itsoffset -4 -i '$sourcefilepath' -vcodec mjpeg -vframes 1 -an -f rawvideo -s 320x240 '$desinationfile'")
More Articles...

No comments:

Follow By Email