I use VSTS 2008 + C # .Net 3.5 on Windows 7. I want to use Expression Encoder 3 to create a thumbnail image for video (wmv format) every 30 seconds - for example, within 5 minutes there will be 10 thumbnails that reflect the video in for 0 seconds, 30 seconds, 1 minute, 1 minute and 30 seconds, etc.
Any reference code?
Using the SDK , you can try using GetThumbnail :
var video = new MediaItem(filePath); using (var bitmap = video.MainMediaFile.GetThumbnail( new TimeSpan(0, 0, 5), new System.Drawing.Size(640, 480))) { // do something with the bitmap like: bitmap.Save("thumb1.jpg"); }
Source: https://habr.com/ru/post/1309867/More articles:How do I tell the Entity Framework that a column in a view is NULL? - .netContext.startService (intent) or startService (intent) - androidIs it possible to initialize an object in javascript this way? - javascriptWhy is the broadcast AlarmManager canceled when the application is killed? - androidDoes resharper provide any code refactoring for VS that isn't in Eclipse? - javaNaming a Test block that just calls a constructor? - unit-testingCreating Help Fluent NHibernate creates an oracle sequence for each table - c #Javascript REGEX - javascriptFQL: Facebook php application - phpArguments GetLength () - c #All Articles