Solved

Capture frame of flv movie in flash

Posted on 2006-11-03
7
886 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
[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
  • 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

Independent Software Vendors: 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

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 …
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 how to record live broadcast.

622 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