Solved

How to create FLV preview image (png)

Posted on 2009-04-14
5
2,137 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 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

724 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