Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, Can anyone please help me with the following? I have a website in Asp.Net/VB.Net and it has an AjaxUploader which I'm using so that users can upload videos to the site. It successfully saves the uploaded video files but I need seperately save a thumbnail from the video too. I found this page which claims to be the solution: https://www.codeproject.com/Arti…/24995/FFMPEG-using-ASP-NET But because I'm still just learning, I don't know how to fit all this in to my code, what to download and where to store it on the site. Or is there an easier way to do this? Below is my VB code I use for the uploader. I appreciate any help at all.

VB
Protected Sub AjaxFileUpload1_UploadComplete(sender As Object, e As AjaxControlToolkit.AjaxFileUploadEventArgs) Handles AjaxFileUpload1.UploadComplete

  Dim filename As String = RemoveSpecialChars(e.FileName)
  Dim imageFilename As String = DateTime.Now.Ticks.ToString() + "_" + filename
  Dim acc As New accounts(Membership.GetUser.ProviderUserKey)
 
  AjaxFileUpload1.SaveAs("E:\kunden\homepages\19\d664110395\www\myUrl\catalog\videos\" & imageFilename)

  'Insert uploaded file details

  Dim item As New items
  item.filename = imageFilename
  item.originalFilename = RemoveSpecialChars(filename)
  item.bootsaleDate = "1/1/2090"
  item.accountID = aID
  item.InsertItems(item.filename, item.originalFilename, item.bootsaleDate, item.accountID)

End Sub


What I have tried:

I wasn't sure where to put the code shown in step 2 of the link. Also, where do I download and extract the ffmpeg module to? I tried putting the code on the link page on my page: video.aspx.vb but no luck.
Posted
Updated 10-Jun-19 5:21am
Comments
[no name] 10-Jun-19 11:08am    
Seems even if you had a "solution", you wouldn't know how to "implement" it. And we can't do that either.

1 solution

Don't post this under Quick Answers - if you got the code from an article, then there is a "Add a Comment or Question" button at the bottom of that article, which causes an email to be sent to the author. They are then alerted that you wish to speak to them.
Posting this here relies on them "dropping by" and realising it is for them.
 
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