{"id":48452079,"url":"https://github.com/freemkv/bdemu","last_synced_at":"2026-06-06T05:03:20.215Z","repository":{"id":349472666,"uuid":"1202460301","full_name":"freemkv/bdemu","owner":"freemkv","description":"4K UHD / Blu-ray / DVD drive emulator with hardware profiles","archived":false,"fork":false,"pushed_at":"2026-06-02T22:23:31.000Z","size":305,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-02T22:25:32.076Z","etag":null,"topics":["4k","blu-ray","disc-ripping","dvd","linux","open-source","optical-drive","rust","uhd"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/freemkv.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-06T03:39:11.000Z","updated_at":"2026-06-02T22:23:35.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/freemkv/bdemu","commit_stats":null,"previous_names":["freemkv/bdemu"],"tags_count":126,"template":false,"template_full_name":null,"purl":"pkg:github/freemkv/bdemu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freemkv%2Fbdemu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freemkv%2Fbdemu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freemkv%2Fbdemu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freemkv%2Fbdemu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/freemkv","download_url":"https://codeload.github.com/freemkv/bdemu/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freemkv%2Fbdemu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33969883,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-06T02:00:07.033Z","response_time":107,"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":["4k","blu-ray","disc-ripping","dvd","linux","open-source","optical-drive","rust","uhd"],"created_at":"2026-04-06T21:02:57.696Z","updated_at":"2026-06-06T05:03:20.206Z","avatar_url":"https://github.com/freemkv.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![License: AGPL-3.0](https://img.shields.io/badge/license-AGPL--3.0-blue)](LICENSE)\n[![Latest Release](https://img.shields.io/github/v/release/freemkv/bdemu?label=latest\u0026color=brightgreen)](https://github.com/freemkv/bdemu/releases/latest)\n\n# bdemu\n\nBlu-ray drive emulator for development and testing. Intercepts Linux SG_IO ioctls via `LD_PRELOAD` to emulate a complete optical drive from captured SCSI response data. No real drive needed.\n\nPart of the [freemkv](https://github.com/freemkv) project. **Linux only.**\n\n## Download\n\n**[Download latest release](https://github.com/freemkv/bdemu/releases/latest)**\n\nOr build from source: `cargo build --release`\n\n## Quick Start\n\n```bash\n# Capture a disc (auto-names, auto-ejects)\nbdemu capture-disc /dev/sr0 ./testbed/disc\n\n# Emulate a drive and scan the captured disc\nbdemu run --profile profiles/bu40n --disc my_movie -- freemkv info disc://\n```\n\n## Commands\n\n```\nbdemu 0.29.0\n\nCommands:\n  run --profile \u003cdir\u003e [--disc \u003cname\u003e] -- \u003ccmd\u003e   Emulate drive, run command\n  capture-disc \u003cdevice\u003e \u003coutput_dir\u003e             Smart capture from hardware\n  validate \u003cprofile_dir\u003e                         Check profile completeness\n\nControl (while emulator is running):\n  status                                         Show emulator state\n  eject                                          Eject the disc\n  load \u003cdisc_name\u003e                               Load a disc\n  list-discs                                     List available discs\n\nExamples:\n  bdemu capture-disc /dev/sr0 ./testbed/disc     Capture, auto-names, ejects\n  bdemu run -p profiles/bu40n -d sample -- freemkv info disc://\n  bdemu validate profiles/bu40n/\n```\n\n## Smart Capture\n\n`capture-disc` uses libfreemkv to parse the disc's UDF filesystem and capture only the sectors needed for emulation. A typical capture is 15-80 MB instead of 25-90 GB.\n\nAfter capture, the output directory is automatically renamed to the disc's volume ID (e.g. `disc` becomes `sample_film`). If the name already exists, a number is appended (`sample_film_2`).\n\nThe disc tray ejects automatically when capture completes.\n\n## Creating Profiles\n\n### From real hardware\n\n```bash\n# Capture drive identity (one-time per drive)\nfreemkv info disc:// --share\n\n# Capture discs (repeat for each disc)\nbdemu capture-disc /dev/sr0 profiles/my-drive/discs/disc\n```\n\n## Profile Structure\n\n```\nprofiles/my-drive/\n+-- drive.toml           # Drive metadata\n+-- inquiry.bin          # INQUIRY response (96 bytes)\n+-- gc_*.bin             # GET_CONFIG features\n+-- rpc_state.bin        # REPORT KEY RPC state\n+-- mode_2a.bin          # MODE SENSE page 2A\n+-- discs/\n    +-- my-disc/\n        +-- toc.bin      # READ TOC response\n        +-- capacity.bin # READ CAPACITY response\n        +-- disc_info.bin\n        +-- ds_00.bin    # READ DISC STRUCTURE\n        +-- sectors.bin  # BDSM sparse sector map\n```\n\n## Environment Variables\n\n| Variable | Description |\n|----------|-------------|\n| `BDEMU_PROFILE` | Path to drive profile directory |\n| `BDEMU_DISC` | Disc subdirectory name |\n| `BDEMU_QUIET` | Suppress SCSI command logging |\n\n## License\n\nAGPL-3.0-only\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreemkv%2Fbdemu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreemkv%2Fbdemu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreemkv%2Fbdemu/lists"}