DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 7th September 2010
st89 st89 is offline
New User
 
Join Date: Sep 2009
Posts: 4
Thanked 1 Time in 1 Post
Default Playing DVDs

I gathered from OpenBSD Faq 13.9 (can't post link) that it's possible to play DVDs, with or without mounting them. When I do
Code:
$ xine /dev/cd0c
I get
Quote:
- xine engine error -

Input plugin failed to open mrl'/dev/cd0c'
and behind that another message saying
Quote:
"sight", unknown error. (Permission error /dev/cd0c)
I then do
Code:
$ sudo chmod a+r /dev/cd0c
which takes away the second permission-related message but still leaves the first. I then do
Code:
$ sudo mount /dev/cd0c /mnt/dvd;
$ xine /mnt/dvd
and can hear the DVD drive whirring and reading the disc before getting
Quote:
- xine engine error -

Input plugin failed to open mrl
'mnt/dvd/VIDEO_TS/VTS_03_0.VOB'
...which leads to Xine hanging up and requiring killing.

I have similar problems when trying to use dvdrip in that mounting works but reading directly from the DVD drive doesn't. Does anyone know of any resources to get 'raw' (i.e. no need to mount) DVD playback/ripping working? Thanks in advance for any help/tips/pointers
Reply With Quote
  #2   (View Single Post)  
Old 7th September 2010
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

I use mplayer for DVD playback, I believe it requires manually installing a few of the DVD libraries for navigation and content descrambling (..libdvdcss).

For accessing devices directly, you should always avoid the block devices, use /dev/rcd0c instead and set a cache value for your player.. most have it.

There is typically no need to mount a DVD, generally the players and associated libraries work better accessing the drive themselves.

For DVD ripping dvdbackup port seems to work well, and can be useful for confirming the proper libraries have been installed for accessing the drive.

I do believe that read and write access is required for negotiating encryption with the drive, but, I haven't confirmed this.

Good luck,
Reply With Quote
  #3   (View Single Post)  
Old 7th September 2010
tetrodozombie tetrodozombie is offline
Real Name: bill slusser
Banned
 
Join Date: Dec 2009
Location: atlanta, ga
Posts: 82
Thanked 1 Time in 1 Post
Default

I use "ogle". pkg_add -iv ogle. on the command line: sudo ogle. is all it takes to watch a dvd on my OpenBSD box -- version 4.7.
Reply With Quote
  #4   (View Single Post)  
Old 7th September 2010
Oko's Avatar
Oko Oko is offline
Fsck Surgeon
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 759
Thanked 36 Times in 32 Posts
Default

Quote:
Originally Posted by tetrodozombie View Post
I use "ogle". pkg_add -iv ogle. on the command line: sudo ogle. is all it takes to watch a dvd on my OpenBSD box -- version 4.7.
Ogle is indeed possibly the best DVD player around. MPlayers lacks the support for Chapters or at least it did in the past. That being said the thing that really enables you to watch DVDs is libdvd. Sometime if you try to watch the DVD from the different region code you might find useful to have around libdvdcss.
Reply With Quote
  #5   (View Single Post)  
Old 7th September 2010
Oko's Avatar
Oko Oko is offline
Fsck Surgeon
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 759
Thanked 36 Times in 32 Posts
Default

Quote:
Originally Posted by BSDfan666 View Post
For DVD ripping dvdbackup port seems to work well, and can be useful for confirming the proper libraries have been installed for accessing the drive.
You might want to analyze the following pseudo script.
Code:
#!/bin/sh
#finding movie on the DVD which has many chapters and commercials. Usually 
# the longest track
lsdvd


#crop detect
mplayer dvd://2 -vf cropdetect

# Widescreen: use scale "704:304"  Fullscreen: use scale "640:480" (see below)  


#Two passes encoding
mencoder dvd://2 -chapter 1-21 -ovc lavc -lavcopts \
vcodec=mpeg4:vpass=1 -oac copy -o /dev/null ;
mencoder dvd://2 -chapter 1-21  -ovc lavc -lavcopts \ 
vcodec=mpeg4:mbd=2:trell:vpass=2  -oac copy -o output.avi


# transfering the movie into mpg2
ffmpeg -i title2.avi -y -target ntsc-dvd -sameq -aspect 16:9 finalmovie.mpg

# Creating the movie 
dvdauthor --title -o dvd -f finalmovie.mpg


# Creating the title
dvdauthor -o dvd -T


#making DVD structure 
mkisofs -dvd-video -o dvd.iso dvd/

#burning the movie
growisofs -dvd-compat -Z /dev/rcd0c=dvd.iso
Reply With Quote
  #6   (View Single Post)  
Old 7th September 2010
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

Thanks Oko, but I don't do much ripping.. the stuff I do backup I typically convert to XviD, usually television shows.

I notice an unusual step, DVD movies typically use MPEG2 already.. it makes little sense in your pseudo-script to encode it to MPEG4(..divx/xvid) and then back to MPEG2.

Perhaps the might find some of the steps useful though, there are plenty of useful tutorials online for using mencoder/ffmpeg to do video converting.
Reply With Quote
  #7   (View Single Post)  
Old 7th September 2010
st89 st89 is offline
New User
 
Join Date: Sep 2009
Posts: 4
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by BSDfan666 View Post
I use mplayer for DVD playback, I believe it requires manually installing a few of the DVD libraries for navigation and content descrambling (..libdvdcss).

For accessing devices directly, you should always avoid the block devices, use /dev/rcd0c instead and set a cache value for your player.. most have it.

There is typically no need to mount a DVD, generally the players and associated libraries work better accessing the drive themselves.

For DVD ripping dvdbackup port seems to work well, and can be useful for confirming the proper libraries have been installed for accessing the drive.

I do believe that read and write access is required for negotiating encryption with the drive, but, I haven't confirmed this.

Good luck,
Thanks for the advice! DVD playback and ripping now work flawlessly with Xine and DVDbackup when using /dev/rcd0c (I already had libdvdcss etc installed). Unfortunately Ogle displayed a stretched square for the DVD and I couldn't find out where to change the aspect ratio.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Playing IPTV Multicast stream tomageeni OpenBSD General 2 18th July 2010 09:28 PM
Automounting CDs/DVDs in KDE on FreeBSD BSDKaffee Guides 10 10th October 2009 08:18 AM
Playing a CD. maxrussell FreeBSD General 2 22nd July 2009 07:24 PM
playing songs in text mode rex FreeBSD General 4 27th August 2008 08:48 PM
Playing DVDs drhowarddrfine FreeBSD Ports and Packages 9 30th May 2008 02:46 PM


All times are GMT. The time now is 07:19 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