• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 907
  • Last Modified:

Capture frame of flv movie in flash

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.
  • 2
  • 2
2 Solutions
rbichonAuthor Commented:
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.
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.
I got your taste,

apply following Logic:

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

     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.


Ashvin Savani - Arckid
Freelance Developer - Arckid.com
Founder & CTO - Avinashi.com
Adobe Community Expert - Flash
rbichonAuthor Commented:
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.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now