DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 28th December 2009
teckk teckk is offline
Port Guard
 
Join Date: May 2008
Posts: 11
Thanked 0 Times in 0 Posts
Default libdvdcss and freebsd

None of my video players and mencoder will use libdvdcss, or it isn't decoding CSS DVD's
Code:
uname -a
7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May  1 08:49:13 UTC 2009     root@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
Code:
$ ogle dvd://
libdvdread: Using libdvdcss version 1.2.10 for DVD access
libdvdread: Could not open dvd:// with libdvdcss.
libdvdread: Can't open dvd:// for reading
ERROR[ogle_nav]: faild to open/read the DVD
DVDSetDVDRoot:: Root not set
Code:
$ xine dvd://
This is xine (X11 gui) - a free video player v0.99.5.
(c) 2000-2007 The xine Team.
libdvdread: Encrypted DVD support unavailable.
libdvdread: Attempting to use device /dev/ad0s2a mounted on / for CSS authentication
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdread: Encrypted DVD support unavailable.
Code:
$ mplayer dvd://
MPlayer 1.0rc2-4.2.1 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 2.00GHz (Family: 15, Model: 2, Stepping: 7)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
EDIT FOR SPACE..........
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
a52: CRC check failed!  0.150 ct:  0.010   5/  4 ??% ??% ??,?% 0 0 
a52: error at resampling
A:   1.2 V:   1.7 A-V: -0.490 ct: -0.023  26/ 22  0%  0% 14.6% 0 0 
demux_mpg: 24000/1001fps progressive NTSC content detected, switching framerate.
a52: CRC check failed!  0.527 ct: -0.031  29/ 24  0%  0% 13.1% 0 0 
a52: error at resampling
a52: CRC check failed!  0.294 ct: -0.048  33/ 28  0%  0% 12.9% 0 0 
a52: error at resampling
A:   2.1 V:   2.2 A-V: -0.106 ct: -0.056  35/ 30  0%  0% 24.2% 0 0
They aren't using libdvdcss or it isn't working.
Code:
$ pkg_info | grep libdvd
libdvdcss-1.2.10_1  Portable abstraction library for DVD decryption
libdvdnav-0.1.10_4  The library for the xine-dvdnav plugin
libdvdread-4.1.3_1  MPlayer version of the libdvdread project
Code:
$ locate libdvd | less
/usr/local/lib/libdvdcss.a
/usr/local/lib/libdvdcss.la
/usr/local/lib/libdvdcss.so
/usr/local/lib/libdvdcss.so.3
/usr/local/lib/libdvdnav.a
/usr/local/lib/libdvdnav.la
/usr/local/lib/libdvdnav.so
/usr/local/lib/libdvdnav.so.4
/usr/local/lib/libdvdread.a
/usr/local/lib/libdvdread.so
/usr/local/lib/libdvdread.so.4
/usr/local/lib/libdvdread.so.4.1.3
/usr/local/libdata/pkgconfig/libdvdcss.pc
I 've been googling and searching bsd forums and LQ for this. Haven't foung the answer yet. I can dump the .vob with mplayer, use mencoder to do what I want but no CSS decryption. They aren't using libdvdcss or it's broke.
What did I fail to do? Or is there a prob with freebsd and libdvdcss?

I'll be away for a few days. Thanks for the info in advance.
Reply With Quote
  #2   (View Single Post)  
Old 29th December 2009
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,080
Thanked 198 Times in 156 Posts
Default

I don't see any option or dependency in the latest Makefile for dvdcss or dvdnav, I don't have a desktop FreeBSD system anymore so I can't try it right now, but I'm pretty sure it worked at least ~1 year ago, I used to use my FreeBSD machine to play DVD's (Before I bought a standalone DVD player) and I'm pretty sure mplayer used libdvdcss for that.

You could try looking trough the CVS logs and see what has changed:
http://www.freebsd.org/cgi/cvsweb.cg...media/mplayer/

Also make sure your ports tree is up to date and you have the latest versions of mplayer and dependencies installed.

As a sidenote, you should use libdvdnav-mplayer instead of libdvdnav, this should be the default version now.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #3   (View Single Post)  
Old 31st December 2009
teckk teckk is offline
Port Guard
 
Join Date: May 2008
Posts: 11
Thanked 0 Times in 0 Posts
Default

Thanks for answering.
Code:
$ pkg_info | grep libdvd
libdvdcss-1.2.10_1  Portable abstraction library for DVD decryption
libdvdnav-mplayer-4.1.3 MPlayer version of the libdvdnav project
libdvdread-4.1.3_1  MPlayer version of the libdvdread project
Doesn't make any difference. Looks to me like libdvdcss isn't working.
Code:
$ ogle
libdvdread: Using libdvdcss version 1.2.10 for DVD access
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VTS_08_0.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VTS_09_0.IFO failed
libdvdread: Using libdvdcss version 1.2.10 for DVD access

libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient

libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x0001357d
libdvdread: Error cracking CSS key for /VIDEO_TS/VIDEO_TS.VOB (0x0001357d)
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x0001426f
libdvdread: Error cracking CSS key for /VIDEO_TS/VTS_01_0.VOB (0x0001426f)
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x00018ece
libdvdread: Error cracking CSS key for /VIDEO_TS/VTS_01_1.VOB (0x00018ece)!!
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x003530ea
libdvdread: Error cracking CSS key for /VIDEO_TS/VTS_02_1.VOB (0x003530ea)!!
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x00353fd6
libdvdread: Error cracking CSS key for /VIDEO_TS/VTS_03_1.VOB (0x00353fd6)!!
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_04_1.VOB at 0x00354664
libdvdread: Error cracking CSS key for /VIDEO_TS/VTS_04_1.VOB (0x00354664)!!
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_05_1.VOB at 0x00354d4f
libdvdread: Error cracking CSS key for /VIDEO_TS/VTS_05_1.VOB (0x00354d4f)!!
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_06_1.VOB at 0x00354dda
libdvdread: Error cracking CSS key for /VIDEO_TS/VTS_06_1.VOB (0x00354dda)!!
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_07_1.VOB at 0x003c7ba6
libdvdread: Error cracking CSS key for /VIDEO_TS/VTS_07_1.VOB (0x003c7ba6)!!
libdvdread: Elapsed time 0
libdvdread: Found 7 VTS's
libdvdread: Elapsed time 0
No accelerated IMDCT transform found
Xscreensaver not running.
using MMX for yuv2rgb conversion
!##display: frame rate: 0.000 fps
WARNING[ogle_mpeg_ps]: Found a scrambled PES packet! (1)
WARNING[ogle_mpeg_ps]: Found a scrambled PES packet! (1)
WARNING[ogle_mpeg_ps]: Found a scrambled PES packet! (1)
I don't see how this could be a region problem. Region1 drive, region 1 DVD. Two identical drives, one on XP one on FreeBSD. The windows machine plays the DVD's fine. All of you reading this using a FreeBSD 7 machine, can you play CSS encrytped DVD's? If so how? Are you using a different versions of libdvd or what?
Reply With Quote
  #4   (View Single Post)  
Old 1st January 2010
teckk teckk is offline
Port Guard
 
Join Date: May 2008
Posts: 11
Thanked 0 Times in 0 Posts
Default

Fixed it. Upgraded libdvdnav. Thought I had everything up to date. In case anyone is having probs with CSS DVD's.
Now
Code:
libdvdcss-1.2.10_1  Portable abstraction library for DVD decryption
libdvdnav-0.1.10_5  The library for the xine-dvdnav plugin
libdvdread-4.1.3_1  MPlayer version of the libdvdread project
Before
Code:
libdvdcss-1.2.10_1  Portable abstraction library for DVD decryption
libdvdnav-0.1.10_4  The library for the xine-dvdnav plugin
libdvdread-4.1.3_1  MPlayer version of the libdvdread project
Mplayer, ogle, Xine, VLC all work.
Man chase your tail for days.......Guess I should have done a portupgrade to everything but I'm always afraid it will break something when everything else works.
So instead I did a portupgrade to
libdvdcss
libdvdread
libdvdnav
sure enough libdvdnav was behind.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:15 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick