View images and videos without leaving the console
>>> Improved version at PyTerminalMediaViewer <<<
- View images form any terminal
- Watch videos from any terminal
- Watch youtube videos from any terminal (
-y,--youtube) - Play videos at any fps (
-f,--fps,-F,--origfps) - Resize images / videos (
-w,-h,--width,--height) - Easy to use
Viewing an image
Watching a video
- A terminal that supports truecolor (list) and utf-8 (most terminals should support utf-8).
- ffmpeg (only for videos)
- youtube-dl (only for youtube videos)
tmv [OPTIONS...] [INPUT FILE / URL]
-
INPUT
File to display/play -
OPTIONS...-y.--youtube
View youtube videos-h,--height
Set height (setting bothwidthandheightwill ignore original aspect ratio)-w,--width
Set width (setting bothwidthandheightwill ignore original aspect ratio)-f,--fps
Set fps (default 15 fps)-F,--origfps
Use original fps from video (default 15 fps)-s,--no-sound
Disable sound-i,--no-info
Disable progress bar for videos-?,--help
Display help-V
Display version
Instructions:
-
Install dependencies.
libavcodec-devlibavformat-devlibavfilter-devlibavdevice-dev
In addition, to watch videos install:
ffmpegyoutube-dl
-
Clone the repository and run make.
git clone https://github.com/kal39/TerminalMediaViewer.git cd TerminalMediaViewer makeTo install tmv to
/usr/local/binyou can runmake install(needs sudo privileges).
To uninstall runmake uninstall(needs sudo privileges).
Requirements:
homebrewiterm2
Instructions:
- Install dependencies
In addition, to watch videos:
brew install argp-standalonebrew install ffmpeg brew install youtube-dl - Clone the repository and run make.
To install tmv to
git clone https://github.com/kal39/TerminalMediaViewer.git cd TerminalMediaViewer make/usr/local/binyou can runmake install(needs sudo privileges).
To uninstall runmake uninstall(needs sudo privileges).
Only works on iTerm2.
There are some performance issues. Depending on the video encoding, your mileage may vary.
-
v0.1.1Youtube Support
TerminalMediaViewer can now play videos directly from youtube.
To play videos from youtube, use the-yoption.- Improved memory usage
- Cursor is now hidden during videos
- Supports spaces in video filenames
- Play videos directly from youtube
- Check if ffmpeg and YouTube exist before playing videos
- Better error and debug messages
-
v0.1Initial release
Initial release of tmv.
It is in a very early state so bugs are expected.- View images
- Watch videos (with sound)
- Resize images / videos
Any contributions are greatly appreciated.
kal39(https://github.com/kal39) - [email protected]
Distributed under the MIT license. See LICENSE for more information.