#1
Posted
:
Friday, July 24, 2009 9:24:34 AM(UTC)
Groups: Tech Support
Posts: 366
Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)
This example is built in C# with LEADTOOLS Multimedia 16 and Visual Studio 2005.
The example illustrates how you can use our Callback filter to get a handle on the raw image data from a file, and manipulate it accordingly. Specifically, this sample will create a RasterImage from the raw data, and then flip the image upside down.
If you need to be able to process every frame in a file, the convert control should be substituted for the player control. The player control will drop frames as necessary, whereas the convert control will not.
Walter Bates
Senior Support Engineer
LEAD Technologies, Inc.
#2
Posted
:
Monday, July 27, 2009 8:49:00 AM(UTC)
Groups: Tech Support
Posts: 366
Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)
Here is an example in VB.NET that uses our callback filter and convert control.
This example will compress every frame from a sample file to an image directory where the application is running from. It does not do any processing on the image before saving the file, although this would not be difficult to do. The example uses JPEG compression, but any supported output format can be used. For a list of supported output format, please see the following page:
LEADTOOLS File FormatsThis process allows you to save the files using any naming convention you'd like.
This sample does create a temporary file during the conversion process.
This file is deleted once the conversion has complete. Another alternative to creating and deleting a temporary file is to set the targetFile property to something like "C:\NUL" which will not create any file but will still work.
Edited by moderator Monday, August 19, 2019 8:22:40 AM(UTC)
| Reason: Fixed old link
Walter Bates
Senior Support Engineer
LEAD Technologies, Inc.
#3
Posted
:
Friday, August 14, 2009 4:35:11 AM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 764
Rather than using a temporary file that you create and delete, another option is to use the special DOS "throw away" file name: "NUL". If you use something like c:\NUL for the targetFile property, no file will be written and the callback will be fired as expected.
#4
Posted
:
Friday, April 8, 2011 12:53:21 PM(UTC)
Groups: Tech Support
Posts: 366
Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)
I've updated the VB.NET example to use the Visual Studio 2008 and the Leadtools.Multimedia assembly.
Walter Bates
Senior Support Engineer
LEAD Technologies, Inc.
#5
Posted
:
Thursday, April 21, 2011 8:02:11 AM(UTC)
Groups: Tech Support
Posts: 366
Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)
For those using C#, here's an updated version for LEADTOOLS Multimedia 17 using VS 2008
Walter Bates
Senior Support Engineer
LEAD Technologies, Inc.
#6
Posted
:
Monday, February 20, 2012 5:59:29 AM(UTC)
Groups: Registered, Tech Support
Posts: 179
I have updated the C# project to work with v17.5 and with convert control using VS2008. The updated demo applies simple processing to the frames in the video and saves the modified video as uncompressed AVI.
Mohamed Abedallah
Developer Support Engineer
LEAD Technologies, Inc.
#7
Posted
:
Friday, November 3, 2017 4:56:28 PM(UTC)
Groups: Tech Support
Posts: 366
Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)
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.