{"id":15080156,"url":"https://github.com/codebrahmin/chrome-youtube-hdr-linux","last_synced_at":"2026-04-03T10:39:57.350Z","repository":{"id":254107651,"uuid":"845395183","full_name":"CodeBrahmin/Chrome-YouTube-HDR-Linux","owner":"CodeBrahmin","description":"Chrome Extension to play HDR files in Linux using MPV","archived":false,"fork":false,"pushed_at":"2024-11-19T19:42:25.000Z","size":11181,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T03:28:55.516Z","etag":null,"topics":["chrome","hdr","linux","mpv"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CodeBrahmin.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":"2024-08-21T07:01:06.000Z","updated_at":"2025-01-08T11:56:13.000Z","dependencies_parsed_at":"2024-11-19T20:39:20.931Z","dependency_job_id":null,"html_url":"https://github.com/CodeBrahmin/Chrome-YouTube-HDR-Linux","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"b6a22c5aed87b96ff2f77f2e5dcd1ec2ba0a7cd3"},"previous_names":["codebrahmin/chrome-youtube-hdr-linux"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeBrahmin%2FChrome-YouTube-HDR-Linux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeBrahmin%2FChrome-YouTube-HDR-Linux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeBrahmin%2FChrome-YouTube-HDR-Linux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeBrahmin%2FChrome-YouTube-HDR-Linux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeBrahmin","download_url":"https://codeload.github.com/CodeBrahmin/Chrome-YouTube-HDR-Linux/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243896302,"owners_count":20365354,"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","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":["chrome","hdr","linux","mpv"],"created_at":"2024-09-25T05:01:41.077Z","updated_at":"2026-04-03T10:39:57.343Z","avatar_url":"https://github.com/CodeBrahmin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Play YouTube HDR with MPV\n\nSince Chrome on Linux does not yet support HDR, this extension and python server will allow you to play YouTube HDR videos with MPV instead, which does support HDR.  \nA fork of [Play with MPV](https://github.com/Thann/play-with-mpv)\n\n## Installation\n1. Install the extension. Chrome -\u003e Extensions -\u003e Load Unpacked -\u003e Select the \"chrome-extension\" folder\n2. Install MPV from your package manager\n3. Ensure MPV can play HDR by default, use [this tutorial](https://www.reddit.com/r/linux/comments/1e7vljy/intel_now_supports_laptop_hdr_on_linux/).\n   If right clicking a HDR file in the file manager and choosing \"Open with MPV\" results in your face being bathed in light, success!\n4. Install yt-dlp through your package manager or [GitHub](https://github.com/yt-dlp/yt-dlp/wiki/Installation)\n5. Install fastapi\n   ```\n   pip install \"fastapi[standard]\" --break-system-packages\n   ```\n6. Download our code and run the server:\n   `fastapi run --port=7531 /path_to_the_folder/play_with_mpv.py`\n\n   I would recommend you make the server autostart on system startup by using systemd:\n   `systemctl edit --full --force --user play-with-mpv`\n   Paste the following - computer will log you out immediately you save the file so that it reloads, since it is a user service\n\n   ```\n   [Unit]\n   Description=Play With MPV\n   PartOf=graphical-session.target\n   After=graphical-session.target\n\n   [Service]\n   Type=simple\n   User=\u003cyour username\u003e\n   ExecStart=python /home/username/.local/bin/fastapi run --port=7531 /path_to_the_folder/play_with_mpv.py\n\n   [Install]\n   WantedBy=graphical-session.target\n   ```\n\n   Enable the service\n   `systemctl --user enable --now play-with-mpv`\n\n7. Install oauth2 plugin with this\n   `python3 -m pip install -U https://github.com/coletdjnz/yt-dlp-youtube-oauth2/archive/refs/heads/master.zip --break-system-packages`\n   This plugin will supposedly reduce the error frequency when trying to fetch video metadata. Probably placebo.\n   #place the following in ~/yt-dlp.conf\n   `--username oauth2 --password ''`\n8. Test some random youtube URL so as to get auth credentials. The link will show up as YouTube TV, that's intentional\n   `yt-dlp \"some_random_youtube_video_link_here\" --verbose`\n9. ...profit 🤷🏼\n\n## Usage\n\nA nice video to test out with is [this](https://www.youtube.com/watch?v=WBJzp-y4BHA). Go ahead, open the video in Chrome.\n\nWhen a video has HDR available, a big ass button will appear below the title, takes some seconds.\nClicking this button will pause the video if playing, and open in MPV, takes another several seconds.\nThat's it, your retina gets burned and you wince in pain... eer I mean joy 🫠\nAlso, you can always Right-click anywhere on the page and select \"Play with MPV\", same result\n(Ctrl+Space also works) and so does clicking on the add on icon from the extension toolbar\n\nVideo is streamed in memory, so that's a good thing.\n\nENJOY!!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodebrahmin%2Fchrome-youtube-hdr-linux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodebrahmin%2Fchrome-youtube-hdr-linux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodebrahmin%2Fchrome-youtube-hdr-linux/lists"}