?
Solved

How to create FLV preview image (png)

Posted on 2009-04-14
5
Medium Priority
?
2,146 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to how to record live broadcast.

765 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