Ok, The DVD issue: cd0(umass0:1:0): Check Condition (error 0x70) on opcode 0x28 SENSE KEY: Illegal Request ASC/ASCQ: Read Of Scrambled Sector Without Authentication
Only happens with certain DVDs. For me both 'Shaun of the Dead' and 'Hot Fuzz' do this and refuse to play, however 'The Big Lebowski' works fine (all great films by the way). I think we should ask some src hackers who know about how DVDs work what is going on. Also can people try this update - it seems to lessen stuttering a bit. Index: Makefile =================================================================== RCS file: /cvs/ports/x11/mplayer/Makefile,v retrieving revision 1.165 diff -u -p -u -r1.165 Makefile --- Makefile 26 May 2010 21:29:56 -0000 1.165 +++ Makefile 2 Jun 2010 17:55:05 -0000 @@ -5,8 +5,8 @@ ONLY_FOR_ARCHS= amd64 i386 powerpc spar COMMENT= movie player supporting MPEG, DivX, AVI, ASF, MOV & more -V= 20100308 -V_DASHED= 2010-03-08 +V= 20100602 +V_DASHED= 2010-06-02 SUBST_VARS+= PREFIX CONFDIR Index: distinfo =================================================================== RCS file: /cvs/ports/x11/mplayer/distinfo,v retrieving revision 1.33 diff -u -p -u -r1.33 distinfo --- distinfo 26 May 2010 21:29:56 -0000 1.33 +++ distinfo 2 Jun 2010 17:55:05 -0000 @@ -1,5 +1,5 @@ -MD5 (mplayer-export-snapshot-20100308.tar.bz2) = y/60A+FbzhccShluFskeGg== -RMD160 (mplayer-export-snapshot-20100308.tar.bz2) = WCGSDqQH6Sde3of6xFvrwgjcgFE= -SHA1 (mplayer-export-snapshot-20100308.tar.bz2) = nSMSY1qcl0fo38VKZrYQyUYXI8U= -SHA256 (mplayer-export-snapshot-20100308.tar.bz2) = TOzg0vR+1cRwIPNklgFuIpiEGe1TaNULKLMRV7ZWfWc= -SIZE (mplayer-export-snapshot-20100308.tar.bz2) = 8870973 +MD5 (mplayer-export-snapshot-20100602.tar.bz2) = 23r6RtxeFxD/aP5rTRFBzA== +RMD160 (mplayer-export-snapshot-20100602.tar.bz2) = KREj+urX0/TvsSvwLIwSayVyD2k= +SHA1 (mplayer-export-snapshot-20100602.tar.bz2) = Zy1VqyA9qdgxYgq6ffkolileoF0= +SHA256 (mplayer-export-snapshot-20100602.tar.bz2) = XgWFIZhAtq8bW57DLLgRO7YceKK1uZBO1OM7UZLiPbc= +SIZE (mplayer-export-snapshot-20100602.tar.bz2) = 8899992 Index: files/version.h =================================================================== RCS file: /cvs/ports/x11/mplayer/files/version.h,v retrieving revision 1.1 diff -u -p -u -r1.1 version.h --- files/version.h 26 May 2010 21:29:56 -0000 1.1 +++ files/version.h 2 Jun 2010 17:55:05 -0000 @@ -1,2 +1,2 @@ -#define VERSION "SVN-r30866" +#define VERSION "SVN-r31303-snapshot" #define MP_TITLE "%s "VERSION" (C) 2000-2010 MPlayer Team\n" Index: patches/patch-DOCS_man_en_mplayer_1 =================================================================== RCS file: /cvs/ports/x11/mplayer/patches/patch-DOCS_man_en_mplayer_1,v retrieving revision 1.3 diff -u -p -u -r1.3 patch-DOCS_man_en_mplayer_1 --- patches/patch-DOCS_man_en_mplayer_1 26 May 2010 21:29:56 -0000 1.3 +++ patches/patch-DOCS_man_en_mplayer_1 2 Jun 2010 17:55:05 -0000 @@ -1,7 +1,7 @@ $OpenBSD: patch-DOCS_man_en_mplayer_1,v 1.3 2010/05/26 21:29:56 jakemsr Exp $ ---- DOCS/man/en/mplayer.1.orig Fri Mar 5 23:13:08 2010 -+++ DOCS/man/en/mplayer.1 Mon Mar 8 14:28:41 2010 -@@ -1296,7 +1296,7 @@ May be negative. +--- DOCS/man/en/mplayer.1.orig Mon May 31 18:12:27 2010 ++++ DOCS/man/en/mplayer.1 Wed Jun 2 17:54:52 2010 +@@ -1303,7 +1303,7 @@ May be negative. . .TP .B \-cdrom\-device <path to device> @@ -10,7 +10,7 @@ $OpenBSD: patch-DOCS_man_en_mplayer_1,v . .TP .B \-channels <number> (also see \-af channels) -@@ -11474,11 +11474,11 @@ mplayer \-vo zr2 \-vf scale=352:288,zrmjpeg file.avi +@@ -11519,11 +11519,11 @@ mplayer \-vo zr2 \-vf scale=352:288,zrmjpeg file.avi .PP .B Play DTS-CD with passthrough: .nf Index: patches/patch-Makefile =================================================================== RCS file: /cvs/ports/x11/mplayer/patches/patch-Makefile,v retrieving revision 1.20 diff -u -p -u -r1.20 patch-Makefile --- patches/patch-Makefile 26 May 2010 21:29:56 -0000 1.20 +++ patches/patch-Makefile 2 Jun 2010 17:55:05 -0000 @@ -1,6 +1,6 @@ $OpenBSD: patch-Makefile,v 1.20 2010/05/26 21:29:56 jakemsr Exp $ ---- Makefile.orig Fri Mar 5 23:13:08 2010 -+++ Makefile Mon Mar 8 21:24:09 2010 +--- Makefile.orig Sun May 30 10:47:53 2010 ++++ Makefile Wed Jun 2 17:54:53 2010 @@ -28,6 +28,7 @@ include config.mak SRCS_AUDIO_INPUT-$(ALSA1X) += stream/ai_alsa1x.c SRCS_AUDIO_INPUT-$(ALSA9) += stream/ai_alsa.c @@ -9,15 +9,15 @@ $OpenBSD: patch-Makefile,v 1.20 2010/05/ SRCS_COMMON-$(AUDIO_INPUT) += $(SRCS_AUDIO_INPUT-yes) SRCS_COMMON-$(BITMAP_FONT) += libvo/font_load.c SRCS_COMMON-$(CDDA) += stream/stream_cdda.c \ -@@ -627,6 +628,7 @@ SRCS_MPLAYER-$(S3FB) += libvo/vo_s3fb.c - SRCS_MPLAYER-$(SDL) += libao2/ao_sdl.c libvo/vo_sdl.c +@@ -619,6 +620,7 @@ SRCS_MPLAYER-$(S3FB) += libvo/vo_s3fb.c + SRCS_MPLAYER-$(SDL) += libao2/ao_sdl.c libvo/vo_sdl.c libvo/sdl_common.c SRCS_MPLAYER-$(SGIAUDIO) += libao2/ao_sgi.c SRCS_MPLAYER-$(SUNAUDIO) += libao2/ao_sun.c +SRCS_MPLAYER-$(SNDIO) += libao2/ao_sndio.c SRCS_MPLAYER-$(SVGA) += libvo/vo_svga.c SRCS_MPLAYER-$(TDFXFB) += libvo/vo_tdfxfb.c SRCS_MPLAYER-$(TDFXVID) += libvo/vo_tdfx_vid.c -@@ -689,7 +691,8 @@ SRCS_MPLAYER = command.c \ +@@ -682,7 +684,8 @@ SRCS_MPLAYER = command.c \ libvo/video_out.c \ libvo/vo_mpegpes.c \ libvo/vo_null.c \ @@ -27,7 +27,7 @@ $OpenBSD: patch-Makefile,v 1.20 2010/05/ SRCS_MENCODER-$(FAAC) += libmpcodecs/ae_faac.c -@@ -901,7 +904,9 @@ version.h: version.sh +@@ -885,7 +888,9 @@ version.h: version.sh # Make sure all generated header files are created. codec-cfg.d codec-cfg.o: codecs.conf.h $(DEPS) $(MENCODER_DEPS) $(MPLAYER_DEPS): help_mp.h @@ -38,7 +38,7 @@ $OpenBSD: patch-Makefile,v 1.20 2010/05/ libdvdcss/%: CFLAGS := -Ilibdvdcss -D__USE_UNIX98 -D_GNU_SOURCE -DVERSION=\"1.2.10\" $(CFLAGS_LIBDVDCSS) $(CFLAGS) libdvdnav/%: CFLAGS := -Ilibdvdnav -D__USE_UNIX98 -D_GNU_SOURCE -DHAVE_CONFIG_H -DVERSION=\"MPlayer-custom\" $(CFLAGS) -@@ -912,7 +917,16 @@ loader/%: CFLAGS += -fno-omit-frame-pointer $(CFLAGS_N +@@ -896,7 +901,16 @@ loader/%: CFLAGS += -fno-omit-frame-pointer $(CFLAGS_N #loader/%: CFLAGS += -Ddbg_printf=__vprintf -DTRACE=__vprintf -DDETAILED_OUT loader/win32%: CFLAGS += $(CFLAGS_STACKREALIGN) Index: patches/patch-command_c =================================================================== RCS file: /cvs/ports/x11/mplayer/patches/patch-command_c,v retrieving revision 1.2 diff -u -p -u -r1.2 patch-command_c --- patches/patch-command_c 26 May 2010 21:29:56 -0000 1.2 +++ patches/patch-command_c 2 Jun 2010 17:55:05 -0000 @@ -1,12 +1,12 @@ $OpenBSD: patch-command_c,v 1.2 2010/05/26 21:29:56 jakemsr Exp $ ---- command.c.orig Sat Jan 30 23:24:23 2010 -+++ command.c Mon Mar 8 14:28:42 2010 -@@ -3167,7 +3167,7 @@ int run_command(MPContext * mpctx, mp_cmd_t * cmd) - case MP_CMD_RUN: +--- command.c.orig Sat May 29 11:11:55 2010 ++++ command.c Wed Jun 2 17:58:15 2010 +@@ -3178,7 +3178,7 @@ int run_command(MPContext *mpctx, mp_cmd_t *cmd) + case MP_CMD_RUN: #ifndef __MINGW32__ - if (!fork()) { -- execl("/bin/sh", "sh", "-c", cmd->args[0].v.s, NULL); -+ execl("/bin/sh", "sh", "-c", cmd->args[0].v.s, (char *)NULL); - exit(0); - } + if (!fork()) { +- execl("/bin/sh", "sh", "-c", cmd->args[0].v.s, NULL); ++ execl("/bin/sh", "sh", "-c", cmd->args[0].v.s, (char *)NULL); + exit(0); + } #endif Index: patches/patch-configure =================================================================== RCS file: /cvs/ports/x11/mplayer/patches/patch-configure,v retrieving revision 1.56 diff -u -p -u -r1.56 patch-configure --- patches/patch-configure 26 May 2010 21:29:56 -0000 1.56 +++ patches/patch-configure 2 Jun 2010 17:55:05 -0000 @@ -1,6 +1,6 @@ $OpenBSD: patch-configure,v 1.56 2010/05/26 21:29:56 jakemsr Exp $ ---- configure.orig Thu Mar 4 14:46:44 2010 -+++ configure Mon Mar 8 21:09:42 2010 +--- configure.orig Sun May 30 15:29:18 2010 ++++ configure Wed Jun 2 17:58:59 2010 @@ -423,6 +423,7 @@ Audio output: --disable-nas disable NAS audio output [autodetect] --disable-sgiaudio disable SGI audio output [autodetect] @@ -9,7 +9,7 @@ $OpenBSD: patch-configure,v 1.56 2010/05 --disable-kai disable KAI audio output [autodetect] --disable-dart disable DART audio output [autodetect] --disable-win32waveout disable Windows waveout audio output [autodetect] -@@ -665,6 +666,7 @@ _xf86keysym=auto +@@ -664,6 +665,7 @@ _xf86keysym=auto _mlib=no #broken, thus disabled _sgiaudio=auto _sunaudio=auto @@ -17,7 +17,7 @@ $OpenBSD: patch-configure,v 1.56 2010/05 _alsa=auto _fastmemcpy=yes hardcoded_tables=no -@@ -1098,6 +1100,8 @@ for ac_option do +@@ -1085,6 +1087,8 @@ for ac_option do --disable-mlib) _mlib=no ;; --enable-sunaudio) _sunaudio=yes ;; --disable-sunaudio) _sunaudio=no ;; @@ -26,7 +26,7 @@ $OpenBSD: patch-configure,v 1.56 2010/05 --enable-sgiaudio) _sgiaudio=yes ;; --disable-sgiaudio) _sgiaudio=no ;; --enable-alsa) _alsa=yes ;; -@@ -1434,7 +1438,7 @@ if test -z "$_target" ; then +@@ -1423,7 +1427,7 @@ if test -z "$_target" ; then sh3|sh4|sh4a) host_arch=sh ;; s390) host_arch=s390 ;; s390x) host_arch=s390x ;; @@ -35,7 +35,7 @@ $OpenBSD: patch-configure,v 1.56 2010/05 vax) host_arch=vax ;; xtensa*) host_arch=xtensa ;; *) host_arch=UNKNOWN ;; -@@ -2456,7 +2460,7 @@ cat > $TMPC << EOF +@@ -2442,7 +2446,7 @@ cat > $TMPC << EOF int ff_extern; EOF cc_check -c || die "Symbol mangling check failed." @@ -44,7 +44,27 @@ $OpenBSD: patch-configure,v 1.56 2010/05 extern_prefix=${sym%%ff_extern*} def_extern_asm="#define EXTERN_ASM $extern_prefix" def_extern_prefix="#define EXTERN_PREFIX \"$extern_prefix\"" -@@ -3205,6 +3209,7 @@ if test "$_struct_sockaddr_storage" = auto; then +@@ -2480,8 +2484,8 @@ cat > $TMPC << EOF + __attribute__((noinline)) static int foo3(int i1, int i2, int i3) { return i3; } + int main(void) { return foo3(1,2,3) == 3 ? 0 : 1; } + EOF +- cc_check -O4 -mstackrealign && tmp_run && cflags_stackrealign=-mstackrealign +- test -z "$cflags_stackrealign" && cc_check -O4 -mstackrealign -fno-unit-at-a-time \ ++ cc_check -mstackrealign && tmp_run && cflags_stackrealign=-mstackrealign ++ test -z "$cflags_stackrealign" && cc_check -mstackrealign -fno-unit-at-a-time \ + && tmp_run && cflags_stackrealign="-mstackrealign -fno-unit-at-a-time" + test -n "$cflags_stackrealign" && echores "yes" || echores "no" + fi # if darwin && test "$cc_vendor" = "gnu" ; then +@@ -2500,7 +2504,7 @@ elif test -z "$CFLAGS" ; then + elif test "$cc_vendor" != "gnu" ; then + CFLAGS="-O2 $_march $_mcpu $_pipe" + else +- CFLAGS="-Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 $_march $_mcpu $_pipe -ffast-math -fomit-frame-pointer" ++ CFLAGS="-Wall -Wno-switch -Wpointer-arith -Wredundant-decls $_march $_mcpu $_pipe -ffast-math -fomit-frame-pointer" + extra_ldflags="$extra_ldflags -ffast-math" + fi + else +@@ -3191,6 +3195,7 @@ if test "$_struct_sockaddr_storage" = auto; then #if HAVE_WINSOCK2_H #include <winsock2.h> #else @@ -52,7 +72,7 @@ $OpenBSD: patch-configure,v 1.56 2010/05 #include <sys/socket.h> #endif int main(void) { struct sockaddr_storage sas; return 0; } -@@ -3613,7 +3618,7 @@ int main(void) { pthread_t tid; return pthread_create( +@@ -3597,7 +3602,7 @@ int main(void) { pthread_t tid; return pthread_create( EOF _pthreads=no if ! hpux ; then @@ -61,16 +81,16 @@ $OpenBSD: patch-configure,v 1.56 2010/05 # for crosscompilation, we cannot execute the program, be happy if we can link statically cc_check $THREAD_CFLAGS $_ld_tmp && (tmp_run || test "$_ld_static") && _ld_pthread="$_ld_tmp" && _pthreads=yes && break done -@@ -4892,6 +4897,8 @@ if test "$_aa" = yes ; then +@@ -4876,6 +4881,8 @@ if test "$_aa" = yes ; then def_aa='#define CONFIG_AA 1' if cygwin ; then libs_mplayer="$libs_mplayer $(aalib-config --libs | cut -d " " -f 2,5,6)" + else + libs_mplayer="$libs_mplayer $(aalib-config --libs)" fi - _vomodules="aa $_vomodules" + vomodules="aa $vomodules" else -@@ -5188,14 +5195,14 @@ int main(void) { +@@ -5095,14 +5102,14 @@ int main(void) { return !p_ver || p_ver[0] == 0; } EOF @@ -87,15 +107,7 @@ $OpenBSD: patch-configure,v 1.56 2010/05 else def_mng='#undef CONFIG_MNG' fi -@@ -5823,6 +5830,7 @@ fi - if test "$_jack" = yes ; then - def_jack='#define CONFIG_JACK 1' - _aomodules="jack $_aomodules" -+ libs_mplayer="$libs_mplayer $(pkg-config --libs jack)" - else - _noaomodules="jack $_noaomodules" - fi -@@ -5985,6 +5993,26 @@ fi +@@ -5992,6 +5999,26 @@ fi echores "$_sunaudio" @@ -122,7 +134,7 @@ $OpenBSD: patch-configure,v 1.56 2010/05 def_mlib='#define CONFIG_MLIB 0' if sunos; then echocheck "Sun mediaLib" -@@ -6100,7 +6128,7 @@ elif dragonfly ; then +@@ -6107,7 +6134,7 @@ elif dragonfly ; then elif freebsd ; then default_cdrom_device="/dev/acd0" elif openbsd ; then @@ -131,7 +143,7 @@ $OpenBSD: patch-configure,v 1.56 2010/05 elif sunos ; then default_cdrom_device="/vol/dev/aliases/cdrom0" # Modern Solaris versions use HAL instead of the vold daemon, the volfs -@@ -6169,8 +6197,9 @@ elif test "$_dvdread" = auto ; then +@@ -6176,8 +6203,9 @@ elif test "$_dvdread" = auto ; then #include <dvdread/nav_read.h> int main(void) { return 0; } EOF @@ -143,7 +155,7 @@ $OpenBSD: patch-configure,v 1.56 2010/05 if cc_check -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE \ $_dvdreadcflags $_dvdreadlibs $_ld_dl ; then _dvdread=yes -@@ -6848,7 +6877,7 @@ if test "$_libdca" = auto ; then +@@ -6862,7 +6890,7 @@ if test "$_libdca" = auto ; then #include <dts.h> int main(void) { dts_init(0); return 0; } EOF @@ -152,16 +164,7 @@ $OpenBSD: patch-configure,v 1.56 2010/05 cc_check $_ld_dca $_ld_lm && extra_ldflags="$extra_ldflags $_ld_dca" \ && _libdca=yes && break done -@@ -6898,7 +6927,7 @@ int main(void) { unsigned long x, y; faacEncOpen(48000 - EOF - _faac=no - for _ld_faac in "-lfaac" "-lfaac -lmp4v2 -lstdc++" ; do -- cc_check -O4 $_ld_faac $_ld_lm && libs_mencoder="$libs_mencoder $_ld_faac" && _faac=yes && break -+ cc_check $_ld_faac $_ld_lm && libs_mencoder="$libs_mencoder $_ld_faac" && _faac=yes && break - done - fi - if test "$_faac" = yes ; then -@@ -7899,6 +7928,15 @@ if test "$_tv_v4l2" = auto ; then +@@ -7953,6 +7981,15 @@ if test "$_tv_v4l2" = auto ; then int main(void) { return 0; } EOF cc_check && _tv_v4l2=yes @@ -177,7 +180,7 @@ $OpenBSD: patch-configure,v 1.56 2010/05 fi fi if test "$_tv_v4l2" = yes ; then -@@ -8637,6 +8675,7 @@ SPEEX = $_speex +@@ -8692,6 +8729,7 @@ SPEEX = $_speex STREAM_CACHE = $_stream_cache SGIAUDIO = $_sgiaudio SUNAUDIO = $_sunaudio @@ -185,7 +188,7 @@ $OpenBSD: patch-configure,v 1.56 2010/05 SVGA = $_svga TDFXFB = $_tdfxfb TDFXVID = $_tdfxvid -@@ -9026,6 +9065,7 @@ $def_ossaudio_devmixer +@@ -9089,6 +9127,7 @@ $def_ossaudio_devmixer $def_pulse $def_sgiaudio $def_sunaudio Index: patches/patch-libavcodec_Makefile =================================================================== RCS file: /cvs/ports/x11/mplayer/patches/patch-libavcodec_Makefile,v retrieving revision 1.9 diff -u -p -u -r1.9 patch-libavcodec_Makefile --- patches/patch-libavcodec_Makefile 26 May 2010 21:29:56 -0000 1.9 +++ patches/patch-libavcodec_Makefile 2 Jun 2010 17:55:05 -0000 @@ -2,9 +2,9 @@ $OpenBSD: patch-libavcodec_Makefile,v 1. Anything requiring cabac.h will only build with -O -fomit-frame-pointer. ---- libavcodec/Makefile.orig Mon Mar 8 04:33:02 2010 -+++ libavcodec/Makefile Mon Mar 22 15:20:40 2010 -@@ -729,6 +729,45 @@ CLEANFILES = sin_tables.c cos_tables.c *_tables.h *_ta +--- libavcodec/Makefile.orig Thu May 27 05:39:31 2010 ++++ libavcodec/Makefile Wed Jun 2 18:19:41 2010 +@@ -626,6 +626,47 @@ CLEANFILES = sin_tables.c cos_tables.c *_tables.h *_ta include $(SUBDIR)../subdir.mak @@ -25,6 +25,7 @@ Anything requiring cabac.h will only bui +h264_refs.o: CFLAGS += -O +h264_cavlc.o: CFLAGS += -O +h264_cabac.o: CFLAGS += -O ++error_resilience.o: CFLAGS += -O +svq3.o: CFLAGS += -O +cabac.o: CFLAGS += -O +endif @@ -43,6 +44,7 @@ Anything requiring cabac.h will only bui +h264_refs.o: CFLAGS += -fomit-frame-pointer +h264_cavlc.o: CFLAGS += -fomit-frame-pointer +h264_cabac.o: CFLAGS += -fomit-frame-pointer ++error_resilience.o: CFLAGS += -fomit-frame-pointer +svq3.o: CFLAGS += -fomit-frame-pointer +cabac.o: CFLAGS += -fomit-frame-pointer +endif Index: patches/patch-libswscale_Makefile =================================================================== RCS file: /cvs/ports/x11/mplayer/patches/patch-libswscale_Makefile,v retrieving revision 1.2 diff -u -p -u -r1.2 patch-libswscale_Makefile --- patches/patch-libswscale_Makefile 26 May 2010 21:29:56 -0000 1.2 +++ patches/patch-libswscale_Makefile 2 Jun 2010 17:55:05 -0000 @@ -1,7 +1,7 @@ $OpenBSD: patch-libswscale_Makefile,v 1.2 2010/05/26 21:29:56 jakemsr Exp $ ---- libswscale/Makefile.orig Wed Jan 27 00:25:23 2010 -+++ libswscale/Makefile Mon Mar 8 14:28:42 2010 -@@ -21,3 +21,10 @@ TESTPROGS = colorspace swscale +--- libswscale/Makefile.orig Tue May 4 10:11:01 2010 ++++ libswscale/Makefile Wed Jun 2 17:54:53 2010 +@@ -20,3 +20,10 @@ TESTPROGS = colorspace swscale DIRS = bfin mlib ppc sparc x86 include $(SUBDIR)../subdir.mak -- Best Regards Edd Barrett http://www.theunixzoo.co.uk