Solved

Capture frame of flv movie in flash

Posted on 2006-11-03
7
847 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
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 how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

708 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now