Playing CSS-Protected Video DVD in Totem results in error: "An Error Occurred - Could not read from resource"

Bug #219062 reported by bmdavis
212
This bug affects 35 people
Affects Status Importance Assigned to Milestone
totem (Ubuntu)
In Progress
Medium
Unassigned

Bug Description

Binary package hint: totem

Upon entering any DVD, I get the message:
"Could not read from resource".

Under playlist I always have "1" and "2", regardless of the DVD.

This happens with CSS-encrypted DVDs, others work right.

WORKAROUND:
* Until Jaunty 9.04:
- install packages libdvdread3 and libdvdnav4
- run 'sudo /usr/share/doc/libdvdread3/install-css.sh'

* Jaunty 9.04 and above:
- install packages libdvdread4, libdvdnav4 and gstreamer0.10-plugins-ugly
- run 'sudo /usr/share/doc/libdvdread4/install-css.sh'

You may want to read the help from System->Help and Support->Music, photos and videos, and from http://help.ubuntu.com/community/RestrictedFormats/PlayingDVDs.

Tags: apport-bug
Revision history for this message
bmdavis (bdafrica) wrote :
Changed in totem:
assignee: nobody → desktop-bugs
status: New → Confirmed
Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

Same here. This is very bad because in the past we used to have a nice dialog explaining why DVD support could not be installed by default and how to turn it on. Now we just have a poor error.

To fix this, just run sudo /usr/share/doc/libdvdread3/install-css.sh.

description: updated
Revision history for this message
Sebastien Bacher (seb128) wrote : Re: "Could not read from resource" error when playing encrypted DVD

don't add the ubuntu version to the title, the information will be outdated quickly and create extra work and confusion

Changed in totem:
importance: Undecided → Low
Revision history for this message
Sebastien Bacher (seb128) wrote :

Not confirming, DVD playing still works correctly on my hardy installation, the dialog which changed is a different issue, could you open a bug and attach a screenshot of the one which was used in gutsy?

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

Sebastien, I don't understand you: it is not possible you were able to read CSS-encrypted DVDs withouth aving installed libdvdcss2. And if you have done so, you cannot experience the bug.

Maybe there are two bugs here: I assumed bmdavis had problems with encrypted DVDs because unencrypted ones are rare so he ma not have been able to test one. bmdavis, could you run the script I told about in my first post? If you still have this error, then I will open another bug for the dialog issue.

For me, the issue is the error dialog, and nothing else. I do not have any screenshot of the Gutsy dialog here but I guess it was something like "For legal reasons, DVD support can not be enabled by default. Please read the instructions in the help", with a link to the help page about that.

[Sorry for the version in the title, I thought it was the recommended way.]

Revision history for this message
Sebastien Bacher (seb128) wrote :

the bug description states that dvd playing was working for him and stopped working, if it was working libdvdcss2 is likely installed, the description is not clear

Revision history for this message
bmdavis (bdafrica) wrote :

"sudo /usr/share/doc/libdvdread3/install-css.sh" worked for me - DVDs work fine now! Thanks Milan.

It was interesting that in heron the dvds were working, then after the update they stopped. The above command fixed it though....

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

OK, thanks for this precision.
Sebastien: this can now be considered as a bug occurring when libdvdcss2 is missing. The fact that it worked until an update is really strange though.

Revision history for this message
yang83 (yang83) wrote :

the above command worked for me too! Thanks guys!

Revision history for this message
SonhadorPR (sonhadorpr) wrote :

very simple to just follow the command above, it works wonders!!
Thank you!!!

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

This bug is tightly linked with bug 137527, about getting libgimme-codec proposing needed packages.

Revision history for this message
ecrivain5 (brian11smith) wrote :

Sadly the suggested command line has not worked for me. Are there any other suggestions please.
Brian

Revision history for this message
SonhadorPR (sonhadorpr) wrote : Re: [Bug 219062] Re: "Could not read from resource" error when playing encrypted DVD

I will check other forums in Spanish, see what I can find, and I'll let you
know!

--
Registered Linux User #457355
Roberto Omar Millán

On Wed, May 7, 2008 at 4:28 PM, ecrivain5 <email address hidden> wrote:

> Sadly the suggested command line has not worked for me. Are there any other
> suggestions please.
> Brian
>
> --
> "Could not read from resource" error when playing encrypted DVD
> https://bugs.launchpad.net/bugs/219062
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote : Re: "Could not read from resource" error when playing encrypted DVD

ecrivain5: check you have enabled the universe and multiverse repositories (System->Administration->Software sources). But please, this is not a support forum.

Revision history for this message
Mike (miguel-bianchi) wrote :

I entered the sudo command I've seen written. sudo /usr/share/doc/libdvdread3/install-css.sh

Now it provide me with somewhat the same error message Could not read from resource.

Does anyone know why Totem refuses to read any DVD's I place in the player.

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

Mike: Do you have libdvdcss2, libdvdread3 and libdvdnav4 installed? Did the script report that this worked ?

