With an endless stream of new video content on our feeds, engaging the audience with dynamic visual elements can make educational and promotional videos much more impactful. VideoDB's suite of features allows you to enhance videos with programmatic editing.
In this tutorial, we'll explore how to create a video that visually counts and displays instances of a specified word as it's spoken. We'll use VideoDB’s
Add text and audio overlays at each instance where the word is spoken.
Note: Adding the ‘padding’ is an optional step. It helps in adding a little more context to the exact instance identified, thus resulting in a better compiled output.
from videodb.asset import TextAsset, TextStyle, VideoAsset, AudioAsset
Finally, generate a streaming URL for your edited video and play it.
from videodb import play_stream
stream_url = timeline.generate_stream()
play_stream(stream_url)
Here’s a preview of showing occurrence of the word Education
Loading…
Conclusion
This tutorial showcases VideoDB's capabilities to create a video that programmatically counts and displays the frequency of a specific keyword spoken throughout the video. This method can be adapted for various applications where dynamic text overlays add significant value to video content.
Tips and Tricks
Use different text styles and positions based on your video's theme.
Add background sounds or effects to enhance the viewer's experience.