Code Monkey home page Code Monkey logo

cmdplay-pp's Introduction

cmdplay-pp

What is this?

This is the next, improved version of CmdPlay (https://github.com/mariiaan/CmdPlay). It's an improved version of the original project.

Features

Plays videos back in command line in ascii-art.

  • Colour support: play videos in colour!
  • Dithering support: dithers grayscale and colours!
  • Dynamic resizing: you can resize your console window while playing to obtain a higher/lower resolution!

Screenshots

Demonstration of standard resolution; grayscale; dithering: Screenshot (Video: Bad Apple!)

Demonstration of high resolution; colours; dithering: Screenshot (Video: [Alexandros] - Dracula La)

Demonstration of true-colour; full-pixel: Screenshot (Video: haruka-chan e.1)

What got better (in comparison to the original project)

  • now uses multi-threading for decoding videos!
  • way faster
  • doesn't need to precompute all frames before playing them back, does it while playing!
  • colours as mentioned earlier

Usage

Run cmdplay, enter the file path (most terminal emulators also support drag and drop) and press enter! You can also pass the file name of the video as the first parameter, it will play the video automatically.

Performance tips

  • You should use windows terminal instead of the original windows conhost (known as cmd.exe). This will improve performance significantely due to optimizations in windows terminal.
  • Colours enabled will drop performance significantely due to the terminal not being optimized for that use, so use low resolutions while colours being enabled
  • Dithering in any way (colours and text dithering) will also reduce performance because it circumvents windows terminal optimizations, so again, use low resolutions

Using windows terminal with colours disabled should allow you to use pretty high resolutions!

Controls

SPACE - play/pause

C - toggle colours

D - toggle colour dithering

T - toggle text / grayscale dithering

Q - quit

A - accurate colours (true-colour)

B - full pixel

Libraries, this project depends on

License

This project uses the MIT license. TLDR: You can do whatever you want with the project as long as you include the license and the original copyright message. (LICENSE file) Important: The BASS audio library (a dependency of this project) is a commercial product. While it is free for non-commercial use, please ensure to obtain a valid licence if you plan on distributing any application using it commercially. You can obtain a commercial license at https://www.un4seen.com/license.php The project also uses FFmpeg (https://ffmpeg.org/) which is licensed under LGPL 2.1+.

Pull-requests will be reviewed and accepted, please keep your code simple, short and understandable! thank you for all your support

cmdplay-pp's People

Contributors

mariiaan avatar toyb-chan avatar

Watchers

 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.