这不是重复为什么安装 libdvdcss2 后 DVD 播放仍然无法正常工作?因为那里的答案对 16.04 无效
我已经审查了https://help.ubuntu.com/community/RestrictedFormats/PlayingDVDs
并安装了 libdvd-pkgsudo apt-get install libdvd-pkg
我检查了该区域是否已设置:
sudo regionset /dev/sr0
regionset version 0.1 -- reads/sets region code on DVD drives
Current Region Code settings:
RPC Phase: II
type: SET
vendor resets available: 4
user controlled changes resets available: 4
drive plays discs from region(s): 1, mask=0xFE
Would you like to change the region setting of your drive? [y/n]:n
我没有改变它的设置:
区域 1:美国、美国领土、加拿大和百慕大。这应该是正确的。
我仔细检查了该软件包是否已安装
$ dpkg -l |grep dvd
ii dvd+rw-tools 7.1-11 amd64 DVD+-RW/R tools
ii dvdauthor 0.7.0-1.4 amd64 create DVD-Video file system
ii libdvd-pkg 1.4.0-1-1 all DVD-Video playing library - installer
ii libdvdnav4:amd64 5.0.3-1 amd64 DVD navigation library
ii libdvdread4:amd64 5.0.3-1 amd64 library for reading DVDs
我什至下达了命令。
sudo dpkg-reconfigure libdvd-pkg
This package automates the process of launching downloads of the source files for libdvdcss2 from videolan.org, compiling │
│ them, and installing the binary packages (libdvdcss2 libdvdcss-dev). │
│ │
│ Please confirm whether you wish this to happen. │
│ │
│ Download, build, and install libdvdcss2/1.4.0-1? │
│ │
│ <Yes>
上面的图片会更好,但你明白了。输出是:
libdvd-pkg: Downloading orig source...
I: libdvdcss_1.4.0
/usr/bin/wget --tries=3 --timeout=40 --read-timeout=40 --continue -O libdvdcss_1.4.0.orig.tar.bz2 \
http://download.videolan.org/pub/libdvdcss/1.4.0/libdvdcss-1.4.0.tar.bz2 \
|| /usr/bin/uscan --noconf --verbose --rename --destdir=/usr/src/libdvd-pkg --check-dirname-level=0 --force-download --download-current-version /usr/share/libdvd-pkg/debian
--2017-03-04 17:55:39-- http://download.videolan.org/pub/libdvdcss/1.4.0/libdvdcss-1.4.0.tar.bz2
Resolving download.videolan.org (download.videolan.org)... 88.191.250.2, 2a01:e0d:1:3:58bf:fa02:c0de:5
Connecting to download.videolan.org (download.videolan.org)|88.191.250.2|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 364373 (356K) [application/octet-stream]
Saving to: ‘libdvdcss_1.4.0.orig.tar.bz2’
libdvdcss_1.4.0.orig.tar.bz2 100%[==========================================================>] 355.83K 795KB/s in 0.4s
2017-03-04 17:55:40 (795 KB/s) - ‘libdvdcss_1.4.0.orig.tar.bz2’ saved [364373/364373]
libdvd-pkg: Checking orig.tar integrity...
/usr/src/libdvd-pkg/libdvdcss_1.4.0.orig.tar.bz2: OK
libdvd-pkg: Unpacking and configuring...
libdvd-pkg: Building the package... (it may take a while)
libdvd-pkg: Build log will be saved to /usr/src/libdvd-pkg/libdvdcss2_1.4.0-1~local_amd64.build
Current: = cap_chown,cap_dac_override,cap_dac_read_search,cap_fowner,cap_fsetid,cap_kill,cap_setgid,cap_setuid,cap_setpcap,cap_linux_immutable,cap_net_bind_service,cap_net_broadcast,cap_net_admin,cap_net_raw,cap_ipc_lock,cap_ipc_owner,cap_sys_module,cap_sys_rawio,cap_sys_chroot,cap_sys_ptrace,cap_sys_pacct,cap_sys_admin,cap_sys_boot,cap_sys_nice,cap_sys_resource,cap_sys_time,cap_sys_tty_config,cap_mknod,cap_lease,cap_audit_write,cap_audit_control,cap_setfcap,cap_mac_override,cap_mac_admin,cap_syslog,cap_wake_alarm,cap_block_suspend,37+ep
Bounding set =cap_chown,cap_dac_override,cap_fowner,cap_wake_alarm,cap_block_suspend,37
Securebits: 024/0x14/5'b10100
secure-noroot: no (unlocked)
secure-no-suid-fixup: yes (unlocked)
secure-keep-caps: yes (unlocked)
uid=0(root)
gid=0(root)
groups=0(root)
libdvd-pkg: Installing...
Selecting previously unselected package libdvdcss-dev:amd64.
(Reading database ... 387303 files and directories currently installed.)
Preparing to unpack .../libdvdcss-dev_1.4.0-1~local_amd64.deb ...
Unpacking libdvdcss-dev:amd64 (1.4.0-1~local) ...
Selecting previously unselected package libdvdcss2:amd64.
Preparing to unpack .../libdvdcss2_1.4.0-1~local_amd64.deb ...
Unpacking libdvdcss2:amd64 (1.4.0-1~local) ...
Setting up libdvdcss2:amd64 (1.4.0-1~local) ...
Setting up libdvdcss-dev:amd64 (1.4.0-1~local) ...
Processing triggers for libc-bin (2.23-0ubuntu5) ...
me@64bitUbuntu:~$
更多详细信息: System SettingsDetailsRemoveable Media设置为询问要做什么
驱动器识别磁盘的插入并且标题显示在 Nautilus 和 totem 中,但尝试在 totem 中播放会导致“无法读取 DVD”相同的驱动器可以完美地读取 CD,并且相同的 DVD 在另一个系统中可以完美播放。这台机器是从 14.04 升级的,但在其他 2 个新安装的 16.04 系统上,我有一个出现这个问题,另一个没有。
编辑:我尝试删除 ~/.dvdcss 文件夹。尽管那里存储了一些密钥,但没有帮助。虽然这里的文档提供了丰富的信息,但没有多少使用环境变量进行解密会导致成功。
令我尴尬的是,在这种情况下,根本原因是一个临时的硬件问题,即镜头上的灰尘。用一罐压缩空气轻松解决。打开托盘并吹掉显示此问题的系统上镜头上的灰尘,效果非常好。