Skip to content

SL9-1994/term_video_cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

term_video_cli

Command line interface for converting videos etc. and playing them as ascii_art videos from Terminal.

  • 必ずREADMEを最後まで読んでから、使用してください。
  • Be sure to read the README to the end before use.

Example

Features

  • Ability to download Youtube videos
  • Ascii_video conversion of videos and display in Terminal
  • Resizing and displaying videos to fit the terminal size
  • Frame rate: 24FPS

Assets

Asset Note
term_video_cli.exe x86_64-pc-windows-gnu
term_video_cli x86_64-unknown-linux-gnu

Usage

Prerequisite: Please have FFmpeg installed in your execution environment.

  1. download the Youtube video you want to convert with the -u option.
  2. specify the video path with -f option and convert.
  3. start playing the video in the terminal with -p option.

Example

 $ term_video_cli -u [Youtube_video_url]
 $ term_video_cli -f [Path_to_downloaded_video_file]
 $ term_video_cli -p

Help

 $ term_video_cli --help

 This is the terminal_ascii_video drawing CLI with video download capability.
 
 Usage: term_video_cli [OPTIONS]
 
 Options:
   -u, --url <URL>                       Specify any YouTube URL to download the video
   -f, --file-path <CONVERT_VIDEO_PATH>  Enter the path of the video you wish to convert. (Supported extensions: mp4, mkv) Note: Since the conversion is based on the terminal size at the time this option is executed, a terminal of a different size will not be drawn correctly
   -p, --play                            Play ascii_video with the converted image already prepared in tmp
   -h, --help                            Print help
   -V, --version                         Print version

Critical information

Japanese

  1. このCLIを使用して、ダウンロードした動画を他者に公開・再配布することは絶対にやめてください。

  2. 違法アップロードされた動画(アニメ, ドラマ等...)を、ダウンロードすることは絶対にやめてください。

本ソフトウェアは素人が作成したものであり、重大なバグやエラーが含まれている可能性があります。
私は本ソフトウェアを使用して発生した、いかなる問題にも責任を負いません。
使用者の自己責任で使用してください。

English

  1. Please do not use this CLI to publish or redistribute downloaded videos to others.

  2. Never download illegally uploaded videos (anime, drama, etc...) 2. please do not download illegally uploaded videos (anime, dramas, etc...)

This software was created by a novice and may contain bugs and errors.
I take no responsibility for any problems that may arise from the use of this software.
Use at user's own risk.

Dependency

  • ffmpeg "4.4.2-0ubuntu0.22.04.1" => apt install ffmpeg
  • clap "4.5.4"
  • image "0.25.1"
  • rusty_ytdl "0.7.1"
  • term_size "0.3.2"
  • tokio "1.37.0"

License

This project is licensed under the GPL-3.0 License.