{"id":17823300,"url":"https://github.com/purarue/mpvf","last_synced_at":"2025-09-09T21:47:41.666Z","repository":{"id":94610496,"uuid":"255003631","full_name":"purarue/mpvf","owner":"purarue","description":"Interface to select youtube-dl format for streaming stuff with mpv","archived":false,"fork":false,"pushed_at":"2024-11-12T04:04:06.000Z","size":13332,"stargazers_count":17,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T17:06:15.575Z","etag":null,"topics":["audio","cli","fzf","fzf-scripts","mpv","mpv-script","video","youtube-dl"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/purarue.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-12T03:49:39.000Z","updated_at":"2025-04-02T14:47:20.000Z","dependencies_parsed_at":"2024-10-27T18:22:25.357Z","dependency_job_id":"31b2dc04-c741-457c-84a9-7e0d03bcfc43","html_url":"https://github.com/purarue/mpvf","commit_stats":null,"previous_names":["seanbreckenridge/mpvf"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/purarue/mpvf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purarue%2Fmpvf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purarue%2Fmpvf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purarue%2Fmpvf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purarue%2Fmpvf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/purarue","download_url":"https://codeload.github.com/purarue/mpvf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purarue%2Fmpvf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274367686,"owners_count":25272301,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-09T02:00:10.223Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audio","cli","fzf","fzf-scripts","mpv","mpv-script","video","youtube-dl"],"created_at":"2024-10-27T17:57:22.125Z","updated_at":"2025-09-09T21:47:41.616Z","avatar_url":"https://github.com/purarue.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mpvf\n\n\u003cimg src=\"https://raw.githubusercontent.com/purarue/mpvf/master/.github/demo.gif\"\u003e\n\nInterface to select a `youtube-dl` format for streaming [stuff](https://ytdl-org.github.io/youtube-dl/supportedsites.html) with `mpv`.\n\nIf you select a format with video only, automatically adds 'bestaudio' to the format.\n\n```\nUsage: mpvf URL [OPTION]...\nInterface to select a youtube-dl format for streaming stuff with mpv.\n\nPass the URL to stream from as the first argument.\nAdditional options/arguments are passed onto mpv.\n\nYou can set the MPVF_DL environment variable to download\nthe selected format code instead, like:\nMPVF_DL=1 mpvf https://... [youtube-dl OPTION...]\n```\n\nYou can set the `MPVF_PICKER` environment variable to use [`dmenu`](https://tools.suckless.org/dmenu/)/[`rofi`](https://github.com/davatorium/rofi) instead of [`fzf`](https://github.com/junegunn/fzf):\n\n```bash\nexport MPVF_PICKER=rofi\nmpvf 'https://...'\nexport MPVF_PICKER=dmenu\nmpvf 'https://...'\n```\n\n### Installation\n\nDependencies: [`mpv`](https://mpv.io/), [`youtube-dl`](https://ytdl-org.github.io/youtube-dl/index.html), [`fzf`](https://github.com/junegunn/fzf) (or specify `dmenu`/`rofi` as alternative)\n\nInstall each dependency if not already installed and then [download/copy `mpvf` to somewhere on your `$PATH`](#manual-install)\n\nCould also use [`basher`](https://github.com/basherpm/basher):\n\n```bash\nbasher install purarue/mpvf\n```\n\n### Notes\n\nIf you want to stream just the audio, you can select the audio format, or pass the `--no-video` `mpv` flag.\n\nI've _further_ wrapped this script as well:\n\n- bound to different keybinds:\n  - [grab URL from my clipboard and stream using `mpvf`](https://purarue.xyz/d/stream-media?redirect)\n  - or, grab the URL and [just stream audio](https://purarue.xyz/d/stream-audio?redirect)\n  - or, grab the URL and [stream video](https://purarue.xyz/d/stream-corner?redirect), stickying the video in the bottom right of the screen ('picture in picture'-like), using [this](https://purarue.xyz/d/i3-picture-in-picture?redirect)\n  - have other related variations; to grab the URL and [stream at different resolutions](https://github.com/purarue/dotfiles/blob/9da260bd6610dbbe5ff90b6bea54cfba48bd505a/.config/shortcuts.toml#L509-L562), often called from my RSS reader\n- [`twitch`](https://github.com/purarue/dotfiles/blob/2cf8b8d6e5901e3a099cfafb925a72ba1e40504a/.local/share/shortcuts/twitch-stream): streams a twitch stream using `mpvf`. See [this blog post](https://purarue.xyz/x/blog/how-i-watch-twitch/) for more context.\n- [`mediaproxyvideo`](https://github.com/purarue/vps/blob/11df5cba6b9d7016b42b817de48e3b16f5ce9ecb/bin/mediaproxyvideo): mostly a copy of `mpvf`, which prompts me to select a format, `ssh`'s onto my server, `youtube-dl`/`ffmpeg`'s that video onto my server, and copies the public link its hosted on onto my clipboard.\n\n### Manual Install\n\n```sh\nwget https://github.com/purarue/mpvf/raw/refs/heads/master/mpvf\nchmod +x ./mpvf\nsudo mv ./mpvf /usr/bin/\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurarue%2Fmpvf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpurarue%2Fmpvf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurarue%2Fmpvf/lists"}