{"id":13835144,"url":"https://github.com/CogentRedTester/mpv-dvd-browser","last_synced_at":"2025-07-10T07:31:20.592Z","repository":{"id":54731622,"uuid":"300903652","full_name":"CogentRedTester/mpv-dvd-browser","owner":"CogentRedTester","description":"A script to browse and load DVD titles from within mpv player","archived":false,"fork":false,"pushed_at":"2025-01-15T07:29:51.000Z","size":871,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-08T23:12:30.580Z","etag":null,"topics":["browser","dvd","lsdvd","mpv-player","mpv-script"],"latest_commit_sha":null,"homepage":"","language":"Lua","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/CogentRedTester.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-10-03T14:48:05.000Z","updated_at":"2025-03-10T22:37:33.000Z","dependencies_parsed_at":"2025-02-13T18:45:10.945Z","dependency_job_id":null,"html_url":"https://github.com/CogentRedTester/mpv-dvd-browser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CogentRedTester/mpv-dvd-browser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CogentRedTester%2Fmpv-dvd-browser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CogentRedTester%2Fmpv-dvd-browser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CogentRedTester%2Fmpv-dvd-browser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CogentRedTester%2Fmpv-dvd-browser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CogentRedTester","download_url":"https://codeload.github.com/CogentRedTester/mpv-dvd-browser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CogentRedTester%2Fmpv-dvd-browser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264545167,"owners_count":23625404,"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":["browser","dvd","lsdvd","mpv-player","mpv-script"],"created_at":"2024-08-04T14:00:57.230Z","updated_at":"2025-07-10T07:31:15.581Z","avatar_url":"https://github.com/CogentRedTester.png","language":"Lua","funding_links":[],"categories":["Playback"],"sub_categories":[],"readme":"# mpv-dvd-browser\n\n![browser image](screenshots/browser.png)\n\nThis script uses the `lsdvd` commandline utility to allow users to view and select titles for DVDs from directly within mpv.\nThe browser is interractive and allows for both playing the selected title, or appending it to the playlist.\n\nThis script requires [mpv-scroll-list](https://github.com/CogentRedTester/mpv-scroll-list) to work, simply place `scroll-list.lua` into the `~~/script-modules` folder.\n\n## Browser\nThe browser provides useful information to help choose which title to play.\nCurrently it just shows track length and the number of chapters, but this may be expanded in the future to show track information as well.\n\nWhile in the browser you can move the cursor to directly select which title to play or append to the playlist. Using the default settings this acts similar to an interactive playlist, see [Playlists](#playlists).\n\n## Keybinds\nThe following keybind is set by default\n\n    MENU            toggles the browser\n\nThe following keybinds are only set while the browser is open:\n\n    ESC             closes the browser\n    ENTER           plays the currently selected title\n    Shift+ENTER     appends the current title to the playlist\n    DOWN            move cursor down the list\n    UP              move cursor up the list\n    Ctrl+r          rescan dvd and refresh the browser\n\n## File Browser\nWhile this script works perfectly well on its own, I have also designed it to interface with my script [mpv-file-browser](https://github.com/CogentRedTester/mpv-file-browser).\nIf you place `dvd-browser.lua` into the `~~/script-modules/file-browser-addons` directory and enable the option `addons` inside file_browser, then this script will act as an addon to file browser and send file browser the contents of the dvd.\nFile browser will automatically detect when playing a dvd, or when entering the dvd directory, and will query dvd browser for the titles.\nAll functionality from the dvd-browser page is supported in file browser, plus many more features.\nWhen loaded as an addon the inbuilt list gui is disabled, hence scroll list is no-longer required.\n\n## Infinite Loop\nNormally when mpv is playing a DVD title it enters an infinite loop after playback moves beyond the last second of the title.\nSince this is rarely desired bahaviour dvd-browser will automatically configure mpv to ignore this section of the file, which allows proper playlist support for dvd titles.\n\nThis can be disabled in the [configuration file](dvd_browser.conf).\n\n## Playlists\nBy default the script will populate the current playlist with the other titles on the DVD to make automatically moving between titles easier.\n\nPrevious titles in the disc will be prepended before the current file, and later tracks will be appended after.\nWhen the title is specified in the path, i.e. `dvd://2`, then the playlist will only be populated when it is the sole entry in the playlist.\nHowever, if `dvd://` is passed, then that entry in the playlist will always be replaced with the whole DVD, similar to when a playlist file is loaded in the playlist.\nTo make this a little smoother the script changes the default mpv behaviour and always loads the first track on the disc, as opposed to the longest.\n\nAll of these modifications can be disabled in the [configuration file](dvd_browser.conf).\n\n## Windows Support\nSince `lsdvd` is only available for Linux this script cannot support windows directly. However, since I myself am forced to use windows, I have added special compatibility for using `lsdvd` on [wsl](https://docs.microsoft.com/en-us/windows/wsl/about). This requires that the windows DVD drive be mounted inside the linux filesystem.\n\nThe following options are required to get wsl working:\n\n    wsl=yes                 enables wsl compatibility mode\n    dvd_device=/mnt/dvd     the dvd mount point on the linux filesystem\n\nAdditionally if you set the option `wsl_password` to your user password then the script will automatically mount the windows DVD directory\nto the directory specified by the `dvd_device` script-opt.\n\nFor reference the exact command that will be sent to mount the DVD is:\n    \n    wsl echo \"[wsl_password]\" | sudo -S mount -t drvfs {dvd-device} [dvd_device]\n\nwhere `dvd-device` is the contents of mpv's --dvd-device option\n\n## Configuration\nThe full list of options and their default values are available in [dvd_browser.conf](dvd_browser.conf)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCogentRedTester%2Fmpv-dvd-browser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCogentRedTester%2Fmpv-dvd-browser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCogentRedTester%2Fmpv-dvd-browser/lists"}