Solved

Capture frame of flv movie in flash

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Google Chrome - Where is "Enable Resource Tracking" 2 11,570
Software Restriction Policy 8 856
Adobe Flash Free Transform Tool 2 129
Download Adobe Flash Player 6 59
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
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…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

867 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

15 Experts available now in Live!

Get 1:1 Help Now