Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/albinekb/open-pip-cli
📺 CLI for https://github.com/albinekb/open-pip - Open a movie url or path in macOS picture-in-picture
https://github.com/albinekb/open-pip-cli
Last synced: 3 months ago
JSON representation
📺 CLI for https://github.com/albinekb/open-pip - Open a movie url or path in macOS picture-in-picture
- Host: GitHub
- URL: https://github.com/albinekb/open-pip-cli
- Owner: albinekb
- License: mit
- Created: 2017-03-28T20:49:20.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-05T05:59:54.000Z (about 2 years ago)
- Last Synced: 2024-08-01T16:45:05.168Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 10.6 MB
- Stars: 202
- Watchers: 1
- Forks: 15
- Open Issues: 9
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
- awesome-cli-apps - open-pip-cli - Watch videos in picture-in-picture player. (Utilities / macOS)
- awesome-swoole - zmq - ZeroMQ bindings for Swoole. (Client)
- fucking-awesome-cli-apps - open-pip-cli - Watch videos in picture-in-picture player. (Utilities / macOS)
README
# 📺 open-pip-cli [![Standard - JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) ![](https://img.shields.io/npm/dm/open-pip-cli.svg) ![](https://img.shields.io/npm/v/open-pip-cli.svg)
CLI for [open-pip](https://github.com/albinekb/open-pip)
This will let you open a movie url/path in macOS native picture-in-picture player.Both local files and urls are supported.
Known **working** formats
- mp4
- m4v
- mov
- m3u8Known **not** working formats
- mkv
- avi## Example
![example](https://cloud.githubusercontent.com/assets/5027156/24427435/3529cfc4-140b-11e7-9799-de7326ddc088.gif)
You can also pipe any video URL to `open-pip`. For example, using the [ytdl](https://www.npmjs.com/package/ytdl) module, you can play a YouTube video:
```sh
yarn global add ytdl
ytdl _HSylqgVYQI --print-url | open-pip
```Using the [twitch-url-cli](https://www.npmjs.com/package/twitch-url-cli) module, you can stream a Twitch channel (you need a Twitch client ID though)
```sh
yarn global add twitch-url-cli
echo "abcdefghijklmno12345" > ~/.twitch-client-id
twitch-url BobRoss | open-pip
```Let us know if you have examples for more services.
## Install
### yarn
```sh
yarn global add open-pip-cli
```### npm
```sh
npm install --global open-pip-cli
```## Requirements
As the native picture-in-picture player is only available in macOS Sierra (10.12) and above, this module will also only work with those versions.### Author
Albin Ekblom ([@albinekb](https://github.com/albinekb))