0
Guys I was using the following code to show several images in a listview as if it were a library.
For Each arquivos In FileIO.FileSystem.GetFiles(caminho, FileIO.SearchOption.SearchAllSubDirectories, "*.png", "*.jpg")
Using str As Stream = File.OpenRead(arquivos)
img = Image.FromStream(str)
imagem.Images.Add(img)
End Using
ListView1.LargeImageList = imagem
ListView1.Items.Add(arquivos, contador)
contador += 1
I wonder if I can do something similar but with video. Showing a frame of the video and clicking to open the video.
Ex: Microsoft Movies & TV and Youtube.
– Tony
That’s the part I’m struggling with. How I feed the thumbnails from the videos?
– Lucas Pedro
I thought to use ffmpeg: ffmpeg.exe -i video_file.mp4 -ss 00:00:01.000 -vframes 1 output.png
– Tony
Azure has this service: https://docs.microsoft.com/en-us/azure/media-services/previous/media-services-video-summarization
– Tony
Please could not give an example of a code?
– Lucas Pedro
var process = Process.Start(...); process.Waitforexit(); https://stackoverflow.com/a/3148162/194717
– Tony
Could you give an example of a code of how to take a frame of a video to use as a thumbnail using the language I used?
– Lucas Pedro