PDA

View Full Version : capturing a frame from video to image


xEnOn
01-10-2007, 01:11 PM
Hi people, I am trying out Flix and I was hopping to do a video frame capture from video files. I need flix to capture one of the frames in the video and save it as an image file. these image files are going to be used as thumbnails.

it would be great if it could capture video frame image from any video formats but it will be alright too, if could only do this in FLV video files.

i looked into the sample files and i have no idea how i could do this. i am using PHP with flix. can anyone help on this?

thanks :)

zsole
01-19-2007, 07:29 AM
Hey, here you can see documentation about your problem.
Note that fli engine only capture the first frame of video.

http://www.on2.com/cms-data/pdf/windowsapi/group__filter__pngexporter.html

good luck!

jschaf01
02-15-2007, 09:26 PM
You can export an image (or multiple images) using the png export functionality in the latest version. It is not limited to the first frame anymore.

rzaratin
02-22-2007, 10:01 AM
Does anyone have a sample code that exports multiple frames to PNG images?


Tks!

rzaratin
02-22-2007, 02:13 PM
I found a sample code. Use the code bellow before the encode process


string flxPNG = "png exporter";
string pngDirectory = "C:\\TesteFLIX\\png\\";

IFlixPlgn flxJPG = flix.addFilter(flxPNG);
//Generate 4 PNG files
flxJPG.setParam(flix.FE2_PNGEX_AUTO_EXPORT_COUNT,4);
flxJPG.setParamAsStr(flix.FE2_PNGEX_OUTPUT_DIRECTORY,pngDirectory);
flxJPG.setParamAsStr(flix.FE2_PNGEX_FILENAME_PREFIX, inputFile);
flxJPG.setParam(flix.FE2_PNGEX_HEIGHT,84);
flxJPG.setParam(flix.FE2_PNGEX_WIDTH,117);

pradeepyamujala
03-06-2007, 02:32 AM
Thanks friends... your information solved my problem....
thanks alot

avatar
03-23-2007, 10:49 AM
hello,
do you know how to convert png to jpeg.
i heard png doesn't work in some browsers.
pls. advice

thanks

I found a sample code. Use the code bellow before the encode process


string flxPNG = "png exporter";
string pngDirectory = "C:\\TesteFLIX\\png\\";

IFlixPlgn flxJPG = flix.addFilter(flxPNG);
//Generate 4 PNG files
flxJPG.setParam(flix.FE2_PNGEX_AUTO_EXPORT_COUNT,4);
flxJPG.setParamAsStr(flix.FE2_PNGEX_OUTPUT_DIRECTORY,pngDirectory);
flxJPG.setParamAsStr(flix.FE2_PNGEX_FILENAME_PREFIX, inputFile);
flxJPG.setParam(flix.FE2_PNGEX_HEIGHT,84);
flxJPG.setParam(flix.FE2_PNGEX_WIDTH,117);

evereddie
03-23-2007, 10:32 PM
http://www.irfanview-center.com/
Free and very good image converter.

avatar
03-25-2007, 12:12 AM
question for everyone, does everyone first gets png images out of on2 and then converts to gif or jpeg.
there is no wany to get jpeg images directly... even after paying $3500



http://www.irfanview-center.com/
Free and very good image converter.

jschaf01
03-31-2007, 12:55 AM
I'm not sure but the old jpg functionality may still be in the product, but it's limited to the first frame if it is. I don't mind extracting a png. In my conversion process, I convert the extracted image from png to jpg. It only takes a second to process. .NET has all the classes you need. If you are using another language, I'm sure something is available for you to convert. Note that most browsers these days DO support png, including mozilla, firefox, ie, opera, etc. However, png images are much bigger than jpg, so if file size and/or ultimate compatibility are issues, then just grab some code to do the conversion.