How to rip a dvd (probably also works with cds, blurays, etc) on gnu/linux

https://latte.isnot.coffee/post/180324

How to rip a dvd (probably also works with cds, etc) on gnu/linux (probably also works on other *nix systems such as macos and openbsd) - Coffee

1. Plug in the dvd 2. Run lsblk to see if it got detected 3. Run dd if=/dev/cdrom of=dvd.dvd status=progress 4. You can now play the ripped dvd using mpv: mpv dvd://0/dvd.dvd If you need to get rid of digital restrictions management, you can try this guide [https://latte.isnot.coffee/comment/329423]

Yeah this won’t work with 99.9 percent of DVDs or Blu-ray because of the DRM and the way the drives behave, not sure why you’d even post this.
I managed to rip one
Yeah, an already ripped DVD or a non DRM protected DVD, which is as difficult as copying files from a USB and why dd works here.
non DRM protected DVD. It's actually from Disney so I was quite surprised when there was no DRM
If it’s Disney without DRM it’s probably a bootleg DVD
@original_ish_name
if this works then every ripping guide on every tracker is about to be prettyyyyy embarrassed
Depends on if the DVD has DRM or not
@original_ish_name
this is why most of the guides are about cracking drm ❤️ glad you found an unprotected disk
  • MakeMKV (get it on flathub, easier than building from source) and the beta key from their forum.
  • Dump the entire disc into a directory.
  • Use mkisofs -udf -allow-limited-size -input-charset “utf-8” -V “your_disc_title” -o output_name.iso source_folder/

Edit: Fixed command typo and added flathub.

Is this for cracking drm? If so how do you pin a comment on lemmy?

(get it on flathub, easier than building from source)

Laughs in gentoo

Laughs in Gentoo and NixOS
@BustedPancake
@original_ish_name
see this is why it is good to be off reddit

This should work with some caceats.

  • Tbis probably won’t work on WSL (Linux needs direct access to your hardware).
  • For DVDs, you need to be sure libdvdcss is installed for this to work correctly
    • You probably already have this on your system if you have successfully watched a dvd in Linux.
  • You may need to replace /dev/cdrom with the name of the device file corresponding to your drive.
  • This creates an exact copy of the disk, including the unallocated space. You would probably want to follow the guide wiki.archlinux.org/title/Optical_disc_drive#Creat…
    • (@[email protected]’s use of mkisofs does the same thing because they copy the file rather than the whole disk. But you don’t need makemkv. You should be able to use any method of copying the files and Linux should use libdvdcss to decrypt them.).
    “deep magic”

    Linux trys to treat devices like files. If you ran xxd /dev/cdrom, you would see every bit on the disk (not just those of the files, but those in the free space as well) in order from the first to the last (converted to base-16 in what is called a hexdump). Not that you need to see this, but your video player does. The “DRM cracking” is actually a feature of libdvdcss that makes it possible for the system to treat the disk this way. dd is just a general copying command and if Stack Exchange is to be believed, it isn’t necessarily the best option (unix.stackexchange.com/…/dd-vs-cat-is-dd-still-re…). But it probably is necessary for the linked guide to work because it has dd truncate the file.

    Optical disc drive - ArchWiki

    edit: caveats is note spalled caceats

    "not" is not spelled "note" "spelled is" not spelled "spalled"

    That was the joke
    sorry
    Don’t worry. It was a bit ambiguous 👍