Forums

Welcome Guest Search | Active Topics | Members

Grabbing specific frame of a video file Options
Tblaster
Posted: Sunday, June 18, 2006 12:32:02 AM
Rank: Member
Groups: Member

Joined: 6/12/2006
Posts: 12
Points: 0
In the description of Media Processor, it says:

Quote:
Media Processorâ„¢ can grab the necessary frame of a video file


The way that I read this, is that it is possible to create thumbnails of a specific frame of a video file? Am I wrong about this? If not, how do I do it. The code that I use at the moment to get the first non black frame is:

Code:
' Create a thumbnail for the video
objMediaProcessor.LoadFromFile Server.MapPath(file_arr(i))
objMediaProcessor.SmoothFactor = 50
objMediaProcessor.OptimizationOn = True
objMediaProcessor.Quality = 100
objMediaProcessor.SaveToFileAsJpeg(Server.MapPath(file_arr(i)) & ".jpeg") ' Save to file


And if this is not a feature in the current version, then it would be a great feature in comming releases.
Andrew
Posted: Sunday, June 18, 2006 7:16:40 PM

Rank: Advanced Member
Groups: Administration , Member

Joined: 8/2/2003
Posts: 708
Points: 105
There is a StartTime property that can be set to grab a frame on the necessary time position (specified in seconds). Just set it before LoadFromFile call.

Sincerely yours,
Andrew Simontsev from Aurigma Team
Tblaster
Posted: Monday, June 19, 2006 11:57:21 AM
Rank: Member
Groups: Member

Joined: 6/12/2006
Posts: 12
Points: 0
Great! And is there a way that I can find out how many frames that are in the video file?

And the parameter send witht the StartTime, is that the frame number?

And are there any other nice features that The Media Processor is capable of, which is not listed in the methods or properties under the Support center help?
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Yet Another Forum.net version 1.9.1.6 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.