twelvelabs-io / tl-jockey

Jockey is a conversational video agent.
51 stars 13 forks source link

add_specific_1sec_buffer #77

Closed DmitriiTsy closed 2 months ago

DmitriiTsy commented 2 months ago

adds 1-second buffer on each side of the requested clip, which helps to ensure that the desired content is fully captured, even if there are slight inaccuracies in seeking.

Tested different scenarios, used prompts like this one:

Using index [OurTwelveLabsIndexHere] please follow these steps: 1. Find a touchdown video in the index and select a 5-second segment that includes the moment the player crosses the goal line. 2. From this 5-second segment, create three shorter clips: a. A 0.5-second clip starting exactly when the player's foot touches the goal line. b. A 1-second clip starting 2 seconds into the 5-second segment. c. A 0.75-second clip from the very end of the 5-second segment. 3. Combine these three clips into a single video in this order: b, a, c (the 1-second clip, then the 0.5-second clip, then the 0.75-second clip). 4. Name the output file 'precise_short_clips_test.mp4'.