Installing libdvdcss 1.3.99

Discussion in 'Mac Apps and Mac App Store' started by jblagden, Apr 1, 2015.

  1. jblagden macrumors 65816

    jblagden

    Joined:
    Aug 16, 2013
    #1
    I would like to install the most recent version of libdvdcss, in hopes that it might be able to decode one of my newer DVDs. However, it does not have an installer. How do I install the most recent version of libdvdcss?
     
  2. jdogg836 macrumors regular

    jdogg836

    Joined:
    Jul 28, 2010
    Location:
    Oklahoma
    #2

    From the text file included:

    In order to install libdvdcss.2.dylib in OS X, you must copy it to

    /usr/lib/

    ex: put libdvdcss.2.dylib in ~/Downloads

    From terminal:

    sudo cp ~/Downloads/libdvdcss.2.dylib /usr/lib/
     
  3. jblagden thread starter macrumors 65816

    jblagden

    Joined:
    Aug 16, 2013
    #3
    Dylib Missing

    There's no dylib file in the livdvdcss folder. It's just executables and source code. I wish it was that easy, but it's not.
     
  4. Naio macrumors member

    Naio

    Joined:
    Apr 2, 2015
    #4
    Have you considered doing it with Homebrew?

    If you want to install it with Homebrew, follow the instructions on: http://brew.sh

    When Homebrew is installed, you can type the following in the Terminal to install libdvdcss:
    Code:
    brew install libdvdcss
     
  5. jblagden thread starter macrumors 65816

    jblagden

    Joined:
    Aug 16, 2013
    #5
    I Might Try It

    Okay. I think I might try that. It would be nice to see if the most recent version of libdvdcss can copy my DVD of Paul Blart.
     
  6. jblagden thread starter macrumors 65816

    jblagden

    Joined:
    Aug 16, 2013
    #6
    I tried that, but it gave me the response:
    cp: directory /user/lib does not exist
     
  7. chrfr macrumors 603

    Joined:
    Jul 11, 2009
    #7
    There's no e in "usr".
     
  8. jblagden thread starter macrumors 65816

    jblagden

    Joined:
    Aug 16, 2013
    #8
    Joshs-MacBook-Pro:Run jfblagden$ sudo cp ~/Downloads/libdvdcss.2.dylib /usr/lib/

    Password:

    cp: /Users/jfblagden/Downloads/libdvdcss.2.dylib: No such file or directory
     
  9. chrfr macrumors 603

    Joined:
    Jul 11, 2009
    #9
    If you're downloading 1.3.99, it's just source code and must be compiled. In the directory where you downloaded the libdvdcss files, in Terminal, type:
    Code:
    ./configure
    If you don't have Xcode installed, you'll be prompted to download and install the Xcode Command Line Tools, which are required to compile this. Download and install those, then enter
    Code:
    ./configure
    again (press return after each of these)
    and then type or paste
    Code:
    sudo make install
    and enter your password when prompted. libdvdcss is then compiled and installed to /usr/local/lib rather than /usr/lib, but that's fine.
     
  10. jblagden thread starter macrumors 65816

    jblagden

    Joined:
    Aug 16, 2013
    #10
    I tried that. It worked fine during the configure stage. But when I ran the "sudo make install" command, I got these error messages:
    Code:
    Joshs-MacBook-Pro:libdvdcss-1.3.99 jfblagden$ sudo make install
    Password:
      CC       src/libdvdcss.lo
      CC       src/device.lo
      CC       src/css.lo
      CC       src/ioctl.lo
    src/ioctl.c:162:5: warning: missing field 'reserved0008' initializer
          [-Wmissing-field-initializers]
        INIT_DVDIOCTL( dk_dvd_read_structure_t, DVDCopyrightInfo,
        ^
    src/ioctl.h:63:26: note: expanded from macro 'INIT_DVDIOCTL'
        DKDVD_TYPE dvd = { 0 }; \
                             ^
    src/ioctl.c:162:5: warning: suggest braces around initialization of subobject
          [-Wmissing-braces]
        INIT_DVDIOCTL( dk_dvd_read_structure_t, DVDCopyrightInfo,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    src/ioctl.h:64:27: note: expanded from macro 'INIT_DVDIOCTL'
        BUFFER_TYPE dvdbs = { 0 }; \
                              ^
    src/ioctl.c:162:5: warning: missing field 'reserved' initializer
          [-Wmissing-field-initializers]
    src/ioctl.h:64:29: note: expanded from macro 'INIT_DVDIOCTL'
        BUFFER_TYPE dvdbs = { 0 }; \
                                ^
    src/ioctl.c:298:5: warning: missing field 'reserved0008' initializer
          [-Wmissing-field-initializers]
        INIT_DVDIOCTL( dk_dvd_read_structure_t, DVDDiscKeyInfo,
        ^
    src/ioctl.h:63:26: note: expanded from macro 'INIT_DVDIOCTL'
        DKDVD_TYPE dvd = { 0 }; \
                             ^
    src/ioctl.c:298:5: warning: suggest braces around initialization of subobject
          [-Wmissing-braces]
        INIT_DVDIOCTL( dk_dvd_read_structure_t, DVDDiscKeyInfo,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    src/ioctl.h:64:27: note: expanded from macro 'INIT_DVDIOCTL'
        BUFFER_TYPE dvdbs = { 0 }; \
                              ^
    src/ioctl.c:298:5: warning: missing field 'reserved' initializer
          [-Wmissing-field-initializers]
    src/ioctl.h:64:29: note: expanded from macro 'INIT_DVDIOCTL'
        BUFFER_TYPE dvdbs = { 0 }; \
                                ^
    src/ioctl.c:428:5: warning: missing field 'keyClass' initializer
          [-Wmissing-field-initializers]
        INIT_DVDIOCTL( dk_dvd_report_key_t, DVDTitleKeyInfo,
        ^
    src/ioctl.h:63:26: note: expanded from macro 'INIT_DVDIOCTL'
        DKDVD_TYPE dvd = { 0 }; \
                             ^
    src/ioctl.c:428:5: warning: suggest braces around initialization of subobject
          [-Wmissing-braces]
        INIT_DVDIOCTL( dk_dvd_report_key_t, DVDTitleKeyInfo,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    src/ioctl.h:64:27: note: expanded from macro 'INIT_DVDIOCTL'
        BUFFER_TYPE dvdbs = { 0 }; \
                              ^
    src/ioctl.c:428:5: warning: missing field 'reserved' initializer
          [-Wmissing-field-initializers]
    src/ioctl.h:64:29: note: expanded from macro 'INIT_DVDIOCTL'
        BUFFER_TYPE dvdbs = { 0 }; \
                                ^
    src/ioctl.c:545:5: warning: missing field 'keyClass' initializer
          [-Wmissing-field-initializers]
        INIT_DVDIOCTL( dk_dvd_report_key_t, DVDAuthenticationGrantIDInfo,
        ^
    src/ioctl.h:63:26: note: expanded from macro 'INIT_DVDIOCTL'
        DKDVD_TYPE dvd = { 0 }; \
                             ^
    src/ioctl.c:545:5: warning: suggest braces around initialization of subobject
          [-Wmissing-braces]
        INIT_DVDIOCTL( dk_dvd_report_key_t, DVDAuthenticationGrantIDInfo,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    src/ioctl.h:64:27: note: expanded from macro 'INIT_DVDIOCTL'
        BUFFER_TYPE dvdbs = { 0 }; \
                              ^
    src/ioctl.c:545:5: warning: missing field 'reserved' initializer
          [-Wmissing-field-initializers]
    src/ioctl.h:64:29: note: expanded from macro 'INIT_DVDIOCTL'
        BUFFER_TYPE dvdbs = { 0 }; \
                                ^
    src/ioctl.c:640:5: warning: missing field 'keyClass' initializer
          [-Wmissing-field-initializers]
        INIT_DVDIOCTL( dk_dvd_report_key_t, DVDChallengeKeyInfo,
        ^
    src/ioctl.h:63:26: note: expanded from macro 'INIT_DVDIOCTL'
        DKDVD_TYPE dvd = { 0 }; \
                             ^
    src/ioctl.c:640:5: warning: suggest braces around initialization of subobject
          [-Wmissing-braces]
        INIT_DVDIOCTL( dk_dvd_report_key_t, DVDChallengeKeyInfo,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    src/ioctl.h:64:27: note: expanded from macro 'INIT_DVDIOCTL'
        BUFFER_TYPE dvdbs = { 0 }; \
                              ^
    src/ioctl.c:640:5: warning: missing field 'reserved' initializer
          [-Wmissing-field-initializers]
    src/ioctl.h:64:29: note: expanded from macro 'INIT_DVDIOCTL'
        BUFFER_TYPE dvdbs = { 0 }; \
                                ^
    src/ioctl.c:748:5: warning: missing field 'keyClass' initializer
          [-Wmissing-field-initializers]
        INIT_DVDIOCTL( dk_dvd_report_key_t, DVDAuthenticationSuccessFlagInfo,
        ^
    src/ioctl.h:63:26: note: expanded from macro 'INIT_DVDIOCTL'
        DKDVD_TYPE dvd = { 0 }; \
                             ^
    src/ioctl.c:748:5: warning: suggest braces around initialization of subobject
          [-Wmissing-braces]
        INIT_DVDIOCTL( dk_dvd_report_key_t, DVDAuthenticationSuccessFlagInfo,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    src/ioctl.h:64:27: note: expanded from macro 'INIT_DVDIOCTL'
        BUFFER_TYPE dvdbs = { 0 }; \
                              ^
    src/ioctl.c:748:5: warning: missing field 'reserved' initializer
          [-Wmissing-field-initializers]
    src/ioctl.h:64:29: note: expanded from macro 'INIT_DVDIOCTL'
        BUFFER_TYPE dvdbs = { 0 }; \
                                ^
    src/ioctl.c:858:5: warning: missing field 'keyClass' initializer
          [-Wmissing-field-initializers]
        INIT_DVDIOCTL( dk_dvd_report_key_t, DVDKey1Info,
        ^
    src/ioctl.h:63:26: note: expanded from macro 'INIT_DVDIOCTL'
        DKDVD_TYPE dvd = { 0 }; \
                             ^
    src/ioctl.c:858:5: warning: suggest braces around initialization of subobject
          [-Wmissing-braces]
        INIT_DVDIOCTL( dk_dvd_report_key_t, DVDKey1Info,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    src/ioctl.h:64:27: note: expanded from macro 'INIT_DVDIOCTL'
        BUFFER_TYPE dvdbs = { 0 }; \
                              ^
    src/ioctl.c:858:5: warning: missing field 'reserved' initializer
          [-Wmissing-field-initializers]
    src/ioctl.h:64:29: note: expanded from macro 'INIT_DVDIOCTL'
        BUFFER_TYPE dvdbs = { 0 }; \
                                ^
    src/ioctl.c:953:5: warning: missing field 'keyClass' initializer
          [-Wmissing-field-initializers]
        INIT_DVDIOCTL( dk_dvd_send_key_t, DVDAuthenticationGrantIDInfo,
        ^
    src/ioctl.h:63:26: note: expanded from macro 'INIT_DVDIOCTL'
        DKDVD_TYPE dvd = { 0 }; \
                             ^
    src/ioctl.c:953:5: warning: suggest braces around initialization of subobject
          [-Wmissing-braces]
        INIT_DVDIOCTL( dk_dvd_send_key_t, DVDAuthenticationGrantIDInfo,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    src/ioctl.h:64:27: note: expanded from macro 'INIT_DVDIOCTL'
        BUFFER_TYPE dvdbs = { 0 }; \
                              ^
    src/ioctl.c:953:5: warning: missing field 'reserved' initializer
          [-Wmissing-field-initializers]
    src/ioctl.h:64:29: note: expanded from macro 'INIT_DVDIOCTL'
        BUFFER_TYPE dvdbs = { 0 }; \
                                ^
    src/ioctl.c:1046:5: warning: missing field 'keyClass' initializer
          [-Wmissing-field-initializers]
        INIT_DVDIOCTL( dk_dvd_send_key_t, DVDChallengeKeyInfo,
        ^
    src/ioctl.h:63:26: note: expanded from macro 'INIT_DVDIOCTL'
        DKDVD_TYPE dvd = { 0 }; \
                             ^
    src/ioctl.c:1046:5: warning: suggest braces around initialization of subobject
          [-Wmissing-braces]
        INIT_DVDIOCTL( dk_dvd_send_key_t, DVDChallengeKeyInfo,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    src/ioctl.h:64:27: note: expanded from macro 'INIT_DVDIOCTL'
        BUFFER_TYPE dvdbs = { 0 }; \
                              ^
    src/ioctl.c:1046:5: warning: missing field 'reserved' initializer
          [-Wmissing-field-initializers]
    src/ioctl.h:64:29: note: expanded from macro 'INIT_DVDIOCTL'
        BUFFER_TYPE dvdbs = { 0 }; \
                                ^
    src/ioctl.c:1155:5: warning: missing field 'keyClass' initializer
          [-Wmissing-field-initializers]
        INIT_DVDIOCTL( dk_dvd_send_key_t, DVDKey2Info,
        ^
    src/ioctl.h:63:26: note: expanded from macro 'INIT_DVDIOCTL'
        DKDVD_TYPE dvd = { 0 }; \
                             ^
    src/ioctl.c:1155:5: warning: suggest braces around initialization of subobject
          [-Wmissing-braces]
        INIT_DVDIOCTL( dk_dvd_send_key_t, DVDKey2Info,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    src/ioctl.h:64:27: note: expanded from macro 'INIT_DVDIOCTL'
        BUFFER_TYPE dvdbs = { 0 }; \
                              ^
    src/ioctl.c:1155:5: warning: missing field 'reserved' initializer
          [-Wmissing-field-initializers]
    src/ioctl.h:64:29: note: expanded from macro 'INIT_DVDIOCTL'
        BUFFER_TYPE dvdbs = { 0 }; \
                                ^
    src/ioctl.c:1272:5: warning: missing field 'keyClass' initializer
          [-Wmissing-field-initializers]
        INIT_DVDIOCTL( dk_dvd_report_key_t, DVDRegionPlaybackControlInfo,
        ^
    src/ioctl.h:63:26: note: expanded from macro 'INIT_DVDIOCTL'
        DKDVD_TYPE dvd = { 0 }; \
                             ^
    src/ioctl.c:1272:5: warning: suggest braces around initialization of subobject
          [-Wmissing-braces]
        INIT_DVDIOCTL( dk_dvd_report_key_t, DVDRegionPlaybackControlInfo,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    src/ioctl.h:64:27: note: expanded from macro 'INIT_DVDIOCTL'
        BUFFER_TYPE dvdbs = { 0 }; \
                              ^
    src/ioctl.c:1272:5: warning: missing field 'reserved' initializer
          [-Wmissing-field-initializers]
    src/ioctl.h:64:29: note: expanded from macro 'INIT_DVDIOCTL'
        BUFFER_TYPE dvdbs = { 0 }; \
                                ^
    33 warnings generated.
      CC       src/error.lo
      CCLD     libdvdcss.la
    ./install-sh -c -d '/usr/local/lib'
    /bin/sh ./libtool   --mode=install /usr/bin/install -c   libdvdcss.la '/usr/local/lib'
    libtool: install: /usr/bin/install -c .libs/libdvdcss.2.dylib /usr/local/lib/libdvdcss.2.dylib
    libtool: install: (cd /usr/local/lib && { ln -s -f libdvdcss.2.dylib libdvdcss.dylib || { rm -f libdvdcss.dylib && ln -s libdvdcss.2.dylib libdvdcss.dylib; }; })
    libtool: install: /usr/bin/install -c .libs/libdvdcss.lai /usr/local/lib/libdvdcss.la
    libtool: install: /usr/bin/install -c .libs/libdvdcss.a /usr/local/lib/libdvdcss.a
    libtool: install: chmod 644 /usr/local/lib/libdvdcss.a
    libtool: install: ranlib /usr/local/lib/libdvdcss.a
    ./install-sh -c -d '/usr/local/share/doc/libdvdcss'
    /usr/bin/install -c -m 644 AUTHORS COPYING NEWS README ChangeLog '/usr/local/share/doc/libdvdcss'
    ./install-sh -c -d '/usr/local/lib/pkgconfig'
    /usr/bin/install -c -m 644 src/libdvdcss.pc '/usr/local/lib/pkgconfig'
    ./install-sh -c -d '/usr/local/include/dvdcss'
    /usr/bin/install -c -m 644 src/dvdcss/dvdcss.h '/usr/local/include/dvdcss'
     
  11. bradl macrumors 68040

    bradl

    Joined:
    Jun 16, 2008
    #11

    These are warnings, not errors from the compile, let alone the install. If it were an actual error, make would have bailed out with a specific error code, and indicated where the problem may be.

    In this case, warnings are okay, as it did compile cleanly, and did the install. So you are good to go here.

    BL.
     
  12. PinkyMacGodess macrumors 68040

    PinkyMacGodess

    Joined:
    Mar 7, 2007
    Location:
    Midwest America.
    #12
    Currently they show 1.3.0 as their 'current' release. I got the impression that 1.3.99 is beta code.

    Did it work with handbrake? That's the important question...
     
  13. jblagden thread starter macrumors 65816

    jblagden

    Joined:
    Aug 16, 2013
    #13
    Yeah, libdvdcss 1.3.99 works with Handbrake. The only problem is that it doesn’t come with an installer. Version 1.3.0 has an installer, but version 1.3.99 doesn’t. You have to compile and install it yourself in Terminal, which is a bit of a pain, but at least you can install the latest version of libdvdcss somehow. You might be able to install it via brew.sh, but you’ll have to disable SIP to be able to use that. I don’t want to disable SIP just to be able to use brew.sh again. It was nice, but I’m not sure I want to go through all of the work of disabling SIP just for a program. I’ll disable it for TRIM Enabler and automate-eGPU.sh, but not brew.sh. I know some people are either afraid of using Terminal or are uncomfortable with it, but you’ll become more comfortable with it the more you use it. Besides, if you get a command wrong, you’ll just get a response which is like “what? I didn’t get that. Try again”.

    However, I haven’t seen any improvements in libdvdcss. I was hoping it would enable me to copy my Paul Blart DVD, but it didn’t. Maybe it is a beta. I suppose that might be why it doesn’t have an installer. That might also be why only version 1.3.99 can be installed with MacPorts.
     
  14. Tiemmothi macrumors newbie

    Tiemmothi

    Joined:
    Nov 17, 2015
    #14
    Is there a way to verify what version of libdvdcss is currently installed? I did the above compile and make and aside from seeing the file is in the proper location is there a way to get any kind of feed back from terminal to check?
     
  15. eizen macrumors newbie

    Joined:
    Nov 18, 2012
    #15
    Thanks! This worked for me.
     
  16. Belg macrumors newbie

    Belg

    Joined:
    Feb 13, 2016
    Location:
    Belgium
    #16
    Great solution really works. Before handbrake crashed after 5% completion. Now it runs without any trouble.
     
  17. co.ag.2005 macrumors 65816

    co.ag.2005

    Joined:
    Jun 17, 2009
    Location:
    Fort Worth, TX
    #17
    how did you get handbrake to work after installing libdvdcss? I installed 1.4.0 according to post #9 above, but handbrake keep telling me there's no valid source after scanning my dvd for a while. sorry to bring up an old thread!
     
  18. mbarros92694 macrumors newbie

    Joined:
    Jun 9, 2016
    #18
    Easiest solution possible. Just follow the instructions on http://mac.softpedia.com/get/Development/Libraries/libdvdcss.shtml
     
  19. MikB macrumors newbie

    Joined:
    Jan 18, 2013
    #19
  20. jblagden, Sep 20, 2016
    Last edited: Sep 20, 2016

    jblagden thread starter macrumors 65816

    jblagden

    Joined:
    Aug 16, 2013
    #20
    The best way is Homebrew: http://brew.sh
     
  21. MikB macrumors newbie

    Joined:
    Jan 18, 2013
    #21
    No, that's too many complications, adding a system I don't need. I just compiled it myself. Once you embrace the concept of compiling open source that's always the best option in my opinion.
     
  22. bananananana macrumors newbie

    Joined:
    Feb 6, 2017
    #22
    I was able to download and compile it using the instructions at: https://stackengineer.com/multimedia/build-libdvdcss.html

    Granted-- I had to modify them a bit as was for compiling a Windows DLL File. Just leave out the configure tag: --host=x86_64-w64-mingw32 and run make install at the end.
     

Share This Page