A tool written in C which lets you play any video (local or with URL) as ASCII text in the terminal. Created as a project for the CSE-201 Procedural Programming in C course.
out.mp4
-
Install the dependencies
- Ubuntu/Debian:
sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev
- Arch:
sudo pacman -S ffmpeg
- Ubuntu/Debian:
-
Compile the program
gcc main.c -o player -lavformat -lavcodec -lavutil -lswscale -lm
-
Then execute the
player
file with./player
. The program will ask for the name of the file, you can either enter the name of a video file in the same directory or feed it a URL to a video.
Note: The video will resize itself to the current dimensions of your terminal, if you wish to have a higher quality output zoom out your terminal before running the program