|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
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 Quote:
Quote:
Code:
$ sudo chmod a+r /dev/cd0c Code:
$ sudo mount /dev/cd0c /mnt/dvd; $ xine /mnt/dvd Quote:
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 |
|
|||
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, |
|
|||
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.
|
|
||||
Quote:
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 |
|
|||
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. |
|
|||
Quote:
|
|
|
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 |