Git Product home page Git Product logo

ascii-media-player_pavi's Introduction

ASCII Media Player

A python program that creates ASCII graphics from images and videos. It can also play videos with subtitle support (given a .srt file)! ๐Ÿ˜ฑ

๐ŸŽ Motivation

You have seen Music Players, Stack-overflow surfers, Hacker News portals etc. in the terminal, so it is the logical next step ๐Ÿ˜…. Besides, the terminal makes almost everything appear x10 times more cool.

โš—๏ธ Dependencies

Language and Packages

The program runs using python3 The following python packages are used in the program:

  • pysrt
  • opencv-python
  • Pillow
  • numpy

These packages can be installed using any package manager for python like pip, conda, etc.

Terminal Requirements

All POSIX compliant terminals should work well. If you use windows, and the program doesn't work well, try switching to WSL (Windows Subsystem for Linux)

๐ŸŽฅ A Demo

demo-video.mp4

๐Ÿ› ๏ธ Usage

Navigate to the directory of the python script and run the following command

python generate.py $VIDEO_FILENAME $SUBTITLE_FILENAME $OPTION

If you want to run without subtitles then

python generate.py $VIDEO_FILENAME $OPTION

Here $VIDEO_FILENAME and $SUBTITLE_FILENAME are the full path to the files and $OPTION takes values 0 for black and white output and 1 for true colour output (see if your terminal supports true colour before enabling)

๐Ÿ“ TODO and Future Plans

  • Support 3-bit RGB (8-colours)
  • Support true colour (24-bit RGB) visit tc-version branch
  • Support automatic resizing
  • Support B&W output
  • Support subtitles

ascii-media-player_pavi's People

Contributors

pk-cod3ch3mist avatar yashee99 avatar jeremiasfuentes avatar vishesh-dd4723 avatar tom712 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.