description: updated
Revision history for this message
wern (jbrwer001) wrote :

I am still experiencing the same problem as Mike is. I've even tried it with Mplayer and no video is displayed nor audio played.

I installed libdvdcss2, libdvdread3, libdvdnav4 and ran the /usr/share/doc/libdvdread3/install-css.sh script.

What else could be wrong?

Revision history for this message
wern (jbrwer001) wrote :

Another post I read suggested using totem-xine: http://ubuntuforums.org/showthread.php?t=672613

This worked for me. Oddly enough, after playing the dvd with totem-xine totem-gstreamer worked (almost). Totem-gstreamer plays the DVD but does not start with the dvd root menu. Under SMplayer I can now get it work, but still no root menu.

In conclusion: either
 - the install for libdvdcss2, libdvdread3, libdvdnav4 and the install script took a while to be used by the system
or
 - totem-xine scared them into submission.

Revision history for this message
Kelly (kgmccaw) wrote :

Thnx

this solved the problem

Revision history for this message
Miguelángel León (migueleonm) wrote :

The script install-css.sh intall i386 packages, if you have ubuntu hardy x86_64 you have to modify it.

sudo gedit /usr/share/doc/libdvdread3/install-css.sh

In the line available="i386" replace it with available="ia64" then re-run the script.

Revision history for this message
David Johnston (davedcj) wrote :

I have intrepid installed and I had the same problem. I filed bug report #317057 but it seems to be not quite a duplicate.

I have tried most of the above, but when I tried to find package libdvdcss2 using synaptic, it doesnt show up.
(only the packages *ubuntu-restricted-extras which I have also now installed)

Is package libdvdcss2 still available for intrepid ?
(I have the other 2 installed - libdvdread3 and libdvdnav4)

See bug report #317057 which relates to both bugs #280780 and #219062

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

Sorry, the package libdvdcss2 is installed by the script /usr/share/doc/libdvdread3/install-css.sh. It's not available from official repositories. Does this solve your problem?

description: updated
Revision history for this message
David Johnston (davedcj) wrote :

I reread some of above and realised that libdvdcss2 is not packaged as a separate package, which is implied from some of the comments and instructions.
I ran the script libdvdcss2 from package libdvdread3 and it fixed the problem.
That suggests the bug is actually a packaging problem.

Anyway, thanks for the info - it has led to the first part of my problem in bug #317057 being solved.

Revision history for this message
David Johnston (davedcj) wrote :

yep that was brilliant, Milan.
Thanks for your explanation.

I tried playing the dvd No Quarter again after running the libdvdcss2 script and it now plays OK.

since it isnt part of the official package, it would greatly help if the comments attached to the ubuntu-restricted-extras package could be updated to note that it may be necessary to run the script /usr/share/doc/libdvdread3/install-css.sh once they are installed.
I think that would save a lot of bug reports being lodged.

Anyway, thanks again, Milan. All my current dvd problems are now solved.

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

This is not actually a packaging problem. libdvdcss2 is only available from medibuntu repositories since it cannot be included due to legal issues about decrypting DVDs. What I'd like to see is a dialog allowing to run the script in one click.

Revision history for this message
alenio (maclaurg) wrote :

Ive tried everything in every forum I could find. I installed libdvdcss2 and 3; and run many other lines of code I found in forums addressing this problem. I still get the "could not read from resource" from totem movie player, please help. Im running ubunut 8.04 Hardy. Shouldn't be this hard to watch a DVD from netflix. Is there another program that is easier to run than totem? Much thanks.

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

Have you tried the workaround?
> WORKAROUND:
> - install packages libdvdread3 and libdvdnav4
> - run 'sudo /usr/share/doc/libdvdread3/install-css.sh'

Else you may use VLC, or open a new bug: this one addresses a known limitation, yours would rather be a bug in Totem (if it persists).

Revision history for this message
David Simpson (davidhoytsimpson) wrote :

I ran the workaround and I'm using Hardy Heron - I'm getting the same error as well

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

Did you get any errors messages? I suspect you may be using 64 bits version, which requires building the package from source or getting it from medibuntu repos.

description: updated
Revision history for this message
David Simpson (davidhoytsimpson) wrote : Re: [Bug 219062] Re: "Could not read from resource" error when playing encrypted DVD

I finally got it to work...I rebooted, then I uninstalled everything and
rebooted and then reinstalled and then rebooted a third time...I'm not sure
if the reboots were needed, but hey it works now :)

On Sun, Mar 8, 2009 at 5:24 PM, Milan <email address hidden> wrote:

