microsoft / FFmpegInterop

This is a code sample to make it easier to use FFmpeg in Windows applications.
Apache License 2.0
1.3k stars 310 forks source link

Get thumb #65

Open ramtinak opened 8 years ago

ramtinak commented 8 years ago

Hi, Can anyone guid me how can I get a frame or thumbnail from a MKV file with ffmpeginterop? Thanks

choi-inkyun commented 8 years ago

Get a Thumbnail Image from StorageFile. Example Code : StorageFile m_LocalStorageFile; var thumbnail = await m_LocalStorageFile.GetScaledImageAsThumbnailAsync(ThumbnailMode.SingleItem, 400, ThumbnailOptions.ResizeThumbnail);

ramtinak commented 8 years ago

thank you for your reply! but I don't want to use this func! because It doesn't work on Windows Phone 8.1 (because MKV file does not support by OS)

brabebhin commented 8 years ago

You can check the code in the media stream source, it shows where it gets a video stream as thumbnail. You can use that to extract album art and other stuff from the video.

iamstudentVN commented 8 years ago

@dingpong not work StorageFile can't get flv, m3u8, ts....