Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Lorenzo Alberton's Blog:
Create a video preview as animated GIF with FFmpeg and PHP SPL
Sep 04, 2009 @ 14:52:50

Lorenzo Alberton has posted a new item to his blog with a code snippet showing the combination of FFmpeg and features in PHP's SPL to make a GIF preview.

About one year ago, I had to create animated GIFs as a preview of a video for a media portal. I recently stumbled upon the code I wrote and thought it was probably worth sharing. It makes a rather unconventional use of the SPL Iterators, proving how flexible they are.

His method combines Imagick, FFmpeg and a a Thumbnail_Extractor class that extends the SPL Iterator. The script runs through the frames of the movie file and allows you to define multiple places to pull thumbnails from. Complete code and output examples are included.

tagged: animated gif tutorial ffmpeg movie thumbnail spl

Link:

Stoyan Stefanov's Blog:
Blog-to-podcast with ffmpeg
Feb 16, 2009 @ 14:45:52

Stoyan Stefanov has an interesting way to "automatically" create podcasts based on your blog posts using PHP, ffmpeg and the "say" command in OS X to create the mp3 result.

ffmpeg is such an amazing tool, looks like it's for video what ImageMagick is for images. An all-powerful all-formats wicked cool command-line tool. This blog post is an introduction to some of the MP3 capabilities of ffmpeg. I'll use ffmpeg to transform a blog post into a podcast-ready mp3 file.

The post shows how to use PHP's DOM functions to grab the title and contents of your post (a simple example, at least) and push that information out to a text file. From there, the "say" command is run on it with the "output" file parameter and the result is sent to ffmpeg for compression into an mp3.

tagged: ffmpeg say osx dom blog podcast convert automatic mp3

Link:

Vexxblog:
How to convert/encode files to FLV using FFMPEG & PHP
May 25, 2007 @ 14:27:00

From the Vexxblog, there's this new tutorial that shows how, with FFMPEG and PHP, to convert and encode files to the FLV format.

So, as I’ve written in an earlier article on how to install FFMPEG on your server, while there are those who probably use a “YouTube Clone” script, there might be those who want to create their own using FFMPEG & PHP. FLV is the most widely used type of codec that runs on most Flash players.

The tutorial started with a diagram that outlines how the mini-app will work and is followed by the source. The script sets up the environment then grabs the file and sends it to the FFMPEG handler to be parsed and output as the FLV file (courtesy of a few handy command line parameters).

tagged: convert flv ffmpeg diagram tutorial convert flv ffmpeg diagram tutorial

Link:

Vexxblog:
How to convert/encode files to FLV using FFMPEG & PHP
May 25, 2007 @ 14:27:00

From the Vexxblog, there's this new tutorial that shows how, with FFMPEG and PHP, to convert and encode files to the FLV format.

So, as I’ve written in an earlier article on how to install FFMPEG on your server, while there are those who probably use a “YouTube Clone” script, there might be those who want to create their own using FFMPEG & PHP. FLV is the most widely used type of codec that runs on most Flash players.

The tutorial started with a diagram that outlines how the mini-app will work and is followed by the source. The script sets up the environment then grabs the file and sends it to the FFMPEG handler to be parsed and output as the FLV file (courtesy of a few handy command line parameters).

tagged: convert flv ffmpeg diagram tutorial convert flv ffmpeg diagram tutorial

Link:


Trending Topics: