Creating thumbnail from a avi/mpeg video with just dotnet 3.5?

  • Thread starter Thread starter Volkan Senguel
  • Start date Start date
V

Volkan Senguel

Hi, im searching a way how to create a thumbnail with just the 3.5
framework.

I have found several solutions but all has a assembly or a com object for
doing the thumb stuff :(


What i need is only a way to select a video file - all codecs are installed
on the pc where the tool running - geting the lenght (seconds) and grabs one
thumbnail from a specific time in the movie and saves this to disk.

how to do that, can i use the mediaplayer namespace from the framework?

thank you for any tips or links ;)
Volkan Senguel
 
Volkan,

Simple answer, you can't.

You are going to have to use the DirectShow library through COM interop.
 
Thank you Nicholas for you fast answer, but i'm not very familiar with the
directshow libs.
Do you know where i find samples how to create thumbs from a video file?

thank you
Volkan Senguel

Nicholas Paldino said:
Volkan,

Simple answer, you can't.

You are going to have to use the DirectShow library through COM
interop.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Volkan Senguel said:
Hi, im searching a way how to create a thumbnail with just the 3.5
framework.

I have found several solutions but all has a assembly or a com object for
doing the thumb stuff :(


What i need is only a way to select a video file - all codecs are
installed on the pc where the tool running - geting the lenght (seconds)
and grabs one thumbnail from a specific time in the movie and saves this
to disk.

how to do that, can i use the mediaplayer namespace from the framework?

thank you for any tips or links ;)
Volkan Senguel
 
Volkan,

Try the DirectShow.Net library, as it takes care of a lot of the hassle
for you:

http://directshownet.sourceforge.net/

You might want to check out the GSSF sample, as it shows you how to
create a source filter, which you can use to create a snapshot.

The key is determining WHEN to take the snapshot, you can't always
depend on the first frame, depending on the movie.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Volkan Senguel said:
Thank you Nicholas for you fast answer, but i'm not very familiar with the
directshow libs.
Do you know where i find samples how to create thumbs from a video file?

thank you
Volkan Senguel

Nicholas Paldino said:
Volkan,

Simple answer, you can't.

You are going to have to use the DirectShow library through COM
interop.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Volkan Senguel said:
Hi, im searching a way how to create a thumbnail with just the 3.5
framework.

I have found several solutions but all has a assembly or a com object
for doing the thumb stuff :(


What i need is only a way to select a video file - all codecs are
installed on the pc where the tool running - geting the lenght (seconds)
and grabs one thumbnail from a specific time in the movie and saves this
to disk.

how to do that, can i use the mediaplayer namespace from the framework?

thank you for any tips or links ;)
Volkan Senguel
 
thank you, i will try ;)

Nicholas Paldino said:
Volkan,

Try the DirectShow.Net library, as it takes care of a lot of the hassle
for you:

http://directshownet.sourceforge.net/

You might want to check out the GSSF sample, as it shows you how to
create a source filter, which you can use to create a snapshot.

The key is determining WHEN to take the snapshot, you can't always
depend on the first frame, depending on the movie.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Volkan Senguel said:
Thank you Nicholas for you fast answer, but i'm not very familiar with
the directshow libs.
Do you know where i find samples how to create thumbs from a video file?

thank you
Volkan Senguel

Nicholas Paldino said:
Volkan,

Simple answer, you can't.

You are going to have to use the DirectShow library through COM
interop.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Hi, im searching a way how to create a thumbnail with just the 3.5
framework.

I have found several solutions but all has a assembly or a com object
for doing the thumb stuff :(


What i need is only a way to select a video file - all codecs are
installed on the pc where the tool running - geting the lenght
(seconds) and grabs one thumbnail from a specific time in the movie and
saves this to disk.

how to do that, can i use the mediaplayer namespace from the framework?

thank you for any tips or links ;)
Volkan Senguel
 
Back
Top