joelibaceta / video-to-ascii

It is a simple python package to play videos in the terminal using characters as pixels
MIT License
1.67k stars 141 forks source link

just a question sorry my english is not that good #97

Closed vecnhan closed 2 months ago

vecnhan commented 9 months ago

can you customize the character in ASCII? Like instead of random char I want to put a specific string like " Welcome" or "Hello" some like that or even emoji

joelibaceta commented 2 months ago

Yes, of course! You can customize the characters. In this file https://github.com/joelibaceta/video-to-ascii/blob/master/video_to_ascii/render_strategy/image_processor.py#L6-L9, you’ll find the characters used, but for it to work correctly, it’s important to choose characters whose density goes from greater to lesser, so they can be interpreted as darker colors when contrasted against the black background of the terminal.

I think it could be an interesting idea to make this customization process easier in the future. 🤔