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

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
 
N

Nicholas Paldino [.NET/C# MVP]

Volkan,

Simple answer, you can't.

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

Volkan Senguel

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
 
N

Nicholas Paldino [.NET/C# MVP]

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
 
V

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top