GithubHelp home page GithubHelp logo

conquade's Introduction

image

Conquade video player

A video player designed to play videos in the linux console.

Requirements

Known problems

  • Video lags and sometimes desyncs with audio
  • Videos that contain raw audio larger than 2.1GB can't be played

Showcase

image image image

Usage

If you want to view usage the terminal-like way, go here.

Required parameters are marked with *.

conquade.jar <action> <params>

Global args

  • -debug   enable debug (verbose) mode
  • -tmp   set the conquade temporary folder (default: /tmp/conquade | %USER%\AppData\Local\Temp\conquade)
  • -ffmpeg   set path to the ffmpeg executable (default: ffmpeg)
  • -256   use 256 color space instead of true color (256 ^ 3)

Help

conquade.jar help <args>   print usage information

Render

conquade.jar render <args>   render a video file to a conquade file

Render args

  • *-i   input video file path
  • *-o   output conquade file path (should end with .cqd file extension)
  • -fps <number>   set the rendering fps (default: 30), it must be true that "0 < fps < 256"
  • -force   overwrite output file if it already exists
  • -noaudio   do not render audio, even if it is present (must be used for videos without an audio track)

Play

conquade.jar play <args>   play a prerendered conquade file

Play args

  • *-i   input conquade file path
  • -noaudio   do not play audio, even if it is present
  • -nores   ignore resolution mismatch (when the rendered video size is different from the terminal size)
  • -color <target>   set the color target (default: text_only)
    • text_only   print only colored text
    • highlight_only   do not print text, print only colored highlight
    • black_text   print black text and colored highlight

Stream

conquade.jar stream <args>   stream (play) a video without prerendering it

Stream args

  • *-i   input video file path
  • -fps   set the streaming fps (default: 30), it must be true that "0 < fps < 256"
  • -noaudio   do not stream audio, even if it is present (must be used for videos without an audio track)
  • -color <target>   set the color target (default: text_only)
    • text_only   print only colored text
    • highlight_only   do not print text, print only colored highlight
    • black_text   print black text and colored highlight

Examples

  • Render a video at 50 FPS:
    java -jar conquade.jar render -i ~/Videos/shrek.mp4 -o ~/Videos/shrek.cqd -fps 50
  • Play a prerendered video:
    java -jar conquade.jar play -i ~/Videos/shrek.cqd
  • Play a prerendered video without sound:
    java -jar conquade.jar play -i ~/Videos/shrek.cqd -noaudio
  • Stream a video at 50 FPS with a different ffmpeg executable:
    java -jar conquade.jar stream -i ~/Videos/shrek.mp4 -fps 50 -ffmpeg /opt/ffmpeg-6.1.1/ffmpeg

Build

Requires Maven

git clone https://github.com/Mandlemankiller/Conquade.git
cd Conquade
mvn package

The jar file is located in Conquade/target/Conquade-1.0-SNAPSHOT-jar-with-dependencies.jar

conquade's People

Contributors

huzvanec 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.