Solved

Capture frame of flv movie in flash

Posted on 2006-11-03
7
849 Views
Last Modified: 2012-06-27
I would like to save the first frame of an flv movie as a png or jpg and I want to do it from a Flash swf. Is this possible? Thanks.
0
Comment
Question by:rbichon
  • 2
  • 2
7 Comments
 
LVL 11

Accepted Solution

by:
ch2 earned 125 total points
ID: 17870026
0
 
LVL 1

Author Comment

by:rbichon
ID: 17870339
I saw that post and it isn't quite what I had in mind. What I am trying to do is create a flv uploader that will also automatically generate a thumbnail of the flv. The swf will be on a remote server so most third party programs will not work for me.
0
 
LVL 11

Expert Comment

by:ch2
ID: 17870793
why won't work? can't you run external app on your server?

ffmpeg works on linux and also on windows machines and is a command line utility.
0
 
LVL 1

Assisted Solution

by:arckid
arckid earned 125 total points
ID: 17872158
I got your taste,

apply following Logic:

the_nc = new NetConnection();
the_nc.connnect("rtmp path");

onSuccessfulNcConnect()
{
     in_nc = new NetStream(the_nc);
     in_nc.play(_root.flv, 1, 1);  // play flv starting from 1 second and play for 1 second (sorry if i applied any wrong syntax but thats the logic)
}

onNetStreamEnd() // when netstream finish to play the flv
{
     the_nc.close();  // to save # of connections on the server
}

attach all these code into one swf which you can host on your own server. name it like thumbnail.swf

call it like thumbnail.swf?flv=abc.flv

hope this helps.

Regards,

Ashvin Savani - Arckid
Freelance Developer - Arckid.com
Founder & CTO - Avinashi.com
Adobe Community Expert - Flash
0
 
LVL 1

Author Comment

by:rbichon
ID: 17873317
I see. So instead of saving it as a thumbnail, this would actually show it in a paused state which would be the same as a thumbnail. That is smart. Would it take a long time to load if I have say 20 16MB flvs showing on the same page? Thanks for the help.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
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…
The goal of the tutorial is to teach the user how to how to record live broadcast.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

785 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