.NET: How to create a sketch from a flash

Is there a way that I can create a thumbnail image from a flash movie file (flv / swf) [NOT FROM A VIDEO File] in ASP.NET? Any implementation examples?

+6
flash gdi +
source share
7 answers

you can use ffmpeg to create thumbnails of flash video

+4
source share

For .flv you can use ffmpeg to convert parts of a video (e.g. one frame) into an image (sequence)

I used it as a command line application, calling Process.Start() , but for .NET there is at least one shell (I have not tested it myself): http://www.codeplex.com/ffmpegdotnet

For .swf I don’t know how to do this without any Adobe tool.

+2
source share

for flv, this can be done easily, as others have said ...

for swf, it depends HIGHLY on swf ... if the visual appearance of swfs is determined by code, there is no other way than embedding a flash player in your application and letting flash players take pictures, encode them as JPEG / PNG and send them somewhere using TCP or LocalConnection (a flash connection with flash memory, which can also be used with C #) or try somehow to capture your output buffer yourself ... the first opportunity should be no more than 10-20 lines of action code. .. I don’t know about the last ...

besides this, you can use an external command line converter ... there are several floating over the network ...

Greetz

back2dos

+1
source share

Take a look at the article she should point you in the right direction. It uses SharpFFmpeg to extract thumbnails from clips from various formats.

+1
source share

the only way to get the image is to use the full flash client, which starts playing and allows you to capture the first frame.

I would carefully consider flirt (they actually have an example that displays png) Perhaps some of the other flash libraries may help ( swfdec gnash fast gplflash tools )

Gnash is probably the best choice from the most mature project, but I don't know how easy it is to integrate into command line tools or your own projects.

0
source share

We are working on this in my company, and we have evidence that the concept works quite quickly (but the project that we have done is now suspended). I cannot share the code, but I can give you some pointers.

It is not pure ASP.NET, but perhaps you can still use it. We made a Windows service that can be called from ASP.NET.

Basically you install the flash plugin on the server, then Windows services can just open swf through the ActiveX SWF component, and then you can capture an image of it all. This works very well, note that you do not need to actually display the ActiveX component on the screen to capture the image.

0
source share

Mark this post. This does not tell you everything, but I assume that it provides the necessary work for this. You probably need to figure out how to get the object tag from Flash-html that you are trying to download from a web page. After that, you will need to figure out when to take frames. However its a long trip. You do not need the asp.net part. Just focus on the part of the Windows project. Hope this helps. :)

0
source share

All Articles