Solved

How to create FLV preview image (png)

Posted on 2009-04-14
5
2,130 Views
Last Modified: 2012-05-06
Given an flv movie file, is there an open source command line tool that can capture the first frame to create a preview .png image file?
0
Comment
Question by:slicer123
5 Comments
 
LVL 5

Expert Comment

by:john_hollings
ID: 24139046
If memory serves me right, the player will display the first frame of the video as the file buffers, then it plays the file.

There is an alpha release of RichFLV which can edit certain parts of an flv, might be worth looking at:
http://richapps.de/?p=48

0
 

Expert Comment

by:aBigDorkyDimwit
ID: 24139317
On a MAC you can use COMMAND-SHIFT-4 then hit the SPACEBAR and it will make an image file from any window clicked.
0
 
LVL 1

Expert Comment

by:alexandremattar
ID: 24141105
You can use MPlayer with PHP in an Apache environment. See an example below:


$config = array();
$config['mplayer']        =  '/usr/bin/mplayer';
$config[tmpimgpath]        =  '/some_dir';
 
$cmd = $config[mplayer]." $video -ss ".$i." -nosound -vo  jpeg:outdir=".$config[tmpimgpath]."/".$video_name." -frames 2";
                        
exec($cmd);

Open in new window

0
 
LVL 2

Author Comment

by:slicer123
ID: 24161084
I'm using JWplayer, and streamer xmoov.php (not sure if this does anything really).

I found utils pyvnc2swf (edit.py), ffmpeg apart from mencoder. Haven't tried the latter two yet, but heard ffmpeg was good as well.
0
 
LVL 1

Accepted Solution

by:
alexandremattar earned 500 total points
ID: 24161504
FFmpeg is great for converting your videos to FLV, but it will not generate the image you need. The JWplayer is the end user FLV player, MPlayer is a linux compatible player that accepts command line instructions to capture a frame form any given time and save the JPG to the server's hard drive, then you can convert this image using PHP GD or Image Magic into PNG and even change it's size to create thumbnails.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Adobe Media Server Or Encoder Broken Affer Static IP Change 4 169
Removing Flash from Website 6 65
Flash Converter 8 122
PDF: Display my cards game? 8 112
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question