> ** Description changed:
>
> Binary package hint: totem
>
> Upon entering any DVD, I get the message:
> "Could not read from resource".
>
> Under playlist I always have "1" and "2", regardless of the DVD.
>
> This happens with CSS-encrypted DVDs, others work right.
>
>
> WORKAROUND:
> + * Until Jaunty 9.04:
> - install packages libdvdread3 and libdvdnav4
> - run 'sudo /usr/share/doc/libdvdread3/install-css.sh'
> +
> + * Jaunty 9.04 and above:
> + - install packages libdvdread4 and libdvdnav4
> + - run 'sudo /usr/share/doc/libdvdread4/install-css.sh'
>
> --
> "Could not read from resource" error when playing encrypted DVD
> https://bugs.launchpad.net/bugs/219062
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Eric Link (link-sandlion) wrote : Re: "Could not read from resource" error when playing encrypted DVD

This is messy, but fixed it for both me and a friend in 9.04 (Jaunty, fresh installs):
sudo apt-get remove vlc
sudo apt-get install libdvdread4
sudo apt-get install libdvdnav4
sudo /usr/share/doc/libdvdread4/install-css.sh
sudo apt-get install gstreamer0.10-plugins-ugly
sudo apt-get install totem-xine
sudo apt-get autoremove
sudo apt-get update;sudo apt-get upgrade
sudo apt-get install vlc

DVDs work now in both totem and vlc, w/ proper DVD menus in vlc and in totem-xine

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

Eric: all those steps should not be needed, and installing totem-xine is not a good advice for most users as it will change the way all movie files are played by Totem. Installing vlc is an option, but reinstalling it should not be needed. Have you tried the workaround from the description before?

description: updated
description: updated
Revision history for this message
jjt (webmaster-jjtcomputing) wrote :

I've found a solution at http://blog.jjtcomputing.co.uk/2009/08/22/playing-encrypted-dvds-in-ubuntu-the-complete-guide/. It covers adding DVD and Encrypted DVD support to Ubuntu as well as the problems with Totem.

Revision history for this message
Shuryon (shuryon) wrote :

Thanks guys to solute this problem!
I happened with me right this days and then I always have to use other players.
Probably it's the same problem here. I will try to to fix as jjt said.

Revision history for this message
Kalle Tuulos (kalle-tuulos) wrote :

This error is still valid in 10.04 LTS. If there is an easy workaround, at least the error message should be a bit more descriptive and it should offer user hints to install the workaround.

Revision history for this message
Geno R. (geno-1082) wrote :

Sweet, entering sudo /usr/share/doc/libdvdread4/install-css.sh in the terminal fixed my problem. (Recently turned my entire HD into a Windows-free Linux-only system and not looking back :-)

Revision history for this message
mdmcginn (mcweb) wrote :

Yes, that worked for me too, but the documentation and error messages should be much clearer. It's counter-intuitive for sudo apt-get install not to actually install what's necessary. Is that for legal reasons, the way that Audacity doesn't export to MP3 out of the box? Then Totem should say that clearly - "The DVD you've just inserted, The Time Traveler's Wife, will not play until you run sudo /usr/share/doc/libdvdread4/install-css.sh in a terminal." As it is, the implication is, "Oh, do you actually want to play encrypted DVDs? I didn't know."

On the other hand, maybe this is a different kind of bug. This is the first commercial DVD I haven't been able to play. Has the industry come up with a new encryption variant that doesn't work out of the box the way the previous version did?

Revision history for this message
Paddy Launch (paddylaunch-deactivatedaccount) wrote :

I'm not sure why this is considered a low priority - having such an obtuse error message is irritating even for the experienced linux user, how much more off-putting for the average desktop user who just wants to play a DVD?

Revision history for this message
Alex Korobkin (korobkin) wrote :

I had the same problem, and install-css.sh didn't help until I launched regionset and set my DVD region for the first time. It wasn't obvious that DVD reading doesn't work because the region is not set.

komputes (komputes)
summary: - "Could not read from resource" error when playing encrypted DVD
+ Playing CSS-Protected Video DVD in Totem results in error: "An Error
+ Occurred - Could not read from resource"
Changed in totem (Ubuntu):
importance: Low → Medium
Revision history for this message
Omer Akram (om26er) wrote :

I believe it would be better if someone could start a thread on the ubuntu-desktop mailing list where people could have a say and maybe point out if its legally no allowed and such.

Changed in totem (Ubuntu):
assignee: Ubuntu Desktop Bugs (desktop-bugs) → nobody
Changed in totem (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

(I have marked as duplicates bug 782411, bug 854390, and bug 892731, which report the error message "Could not read DVD. This may be because the DVD is encrypted and a DVD decryption library is not installed." I assume this is the same bug, and that gstreamer slightly improved its error message some time after bug 748449 (another duplicate). If I'm wrong and these are not the same bug, please unmark those three duplicates and mark two of them as duplicates of the other.)

Revision history for this message
Matthew Paul Thomas (mpt) wrote :

Having said all that, I see no reason this shouldn't be a duplicate of bug 137527. In case I'm wrong and it needs reversing, the duplicates of this bug report were the aforementioned bug 782411, bug 854390, bug 892731, and bug 748449; and also bug 221832, bug 227896, bug 239710, bug 242591, bug 269928, bug 311341, bug 317057, bug 391278, bug 674707, and bug 684528.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.