algora-io / tv

Open source Twitch for developers
https://algora.tv
GNU Affero General Public License v3.0
867 stars 48 forks source link

Capture multiple thumbnails per stream and allow streamer to select one #81

Open zcesur opened 1 week ago

zcesur commented 1 week ago

We already capture a thumbnail for each livestream. Let's update Algora.Pipeline.Storage so we capture multiple (up to 6) thumbnails

I think we should use exponential backoff (e.g. on minute 0, 1, 2, 4, 8, 16) so that we get a few options from the get-go and a few more later for variety. Algora.Pipeline.Storage module is segment-based so the math should be done by counting the segments (1 segment = 2 seconds)

Let's also add a simple modal on AlgoraWeb.VideoLive that allows the streamer to select one of the 6 generated thumbnails

zcesur commented 1 week ago

/bounty $75

algora-pbc[bot] commented 1 week ago

💎 $75 bounty • Algora

Steps to solve:

  1. Start working: Comment /attempt #81 with your implementation plan
  2. Submit work: Create a pull request including /claim #81 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

❗ Important guidelines:

Thank you for contributing to algora-io/tv!

Add a bountyShare on socials

Attempt Started (GMT+0) Solution
🟢 @samrat Sep 5, 2024, 7:54:50 AM WIP
samrat commented 1 week ago

/attempt #81

👋 I'd like to take a shot at implementing this.

(e.g. on minute 0, 1, 2, 4, 8, 16) so that we get a few options from the get-go and a few more later for variety.

@zcesur Just to clarify I understood this correctly: we'd still capture 6 thumbnails total, and not replace the earlier thumbnails, right?

zcesur commented 1 week ago

Hey great to see you here @samrat!

And yeah, exactly

samrat commented 6 hours ago

Hey, I've not been able to work on this because of some other priorities.

If anyone else wants to work on it, please feel free to take over!