Home > Event Receiver, Sharepoint > Video Thumbnail automatic generator for Asset Library

Video Thumbnail automatic generator for Asset Library


This is important update for my previous video thumbnail generator codes at http://netindonesia.net/blogs/pdanan/archive/2011/04/05/create-automatic-video-thumbnail-in-asset-library.aspx .

The update is in update event parts that is using properties.AfterProperties[oitem.Fields[“Preview Image URL”].InternalName] … and delete SPListitem.update().. cause we don’t need this anymore if using AfterProperties.

Reason for that is because we can’t update current item in itemUpdated Event , instead use AfterProperties.

Here is the completed source projects (sorry for the ugly code, at least it works for me Smile ) : VideoThumbGenerator.zip .

I use FFMPEG for thumbnail generator cause it’s good and free, but you can adjust with your own generator.

  1. maryadi
    April 27, 2012 at 10:10 am

    Sebelumnya salam kenal mas..
    Berguna banget nih 🙂
    kalo buat capture thumbnailnya pake visual web part dan list untuk image berbeda dengan videonya, yang perlu dipahami lebih dalam di fungsi CreateThumbnail() nya ya Mas..
    tapi harus banyak yang di bongkar sepertinya source code dari Mas 😦

    • April 27, 2012 at 12:20 pm

      Thx. Iya, library utk vidio dan tumbnailnya terpisah. Kl Video pake Asset library (hanya ada di SharepointServer 2010), kl tumbnail pake picture library.

  2. Kusuma
    June 8, 2012 at 3:46 pm

    Thanks for this post.image is not created in the TempVideo folder by execute ffmpeg through visualstudio.Please help me out

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: