Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
In Windows forms applicatoins, I need thumbnails from a video, I used Nreco, and it tells me this:

System.Exception: 'Commercial license key is required (https://www.nrecosite.com/video_converter_net.aspx)'


What I have tried:

var ffMpeg = new NReco.VideoConverter.FFMpegConverter();
ffMpeg.GetVideoThumbnail(videoFile.FullName, @"D:\2.jpg", 5);//error here
pictureBox1.Image =Image.FromFile( @"D:\2.jpg");
Posted
Updated 9-Mar-18 1:43am

You just have to get a valid license for the product you intend to use, and which is obviously not free.
 
Share this answer
 
Comments
john1990_1 27-Jan-18 9:16am    
https://www.nrecosite.com/video_converter_net.aspx

It has a free version... can I work with it in C# Visual Studio Windows Forms Application?
phil.o 27-Jan-18 9:24am    
If there exists a free version, then yes there is probably a way to use their library. But it is on their site that you will be able to find useful information about how to do that. Have you checked their help section?
I also suggest that you stop posting this link at each post, because some may begin to think that it is just a pretext for spamming :)
john1990_1 27-Jan-18 9:26am    
ok, i gave up, i will make my program without thumbnails i've been working on this for day i exhausted all available pages!
phil.o 27-Jan-18 9:33am    
I know it can be frustrating. Have you tried other ffmpeg wrappers for .net. A quick googling on "ffmpeg .net" leads to several results. Not all seem to be alive (one of them is in its alpha stage for more than 10 years now), but have you exhausted them all?
john1990_1 27-Jan-18 9:35am    
Well thank you but i give up...
I just encountered this issue.

It was because I inadvertently nuget installed
NReco.VideoConverter.LT
instead of
NReco.VideoConverter


The LT version (supports Mono/.NET Core) requires a license.

Once I referenced the correct version it started working.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900