Skip to content

bad-apple-lab/Bad-Apple-Python-Module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BadApple-Python-Module

Python Module: Play the video in the console as ASCII art.

Where there is light, there is Bad Apple!!

Installation
python -m pip install badapple

with audio:

python -m pip install badapple[audio]

with any supported player:

python -m pip install badapple[dev]
Run
python -m badapple
Help Message
usage: badapple [options] ... 

BadApple-Python-OS-ISA-Version

options:
  -h, --help            show this help message and exit
  --help_audio          show avaliable players (default: False)
  -i INPUT, --input INPUT
                        video file (use `_BA_MP4` `_BA_BA` to load built-in video) (default: _BA_MP4)
  -o OUTPUT, --output OUTPUT
                        preload output file (default: )
  -s SCALE, --scale SCALE
                        width:height (0 means auto) (default: 0:0)
  -r RATE, --rate RATE  frame rate (default: 1024.0)
  --audio AUDIO         audio file (use `_BA_WAV` `_BA_MP3` `_BA_MP4` to load built-in audio) (default: )
  --audio_player AUDIO_PLAYER
                        audio player [ffplay mpv vlc mpg123 cmus simpleaudio pyaudio playsound auto] (default: )
  -c COLOR, --color COLOR
                        color type [ascii rgb24 halfwidth fullwidth x256e x256w x232e x232w] (default: ascii)
  -m MESSAGE, --message MESSAGE
                        print message (default: )
  --font FONT           font data file (use `_BA_CONSOLA` to load built-in font data) (default: _BA_CONSOLA)
  --not_clear           not clear screen (with ANSI) before each frame (default: False)
  --contrast            contrast enhancement (default: False)
  --preload             preload video (not play) (default: False)
  --debug               debug (default: False)
To Do

start and end time