Video-Hub-App icon indicating copy to clipboard operation
Video-Hub-App copied to clipboard

Consider toggle to auto-add preview image when only one image in folder

Open whyboris opened this issue 2 years ago • 4 comments

🤔 may be easy - but will require a check-box during the creation of the hub, which is easy to do but perhaps hard to communicate its behavior 🤔

If check-box checked during creation of hub, pull in cover.jpg or cover.png automatically, or if the folder has only one video file and only one image file inside it (😓 may be annoying to check - what if there is some .txt in there as well) 🤷‍♂️

Not an important feature, but might be worth trying 🤷

whyboris avatar Oct 04 '23 13:10 whyboris

I will take this up. Can you help me set up in my local?

K-Vishwak avatar Oct 21 '23 13:10 K-Vishwak

Hey @K-Vishwak - please see basic instructions here: Readme

Basically you need Node installed (comes with npm) and then after you clone this repository to your local machine, just npm install --legacy-peer-deps and then npm start

Let me know if you have trouble 🤝

whyboris avatar Oct 21 '23 18:10 whyboris

Thanks for the input. I am able to run in my local.

Now want to understand what to implement.

Where to add this preview image based on the checkbox?

K-Vishwak avatar Oct 23 '23 16:10 K-Vishwak

Sorry missed this response with a question 😓

The default screenshot for every video is currently generated with FFmpeg and is placed inside thumbnails folder. There is already functionality that lets users drag & drop an image over a video in VHA and make it the default thumbnail for the video (replacing the one previously generated).

The issue / improvement proposed here is to instead use the cover.jpg from the folder instead of extracting the screenshot from the video.

Since we can re-use the function that handles inserting image from drag & drop, this feature might not be too annoying to implement.

whyboris avatar Nov 24 '23 16:11 whyboris