FAQ
General note
Please upgrade to the latest version of ogle before reporting any
problems, chances are that your problem is fixed in the latest version.
1. It fails at startup with an error about not finding a shared library.
You probably have a faulty 'ld'. Make sure that you have version 2.11s
or later. Upgrade 'ld' (it comes with binutils) or add the right path
(usually /usr/local/lib/ogle) to the environment variable
LD_LIBRARY_PATH.
3. How do I read a DVD?
Just start ogle and select the directory where the DVD resides. If it isn't
mounted select the device node corresponding to the DVD drive.
You can also use the "open disc" command, this defaults to opening
/dev/dvd .
4. How do I read an encrypted DVD?
Just like a regular unencrypted DVD, however you will need write access to
the DVD drive's device node to get the CSS key exchange to work.
You need to install libdvdcss as well.
5. How do I read MPEG1 or MPEG2 VOB files?
This feature is currently broken.
6. programstream.c:36: dvdread/dvd_reader.h: No such file or directory
Try configuring with './configure --with-libdvdread=/usr/local
', substitute /usr/local for the path to where you
installed libdvdread.
9. There is no audio.
Make sure you have chosen an ac3, mpeg or lpcm audio stream
(dts currently doesn't work). Start Ogle with GUI. Start playing the DVD.
Click on the loudspeaker and select any AC3, MPEG or LPCM audio stream.
10. Is there support for Hollywood+/dxr3 hardware decoders?
Not at the moment, but we plan to support it at a later date.
11. when running configure in ogle_gui I get this:
'configure: error: Needs libdvdcontrol, install it and/or specify the location'
But I have libdvdcontrol.so in /usr/local/lib/ogle/
Upgrading to binutils-2.11 should fix this problem.
12. I get lots of 'demux: Found a scrambled PES packet! (1)' and the movie won't play.
The problem might also be that you are running as root. There seems to be
some general problem with libcss and/or the CSS ioctl's when you run as root.
13. Is there a full screen mode?
Yes, press 'f' or use the gui to toggle.
14. I can't find libdvdcontrol. There's no link on you site.
libdvdcontrol comes with ogle. If you've installed ogle it's there.
15. What is db1? Why can't I find it?
It's the Berkeley Database (Berkeley DB). This library used to be
part of the glibc package. If you don't have it install the developer
package. Some Linux distributions have only libdb1.so.2
This is easily fixed with ln -s libdb1.so.2 libdb1.so
17. I have an ATI graphics card and the picture is strange. (Half the
picture missing, inverted pixels)
This is because of your ATI graphics driver. Upgrading to
XFree86 4.1.0 and using the drivers from
the GATOS project should help.
20. I only get a blue window, can't see any video but I do hear the sound.
Or I have a fast computer but it very slow, the title doesn't contain "Xv".
Your Xvideo (Xv) driver is not working correctly. Upgrade to the latest
version and try again. Drivers for Matrox G200/400, 3dfx and i810/i815
are included in XFree86.
If you have a nVidia card get the
drivers from them.
Most ATI cards are supported by
the drivers from the GATOS project.
For S3 cards
Tim Roberts S3 Savage page or perhaps from
S3 Graphics.
Newer SiS drivers, along with much information, can be found at
SiS VGA chipsets.
There are also binary drivers for
Matrox cards.
The things to test when there are display problems/artifacts is
to try different display resolutions and/or colour depth 16/24/32bpp.
Lowering the display refresh rate is also something that will free up
bandwith on the card an might allow the video overlay to work (better).
21. I get the error message: get_buffer(), shmget(): Invalid argument
The shared memory max size is set too low.
You should have something like this in your /etc/system file (sun solaris):
* Shared memory
set shmsys:shminfo_shmmax = 0x2000000
set shmsys:shminfo_shmmni = 0x1000
set shmsys:shminfo_shmseg = 0x100
OpenBSD users should look at the OpenBSD installation instructions.
22. libdvdcss error: css error: ioctl_ReadCopyright failed, make sure
DVD ioctls were compiled in.
If you have a 2.2.19 or any 2.4 Kernel you already have DVD ioctls, however
you need to read and write permission on the DVD drive's device node to be
able to use the DVD ioctls. Other things include, actualy have ing a DVD
drive. Having a DVD disc in the drive, not a CD-ROM. Using the correct
device node, do not try to open a .ifo or .vob file.
26. Dvd play back works fine, but is seems to take a long time to
start up (several minutes) what could be the problem?
or
When I start ogle it seems to just sit there reading the dvd and the video
never starts.
Please try upgrading to our patched version of libdvdcss (0.0.3-ogle3)
this should fix the problem, if it works. If it does not work then you will
have to go with the non-patched version and simply wait it out. Chances are
that if it does not work the region of your player is not set, or set
to another region than the DVD you are trying to play. There might be
a future version that caches the work so you'd only have to wait the
very fisrt time you play a specific DVD.
More detail: The non-patched version of libdvdcss must open all of the
titles on the disc at startup to generate the decryption keys for them.
The patched version requests them from the drive instead of figuring them
out from the contents of the files. If you are running on the non-patched
version it can take a very long time to read all the titles (the more titles
on the disc the longer it will take, but it also depends some on the content).
27. The video doesn't scale
You need Xv to be able to scale the video.
If 'xvinfo' says "no adaptors" you don't have Xv working.
See Question 20 for more info.
30. How do I stop the screensaver blanking the screen?
Builtin support is in progress but for now try setting these:
xset s off
xset -dpms
31. Playback is choppy. What can I do?
NOTE RedHat 8.0 (might apply to newer kernels in other RH versions also): In all their wisdom, the people at redhat decided
to turn off DMA for CD and DVD devices
in an even "more reliable" way than before.
To be able to turn on DMA _at all_ you have to add the following line in /etc/modules.conf :
options ide-cd dma=1
You can also download and compile your own kernel (not a redhat kernel) to
be able to turn on dma.
Keep reading to see what else you need to do to turn on dma.
end NOTE RedHat 8.0
NOTE SuSE 8.2
In some cases DMA defaults to off in SuSE 8.2 to enable DMA,
open Control Center, switch to Yast2-modules,
then to System and open the editor for /etc/sysconfig.
Under Hardware--IDE modify the option
DEVICES_FORCE_IDE_DMA, in my case for all 4 drives:
/dev/hda:on /dev/hdb:on /dev/hdc:on /dev/hdd:on
end NOTE SuSE 8.2
Check with
hdparm
(hdparm -d <device name>) if you have enabled DMA on the DVD drive.
hdparm -d 1 <device name> to turn dma on. The link above will explain
in more detail.
If you have a VIA chipset or have similar problems see FAQ 44 also.
If you have enabled DMA and it still is choppy and you have an nVidia card
see also FAQ 38.
If you have enabled DMA and it still is choppy or dma keeps turning off and you have a VIA chipset
(mostly amd users) try with hdparm -d 1 -X34 <device name> to use another dma mode.
NOTE: In redhat7.3 DMA is default OFF for cd/dvd drives
The official way to turn change this is to create a file named
/etc/sysconfig/harddiskhdc (the hdc at the end should be replaced with
the device name for you DVD). Use the contents of /etc/sysconfig/harddisks
as a template. The rc.sysinit script will apply the contents of
/etc/sysconfig/harddisks to hard drives only, but if it sees a file
for a specific drive, it will apply it to that drive even if it is not
a hard drive.
NOTE (ide-scsi): If you are using ide-scsi on a drive you must still use the ide device
node with hdparm to turn on/off dma. Example: you use ide-scsi on your dvd
drive that is /dev/hdc, it turns up as /dev/sr0, /dev/dvd should point to
/dev/sr0 but to turn on dma you should write 'hdparm -d 1 /dev/hdc'.
NOTE (devfs and ide-scsi): If you use devfs and ide-scsi you won't get any
/dev/hdc device to run hdparm on (if /dev/hdc is the dvd drive using ide-scsi).
Instead you need to use 'hdparm -d 1 /dev/ide/host0/bus1/target0/lun0/generic'.
NOTE: If you run debian, make sure you use the ogle-mmx package if you are running on x86.
Instructions for DMA on FreeBSD:
Under FreeBSD, try atacontrol(8)
As root,
# atacontrol list
ATA channel 0:
Master: ad0 ATA/ATAPI rev 6
Slave: acd0 ATA/ATAPI rev 5
ATA channel 1:
Master: ad2 ATA/ATAPI rev 5
Slave: ad3 ATA/ATAPI rev 4
* Since DVD drive is under channel 0. Let's check the modes under
that channel.
# atacontrol mode 0
Master = UDMA100
Slave = PIO3
* Let's see if dma is supported
# atacontrol cap 0 1 (the last number is 0 for master and 1 for slave)
ATA channel 0, Slave, device acd0:
ATA/ATAPI revision 5
device model TOSHIBA DVD-ROM SD-M1502
firmware revision 1012
cylinders 0
heads 0
sectors/track 0
lba supported
lba48 not supported
dma supported
overlap not supported
Feature Support Enable Value Vendor
write cache no no
read ahead no no
dma queued no no 0/00
SMART no no
microcode download no no
security no no
power management no no
advanced power management no no 0/00
automatic acoustic management no no 0/00 0/00
* Since it is supported, let's enable dma on DVD drive
# atacontrol mode 0 slave udma33
Master = UDMA100
Slave = UDMA33
* This example used udma33 but you should use whatever applies for
you
* If you add these lines to /boot/loader.conf it'll get set to DMA at boot
hw.ata.ata_dma="1"
hw.ata.atapi_dma="1"
32. How do I get sound to work in KDE with artsd?
If you want to launch ogle from within KDE (with artsd running),
you need to type 'artsdsp ogle'
33. There are strange horizontal lines in the image. Why?
This is not an error. The image is coded interlaced
and is usually used when transferring video to dvd. You can make it
look nicer by filtering (deinterlacing)
it. This is not currently implemented in Ogle.
35. Why are there black borders? / Why don't I get really fullscreen?
Normal-mode (not fullscreen)
What you see on screen is what is encoded on the DVD. No more, no less.
Fullscreen
If the aspect isn't wrong it's supposed to be that way. Ogle gives
you the max aspect of the image and sets the remaining parts to
black.
Making fullscreen really fullscreen would make John Goodman look
like a supermodel (Example stolen from a xinerama bug report). There
are other ways to do it like pan&scan but that
is not supported by Ogle.
36. I have a Trident CyberBlade and the image is wrong (wrong colors,
half the image is repeated)
There are known problems with the Xv drivers for these cards. Upgrading
to the latest XFree86 may or may not fix these problems.
Other reportes have indicated that changing colour depth, ie. 16bpp, 24bpp, 32bpp, might also fix the problems.
Here is a brife part from the man page for the trident XFree driver.
Option "XvHsync" "integer"
Override the default Horizontal-sync value for the
Xv extension. This is used to center the Xv image
on the screen. By default the values are assigned
based on the video card. Default: 0.
Option "XvVsync" "integer"
Override the default Vertical-sync value for the Xv
extension. This is used to center the Xv image on
the screen. By default the values are assigned
based on the video card. Default: 0. Option "XvB
skew" "integer" Override the default Bottom skew
value for the Xv extension. This is used to extend
the Xv image on the screen at the bottom. By
default the values are assigned based on the video
card. Default: 0.
Option "XvRskew" "integer"
Override the default Right skew value for the Xv
extension. This is used to extend the Xv image on
the screen at the right. By default the values are
assigned based on the video card. Default: 0.
Where I guess "XvHsync" is the one you want to change.
37. I get the following error right after I start:
libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x0000016f
libdvdcss error: ioctl_ReadTitleKey failed
The problem here is mostly that it fails requesting the key from the drive
(only works if the DVD drive and DVD disc have the same region) on RPC-II
drives. This means it has to crack the key instead.
Are these DVDs from another region then that of your DVD drive?
If yes this is a bug and we'd like to hear about it.
If no, Do you have, or are planing on getting, discs from different regions?
If not I belive you need to set the region. Get
dvd_region or some other tool that you can use to set the region.
(Ex. dvd_region -s -r 1 /dev/dvd).
The region is 1 for the US, 2 for Europe... if you live some other
place look at the back of you DVDs there should be a globe with a number
in it, that will be your region.
Otherwise you might want to explore any options of making you drive region
free (also called RPC-I).
38. I have an nVidia card and (a fast computer) the video jerks/judders/jumps forwards/backwards
There seems to be some problems with Xv and nVidia cards (GeForce...).
Setting the attribute XV_DOUBLE_BUFFER to 0 should make the video smooth.
You can use 'xvattr' to do this. xvattr is available for download
here.
39. Ogle gives a little glitch every second or so. I use SUSE 8.0 (or KDE in general).
If you have an application like KsCD running under KDE, it polls the device
for an Audio CD. This will case error messages to be logged and Ogle to
pause sligthly as the device/bus is queried. Closing the app should stop
both the errors and the glitches in Ogles playback.
40. I'm using Xv and I'd like to change contrast/brightness. Is that possible?
xvattr
will help you solve this. It works with most cards there are a few exceptions.
41. I'm using Solaris5.8/x86 (or Solaris 9/x86) and I have problems reading DVDs that are larger
than 4GB.
For Solaris8/x86 you need patch 109765-04 which is public.
For Solaris 9/x86 patch 117142-01 is now (2004-07-01) available.
(At the moment public only on sunsolve6.sun.com)
42. I get a weird error "BadAlloc" when Ogle tries to open a DVD, why?
X Error of failed request: BadAlloc (insufficient resources for operation)
Major opcode of failed request: 141 (XVideo)
Minor opcode of failed request: 19 ()
Serial number of failed request: 56
Current serial number in output stream: 56
It means that there is not enough graphics memory. Older laptops often
only have 2-3 megabytes of graphics memory. It might also be an issue
if you are using a high resolution or have direct rendering / 3D support
enabled that allocates memmory (for some cards/drivers).
There are two main ways to free up more memory: One is turn off the
pixmap cache, and the other is to reduce the resolution or colour
depth of your display. In order to do this, you have to edit your
configuration file (on my machine it is at /etc/X11/XF86Config-4), and
restart X Windows.
The following example shows what I did:
Section "Screen"
Identifier "Screen0"
Device "NeoMagic 256 (laptop/notebook)"
Monitor "Monitor0"
DefaultDepth 16
# uncomment line below to help reduce memory usage for DVD playing
# Option "XaaNoPixmapCache"
Subsection "Display"
Depth 16
# switch the lines below to reduce memory usage for DVD playing
Modes "1152x864" "1024x768" "800x600" "640x480"
# Modes "640x480"
EndSubsection
43. How to use S/PDIF output.
To get Ogle running with S/PDIF in Alsa there are three things to do.
For OSS support just skip directly to point 3.
For alsa on AC97 (Shuttle SS51G) see text after step 3.
- Change the Alsa device name from 'default' to 'iec958' in the oglerc.
(the S/PDIF device migth not be named iec958, you'll have to find out).
<alsa>
<name>iec958</name>
</alsa>
Some cards require additional parameters to do S/PDIF output. You migh
have to use a device like the following.
<alsa>
<name>iec958:AES0=0x2,AES1=0x82,AES2=0x0,AES3=0x2</name>
</alsa>
- Use a mixer app to enable the iec958 output.
For example the Gnome-ALSA Mixer.
- Change the channel_configs in the oglerc so the wanted
audio types are used.
<speakers>
<channel_config>
<chtype>AC3</chtype>
</channel_config>
<channel_config>
<chtype>DTS</chtype>
</channel_config>
<channel_config>
<chtype>MPEG</chtype>
</channel_config>
<channel_config>
<chtype>LPCM</chtype>
</channel_config>
</speakers>
These are the types of audio that can be sent over S/PDIF, add/keep
those that you want and you amplifier can handle.
Most amplifiers only do AC3 and LPCM, DTS and MPEG are a bit more uncommon.
From Dave Mullins:
1) SuSE 9.0 (which installs Alsa 0.9.6-66) correctly enables and operates
the S/PDIF output on the Shuttle SS51G system as well as the analog
outputs. No configuration is needed to get these outputs to work (SuSE 8.2
and lower did not do this successfully).
2) Simply install the required Ogle rpms for version 0.9.2 (see the
"Download" section on the Ogle web site).
3) Then change the steps in FAQ 43 as follows:
a) Step 1 -- do NOT change the Alsa device name. Leave it set to "default".
b) Step 2 -- not needed.
c) Step 3 -- Follow step 3 as described.
You will get digital output for 5.1 and DTS 5.1 sound from the S/PDIF
output and Surround sound from the analog outputs.
44. I have a VIA chipset (may apply to other chipsets also) and I get read errors or dma is reset, or other strange errors that prevents me from
playing dvd, both with and without using ide-scsi on Linux.
There seems to be problems with fast dma modes and VIA chipsets in linux.
Try using a slower dma mode 'hdparm -d 1 -X32 /dev/hd...' multiword dma instead of
using ultradma.
Chipset/kernel combinations that have been reported with problems,
which have been fixed by using a slower dma mode:
VIA KT333, linux-2.4.20, ASUS DVD-ROM E616, didn't work with -X66, worked with -X32
45. How do I play .IFO and .VOB files from harddisk?
Just open the directory where the IFO/VOB files are.
If your files are in /my/copied/dvd/VIDEO_TS/ use
ogle /my/copied/dvd/VIDEO_TS
or
ogle /my/copied/dvd
You must have both the IFO and VOB files, not just the VOB files.
X. My question wasn't answered above. I think I have found a bug.
Please make sure that you have the latest version of ogle, since
problems tend to get fixed as soon as they are reported :)
You might want to check the mailing list archives
Write down all possible information that you think we could
possibly need to solve the problem.
- version of Ogle
- graphics card
- distribution
- complete copy of the ogle output (ogle --debug >& ogle.log) (for versions prior to 0.9.0 don't use --debug)
- anything else you think could be relevant of use.
It's so much easier for us to filter the information than guessing what
you have.
Send all this in an email to ogle-user@lists.berlios.de. Please
use plain-text and not html.
You could also drop by on IRC. We usually idle on #ogle
irc.freenode.net (was irc.openprojects.net), our nicks are
hh (or hjort), bjorn, ^v and norpan.
|