cool stuff that you can do in your terminal __ __ __ | |_.-----.----.--------.|__|.-----.---.-.| | | _| -__| _| || || | _ || | |____|_____|__| |__|__|__||__||__|__|___._||__| warning: some of these may only work natively in the terminal and may not be supported in multiplexers or over ssh. video ===== caveat emptor: random shit i found on the internet ```sh # [1] mpv --no-config --vo=sixel --profile=sw-fast --really-quiet --vo-sixel-reqcolors=0 --ao='pulse' /path/to/video/file # lower quality, but more likely to be supported since it just # uses unicode mpv --no-config --vo=tct /path/to/video/file # lower quality but # [2] mpv --ytdl-format="bv[height<=720]+ba" # more useful ytdl (works with ytdlp) ytdl-format=bestvideo[height>=?1440][vcodec^=vp9]+bestaudio/bestvideo[height<=?1440][vcodec^=av0]+bestaudio/bestvideo+bestaudio/best # installing the correct version mpv for windows (shinchiro) and # frens winget install -e shinchiro.mpv winget install -e yt-dlp.yt-dlp # ffmpeg tailored to ytdlp winget install -e yt-dlp.FFmpeg # finding out what xdg is going to use (app) to open a file xdg-mime query default audio/mpeg # set a new default app for video xdg-mime default mpv.desktop audio/mpeg ``` additional resources -------------------- - awesome-mpv[3] for more useful stuff - a nice little script[4] to browse a youtube playlist using fzf, mpv and jq - archlinux have their own useful mpv[5] page - a high quality mpv config that requires additional add-ons[6] - timg's own github page[7] miscellany ========== ```sh # how to become root in synology ssh @ sudo su # enter some.admin.account's password ``` [1] https://askubuntu.com/questions/1258409/can-one-watch-video-in-terminal-command-line [2] https://github.com/mpv-player/mpv/discussions/14469#discussioncomment-10576050 [3] https://github.com/stax76/awesome-mpv [4] https://gist.github.com/kelvinauta/7bfd6ddc81ee4050210592c29d9e0edf [5] https://wiki.archlinux.org/title/Mpv [6] https://github.com/noelsimbolon/mpv-config [7] https://github.com/hzeller/timg