Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 204404 - Now unable to play dvd's with mplayer-1.0_rc2 except as root
Summary: Now unable to play dvd's with mplayer-1.0_rc2 except as root
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-05 06:25 UTC by David ac
Modified: 2009-08-03 20:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David ac 2008-01-05 06:25:06 UTC
I recently upgraded mplayer to rc2. I tried to watch a dvd, and for some reason it only works as root.

The error I get when attempting to play as myself is the following:

All the normal stuff... Then:
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
a52: error at resampling
a52: CRC check failed!  0.038 ct:  0.000   1/  1 ??% ??% ??,?% 0 0
a52: error at resampling
a52: CRC check failed!
a52: error at resampling

When I play as root, it all works perfectly.

At first, I thought that this problem related to region encoding, but i have set the region of my dvd to the correct region and the fact it works as root I think disproved that theory (as an aside, for the life of me I couldn't find a tool which could tell me what region a dvd in the drive was!!!)

Any help would be appreciated!!

Oh - and I tried setting the suid bit on /usr/bin/mplayer and it made no difference.

Reproducible: Always




Portage 2.1.3.19 (default-linux/x86/2006.1, gcc-4.1.2, glibc-2.6.1-r0, 2.6.20.6DavidLaptop i686)
=================================================================
System uname: 2.6.20.6DavidLaptop i686 Genuine Intel(R) CPU T2050 @ 1.60GHz
Timestamp of tree: Fri, 04 Jan 2008 07:16:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=prescott -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://public.planetmirror.com/pub/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LINGUAS="en_GB"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="X a52 acl acpi alsa apache2 arts avahi berkdb bitmap-fonts bluetooth bonjour bzip2 cdr cli cracklib crypt css ctype cups daap dbus dga directfb dlloader dri dvd dvdr dvdread ffmpeg firefox fortran gdbm gpm gtk hal hwdata-gentoo iconv ieee1394 imap ipod ipv6 isdnlog java javascript jpeg kde libwww lm_sensors mailwrapper mdnsresponder-compat midi mmx mp3 mplayer mudflap musicbrainz mysql ncurses nls nptl nptlonly nsplugin nvidia ogg openmp pam pcre pdf perl php png ppds pppd python qt3 qt3support qt4 readline real reflection rtc samba sasl session smtp spell spl sse sse2 ssl tcpd truetype truetype-fonts type1-fonts unicode usb vim-syntax win32codecs x86 xorg xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 David ac 2008-01-05 07:31:23 UTC
Sorry - I forgot to mention another quirk. It is only track 1 (of 4) of the DVD which has this problem.

Output of lsdvd:

Disc Title: THE_SHAWSHANK_REDEMPTION_SE_D1
Title: 01, Length: 02:16:26.060 Chapters: 40, Cells: 42, Audio streams: 02, Subpictures: 02

Title: 02, Length: 00:02:06.000 Chapters: 01, Cells: 01, Audio streams: 03, Subpictures: 03

Title: 03, Length: 00:00:12.020 Chapters: 01, Cells: 01, Audio streams: 03, Subpictures: 03

Title: 04, Length: 00:00:47.020 Chapters: 01, Cells: 01, Audio streams: 03, Subpictures: 03

Longest track: 01
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2008-01-05 09:28:35 UTC
So it happens with all DVDs as the summary suggests? Or with one chapter of one DVD as comment #1 suggests? Or... ???
Comment 3 David ac 2008-01-05 12:55:44 UTC
Good question! I've tried a couple of more dvds and they work perfectly fine???

I assumed it wasn't a problem specific to the actual DVD given that I could play it fine logged in as root (and the problem occurred with the first DVD I tried after the mplayer update). 

However, I can't think of a reason why a physical fault with the DVD would go away when I play the track as root. I've also tried the dvd on a windows box and it works fine.

Not sure where this leaves it all! Why would I have to be root to play this specific track on this specific DVD? Is there some way I can give you more info on the dvd itself?

Comment 4 Steve Dibb (RETIRED) gentoo-dev 2008-01-05 16:31:16 UTC
It could be anything.  There are lots of reasons for crappily encoded DVDs.
Comment 5 David ac 2008-01-05 23:21:31 UTC
hmmm. Given that the DVD works without fault on a Windows box AND as root, I would more have thought that the bug was with mplayer. It stands to reason that it's just some kind of permissions fault, but I have no idea how to fix it!

I've done some more ferreting around, and one bit of information in the output that I noticed was different about the dvd that wasn't working is the following line: (somehow I missed this earlier!!)

VIDEO:  MPEG1  720x576  (aspect 3)  25.000 fps  9100.0 kbps (1137.5 kbyte/s)

In the other DVD that I've tried that worked, the line was:

VIDEO:  MPEG2  720x576  (aspect 3)  25.000 fps  9800.0 kbps (1225.0 kbyte/s)

Is there any reason why the fact that it's MPEG1 encoded make any difference re necessary privileges?
Comment 6 Steve Dibb (RETIRED) gentoo-dev 2009-08-03 20:04:48 UTC
Old bug, please test and reopen if it's a problem with newer ( 1.0_rc2_p20090731 )