Best way to install llibdvd-pkg

69 replies [Last post]
Magic Banana

I am a member!

I am a translator!

Offline
Joined: 07/24/2010

They are, but depend on software out of the distribution. Usually proprietary software. In the case of libdvd-pkg though, there is no freedom issue: Debian does not distribute the player keys by fear of suits for allegedly infringing (unjust) DMCA-style laws.

See https://www.debian.org/doc/debian-policy/ch-archive#s-contrib

GNUbahn
Offline
Joined: 02/19/2016

To understand this right: As long as I only download specific packages with no known freedom issues it should be fine. But adding the contrib repo as would be troublesome?

Magic Banana

I am a member!

I am a translator!

Offline
Joined: 07/24/2010

As I wrote and the link I provided confirms it, the packages in contrib "depend on software out of the [Debian] distribution". For instance, contrib includes packages to download and install proprietary firmware, proprietary drivers, Steam, Microsoft proprietary fonts, to launch proprietary games, etc.: proposing the installation of any such piece of proprietary software, through a free software package in contrib or directly, goes against the GNU Free Software Distribution Guidelines (GNU FSDG). Trisquel follows them.

That said, some packages in Debian contrib may comply with the GNU FSDG. libdvd-pkg is an example (the problem is here the compliance with unjust laws). The GNU documentation is another one. Indeed, contrary to the GNU FSDG, the Debian Free Software Guidelines (DFSG) weirdly deem problematic documentation distributed under the GNU Free Document License with a non-technical invariant section such as the GNU manifesto.

GNUbahn
Offline
Joined: 02/19/2016

Yes, it works.

Nice trick, icarolongo.

prospero
Offline
Joined: 05/20/2022

@icarolongo: Thanks for updating the documentation!

GNUbahn
Offline
Joined: 02/19/2016

@icarolongo: I agree with prospero

GNUbahn
Offline
Joined: 02/19/2016

A temporary comment:

I still have not fulfilled the goal of installing the latest version fo libdvdcss, but with the help of several people I seem to be getting nearer that goal.

When I started out on this a had a not-the-latest version of handbrake running not-the-latest version of libdvdcss. The problem was, that subtitles where generally not in sync with speech and often-times they would overlay each other.

Now I have the latest version of handbrake running the second-latest version of libdvdcss. I still have not advanced a bit on the problem with the subtitles.

BUT, on the image side things seem to have gotten worse. From the beginning, the pictures were perfect, but now they are awful - see the attached file.

How did that happen? Running from perfect images to this.

handbrake.png
Magic Banana

I am a member!

I am a translator!

Offline
Joined: 07/24/2010

I recently ripped a DVD with HandBrake on an older laptop. I faced no such issue. I chose the preset "Official > General > Super HQ 576p25 Surround" (576p is the resolution of PAL DVDs) and only modified the "Video Encoder", in the "Video" tab, to "H.265 (x265)". It took hours to complete. The resulting m4v file looks perfect to me: no artifact whatsoever. The hour and 26 minutes of movie takes less than 1.6 GB.

GNUbahn
Offline
Joined: 02/19/2016

Can you inform me about the versions of handbrake and libdvdcss?

Which OS was the laptop running?

Also, did you add subtitles? And if so, are they in sync?

Magic Banana

I am a member!

I am a translator!

Offline
Joined: 07/24/2010

That was with Trisquel 11, using the version 1.5.1+ds1-1build1 of HandBrake, the one in Trisquel 11's repository. I think the DVD includes no subtitle. VLC playing the the m4v file actually proposes English subtitles, but asking for them gives nothing.

GNUbahn
Offline
Joined: 02/19/2016

Hmmm !?

Magic Banana

I am a member!

I am a translator!

Offline
Joined: 07/24/2010

The package named "handbrake":
$ LC_ALL=C apt search handbrake
Sorting... Done
Full Text Search... Done
handbrake/aramo,now 1.5.1+ds1-1build1 amd64 [installed]
versatile DVD ripper and video transcoder (GTK+ GUI)
handbrake-cli/aramo 1.5.1+ds1-1build1 amd64
versatile DVD ripper and video transcoder (command line)

GNUbahn
Offline
Joined: 02/19/2016

So, now I used icarolongo's method and finally I get the desired output of dpkg -l | grep libdvdcss:

ii libdvdcss-dev:amd64 1.5.0-1~local amd64 library for accessing encrypted DVDs - development files
ii libdvdcss2:amd64 1.5.0-1~local amd64 library for accessing encrypted DVDs

GNUbahn
Offline
Joined: 02/19/2016

After successfully installing the latest version of libdvdcss, handbrake still couldn't render the images right (see he attachment of post #54).

I was using the latest version of handbrake (1.10.x), which I had installed via flatpak. After uninstalling and installing handbrake (1.7.2) from the ecne repo, that part works.

Now the final test: Will it rip my dvd with subtitles synced correctly?

GNUbahn
Offline
Joined: 02/19/2016

> Now the final test: Will it rip my dvd with subtitles synced correctly?

No :-(

prospero
Offline
Joined: 05/20/2022

This looks like a Handbrake issue.

I think it would be wiser to open a new thread about that topic, otherwise the current thread will soon become unreadable.

For now we could conclude that the recommended method to install libdvdcss2 on either Trisquel 11 or Trisquel 12 is to use the commands suggested by icarolongo in his decisive post. The documentation could be updated to reflect this, ideally with a word of explanation about those commands.

GNUbahn
Offline
Joined: 02/19/2016

Agreed.

Except: If I understand correctly, you successfully managed to rip a dvd with handbrake but without subtitles.

Can I ask you to try again, this time adding subtitles, and check if they are in sync and whether they do or do not overlay?

prospero
Offline
Joined: 05/20/2022

There was no subtitle track on that DVD, but the issue seems to have been known for years:

https://trisquel.info/en/forum/handbrake-subtitles-not-sync#comment-182479

GNUbahn
Offline
Joined: 02/19/2016

I have finally reach my goal with installing libdvdcss: To be able to rip dvds with subtitles which are actually in sync.

Please read more in this post from another thread.