Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@vercel/blob - Support for Thumbnail in Video Uploads #699

Open
bhupesh98 opened this issue Jun 21, 2024 · 2 comments
Open

@vercel/blob - Support for Thumbnail in Video Uploads #699

bhupesh98 opened this issue Jun 21, 2024 · 2 comments

Comments

@bhupesh98
Copy link

Summary

I am working on a project where I have to display all the videos that are uploaded in blob. But I have to manually take out the a thumbnail image and uploading it there. For streaming purposes, it is important to have a thumbnail to show.

I propose an addition in response API of upon uploading and listing videos.

{
  pathname: 'profilesv1/user-12345.txt',
  contentType: 'text/plain',
  contentDisposition: 'attachment; filename="user-12345.txt"',
  url: 'https://ce0rcu23vrrdzqap.public.blob.vercel-storage.com/profilesv1/user-12345-NoOVGDVcqSPc7VYCUAGnTzLTG2qEM2.mp4'
  downloadUrl: 'https://ce0rcu23vrrdzqap.public.blob.vercel-storage.com/profilesv1/user-12345-NoOVGDVcqSPc7VYCUAGnTzLTG2qEM2.mp4?download=1',
  thumbnail: 'https://ce0rcu23vrrdzqap.public.blob.vercel-storage.com/.thumbnail/user-12345-NoOVGDVcqSPc7VYCUAGnTzLTG2qEM2.png'
}

Here, .thumbnail folder can be made which is used to store metadata like thumbnail. I would like to discuss its complexity & contribute if it is approved by maintainers of this repo.

@vvo
Copy link
Member

vvo commented Jun 21, 2024

Hey @bhupesh98 are you suggesting that Vercel Blob could create a thumbnail from your videos automatically? Thanks!

@bhupesh98
Copy link
Author

Hey @bhupesh98 are you suggesting that Vercel Blob could create a thumbnail from your videos automatically? Thanks!

Yes, while uploading videos, it should randomly take out a frame and save it in .thumbnail folder under same pathname. Also, for videos, a config object can be sent to customize which timestamp of video frame to take as a thumbnail.

@bhupesh98 bhupesh98 changed the title @vercel/blob - Support for Thumbnail in Vidoe Uploads @vercel/blob - Support for Thumbnail in Video Uploads Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants