elebumm / RedditVideoMakerBot

Create Reddit Videos with just✨ one command ✨
GNU General Public License v3.0
6.65k stars 1.86k forks source link

[Feature]: "Fancier" method for Storymode #1629

Closed Tal-Dahann closed 8 months ago

Tal-Dahann commented 1 year ago

Summary

Sentences will be cut to 2-4 words, example below.

Is your feature request related to a problem?

No, Its not

Describe the solution you'd like

For more context, what i mean is to make a story video where each sentences is also cut to 2-4 words. The TTS will still read the whole sentence as it is (Because we want it to sound normal...) But the images of the subtitles on the screen will be much faster pace.

Why do we need this? if you look around tiktok for example, this is a common style that gets alot of views. This is because fast pace videos are more engaging and make the viewers more interested

For example for the sentence: "My (17F) Sister (24F) is getting married in ...."

The video will look like shown in the pictures below.

Describe alternatives you've considered

Additional Context

Please ignore the fact that the font is super small, this ofc can be changed.

image image image

randomuser1090 commented 1 year ago

UP. I have the same request as well. The thing is I don't know how to code. Have you already seen transition effect between captions? Follows a video below as example:

https://vm.tiktok.com/ZM2R3hD6X/?t=2

Look at how engaging and entertaining this video is and how the captions with its transition effect, font, pace plays a good role for this to happen.

Is it possible to also increase the the font text size of the captions?

randomuser1090 commented 1 year ago

will you create a pull request with the enhanced captions?

zgauhar commented 1 year ago

Hi, Could you please create a pull request with your changes? I'm also looking for the same feature. Would be nice to have the following:

  1. Adjust the font size
  2. Post as screenshot
  3. Comments as captions instead of screenshots

This format is quite common on the TikTok top trending videos. I know a little bit about coding so I may be able to help if you're running into issues.

randomuser1090 commented 1 year ago

Hi, Could you please create a pull request with your changes? I'm also looking for the same feature. Would be nice to have the following:

  1. Adjust the font size
  2. Post as screenshot
  3. Comments as captions instead of screenshots

This format is quite common on the TikTok top trending videos. I know a little bit about coding so I may be able to help if you're running into issues.

You can already change the font size:

Go to utils, open imagenerator.py

Go to line 68

That's It, you just have to change the values:

if transparent: font = ImageFont.truetype(os.path.join("fonts", "Roboto-Bold.ttf"), 50) tfont = ImageFont.truetype(os.path.join("fonts", "Roboto-Bold.ttf"), 50)

OBS: font = Post font size tfont = Comments font size

About the other changes, I have noticed this video format on TikTok as well, but I don't know how to code. It would be very cool if you opened a pull request doing these changes you mencioned and also the "fancier" method for storymode which is cut the sentences of subtitles to 2-4 words with your knowledge.

idkonow commented 1 year ago

this should definitely be a feature.

Ayanokoujikiyo commented 1 year ago

Please share the code or make a pull request as that would further improve the bot. Its a feature i've been working on as well but i just cant seem to make it work. Thank you in advance!