Matrox G100/G200/G400/G450/G550 driver for (open)BeOS
VCD/DVD video playback on TV: Quick setup for driver V0.14 or later.
Here's what you need to know:
- Get VLC 0.5.2 (or later). Use it for everything you've got: DVD,VCD, MPEG1, MPEG2 and other formats. Unless of course it does not work for you, then use whatever you like. As long as you can turn off the use of hardware overlay with it! (With Be's mediaplayer you can.)
- Get VideoScreen V6 from this site, and run it from the command line. You select the output format needed and leave the program alone. Please checkout the Selecting an output mode list below to see how to choose a mode.
- Start VLC from the command line. Use the option --nooverlay to disable use of overlay.
- Start the video of your choice. Dig up the VLC video output context menu and turn off Correct aspect ratio. There's one exception to this rule: if you'll watch on a 4:3 TVset without a widescreen mode. Keep it turned on then.
- If you are having CPU load trouble, you can also try to solve it by disabling Vertical sync for now.
- Set VLC to output it's video in fullscreen mode now, and don't bother about possibly wrong aspect output on your VGA screen for now.
- On your TVset, select widescreen mode for anamorphic recorded widescreen discs, zoom mode for non-anamorphic widescreen discs or 4:3 mode for anything else you are going to watch. Unless you cannot do that because you have an old 4:3 TVset. In this case you did not disable 'correct aspect ratio' as explained above and you don't need this mode switching on your TVset.
Selecting an output mode with VideoScreen V6:
- You have an old 4:3 TVset without widescreen mode:
- Use the Be ScreenPrefs Panel to select 16 or 32 bit colordepth, and your preferred refreshrate for the primary head.
- Now run the VideoScreen V6 command-line tool: all modes will keep the colordepth you specified, and the refreshrate you specified will be maintained for the primary head output. TVoutput will be 50 or 59.94Hz according to the TVstandard you will select.
- Select the VCD mode for your TVstandard for watching anything.
- You have an more recent 4:3 TVset with widescreen mode or a 16:9 TVset:
- Use the Be ScreenPrefs Panel to select 16 or 32 bit colordepth, and your preferred refreshrate for the primary head.
- Now run the VideoScreen V6 command-line tool: all modes will keep the colordepth you specified, and the refreshrate you specified will be maintained for the primary head output. TVoutput will be 50 or 59.94Hz according to the TVstandard you will select.
- Select the DVD mode for your TVstandard if you'll watch any DVD.
- Select the VCD mode for your TVstandard if you'll watch anything else.
Some answers to important questions you might have:
- Question: Why should I turn off use of hardware overlay?
Answer: The Matrox cards do not support hardware overlay on TVout for dualhead cards. If you don't turn off overlay, you'll get no video on TV.
- Question: Why this complicated stuff with those modes?
Answer: Apparantly the movie industry decided that a different recording aspect ratio should be used for DVD material than was used previously for VCD material. And of course, in the mean time 16:9 TVsets were introduced..
- Question: Why should I care about anamorpic recorded material?
Answer: Because if you display this correctly, you will enjoy upto 30% increased vertical resolution on 16:9 TVsets. This means a more sharp, crisp display on TV...
VCD/DVD video playback on TV: The whole story.
The Matrox driver supports the two existing special DVD resolutions:
- NTSC 720x480: used for region 1 (USA) and 2 (Japan) for instance;
- PAL 720x576: used for region 2 (Europe) and 4 (Australia) for instance.
It also supports the two special VCD/MPEG1 resolutions:
- NTSC 640x480: used for movies with 30 frames per second (or less) preferably coded in 320x240 resolution;
- PAL 768x576: used for movies with 25 frames per second (or less) preferably coded in 352x288 or 384x288 resolution.
You should preferably use these modes on the respective discs, as this will offer the sharpest output possible while keeping CPU-load to the bare minimum (if no 'hardware overlay' is used anyway). The reason for this is that in these disc/mode combinations the picture does not have to be rescaled to be shown in the correct aspect ratio. If you do not have a TVset that can display both PAL and NTSC you can use only the supported one. The tradeoff is that while the correct aspect ratio can still be maintained by resizing the output the sharpness will degrade and CPU-load will increase. To resize the output keep the 'keep aspect ratio' option turned off and just resize the output window te be 'full screen'.
Note please that displaying NTSC movies (30 frames/sec) on PAL modes (displayes only 25 full frames/sec) is not possible without distortions on TV.
Synchronized playback to the screen refresh: Sometimes you can also see broad horizontal ofsetted display 'bars'. Such a bar is a part of the framecontent but it's a little bit shifted horizontally (best seen also during rapid movement in a scene). This is something that occurs if a new frame is not inserted in the displayed framebuffer during screen retrace time (the screen is turned off then), but during actual display time. This should be prevented by the DVD player application (or so) by synchronizing to the vertical retrace moment. This works optimally only if the refreshrate of the screen matches (or is double) the refreshrate of the movie.
Because retrace synchronisation to the TVout signal is not yet implemented in the driver you will notice frequent distortions (horizontal stripes) in random places on the screen. The 'sync to retrace' option in VLC for instance works correctly, but will sync to the primary head retrace instead of to the TVout signal retrace. For TVout quality it does not matter if you enable or disable this feature for now.
The comb-effect and (de-) interlacing: Do not mix up the above effect with the 'comb' effect sometimes seen. This is the effect of mixing two fields (an even frame and a odd frame: de-interlacing) of a movie to get one complete image for display on VGA which is non-interlaced. This comb-effect looks like horizontal offset also, but this consists of very small horizontal 'bars' (only one 'line' in width). This effect can also be seen best during rapid movement in a scene. The process of filtering out this comb-effect is called 'motion compensation'. (With VLC you can enable this feature manually via the command line. By default it is turned off because it degrades output sharpness.)
One nice thing of sending the video output back to the TV-set is that the de-interlaced VGA output is re-interlaced again by the TVout chip. If playback is properly synchronized (to refreshrate and retrace) you can even turn off the de-interlacing process. On VGA this will look ugly, but on TV it will be perfectly OK... However, this feature is not yet implemented in VLC and the driver. For now use VLC's motion compensation for discs that exhibit this problem.
Color depth versus CPU load: You should use at least 16bit color depth for video playback. If you do this you might still encounter color artifacts though. For instance if you look at a clear blue sky while the sun is visible also, you will notice blue color 'circles' surrounding the sun. These are visible because if you look to the sky further away from the sun the sky gets darker very gradually. The human eye can detect more that 64 shades of a color which is the maximum displayed in this mode (16 bit is 5+6+5 bits for the base 'light' colors red, green and blue; 6 bits is 64 'stages').
In order to loose this visible effect you should select a higher color depth. If you choose 32bit color then 24bit color is delivered on the TVoutput (32bit color is actually 24bit color and 8 bit alpha). On TV the number of bits per color becomes 8 (8+8+8 = 24) so the maximum displayed number of shades per color becomes 256. This is just enough for the human eye not to notice this artifact.
Note that 32bit color means that twice as much video data has to be moved than in 16bit color, so CPU load will rise. So if your system is not fast enough to display movies in 32bit colordepth, you should try to use 16bit colordepth instead.
HINT: aspect ratio: The 'keep aspect ratio' switch should only be turned on in two situations:
- You want to view a DVD using a standard (so 4:3) desktop resolution on TV and/or VGA, so in 640x480, 768x576 (used for PAL MPEG1/VCD only), 800x600 or 1024x768 (for VGA only) mode. In this case the screen aspect ratio (pixel-wise) is different from the recorded aspect ratio (pixel-wise). If you do not 'translate' the recorded aspect ratio to the displayed aspect ratio then you will notice distorted shapes (A full-moon will not be round for example).
- You want to view a 'anamorphic wide screen' DVD on a 4:3 TV-set that does not have a 'widescreen' mode, or on VGA. Luckily the TV-set situation does not apply very often: These 'very old' TV-sets (older than say 10-12 years) are 'nearing distinction'. On 'modern' 4:3 sets you turn on the 'widescreen' mode which does the aspect ratio 'translation' for you (it adds horizontal black bars on the top and bottom of the screen), while 16:9 TV's can be set to the 'widescreen' mode also. In this case the picture is 'broadened' to match the size of the TV screen which also is a form of aspect ratio 'translation'. These forms of aspect ratio 'translation' do not increase the CPU load of course and on 16:9 TV's also increase the resolution considerably!
HINT: TVout flickerfilter: The flickerfilter in the TVout chip was invented because of the fact that human eyes are more sensitive to low refreshrates on static pictures than on moving pictures. Because on TV everything moves all the time, you will (almost) not detect the low refreshrate used there. If you display the computer desktop on TV however you will detect this. Thus a flickerfilter is used. This filter cuts off the sharp edges from the displayed image by combining a few displayed lines to generate one line. For the human eye this looks more attractive apparantly than the flickering effect.
If you want to display a movie 'generated' on a computer, then you should turn off this filter as the picture sharpness will increase while you will (almost) not detect the flickering anyway (moving pictures)...
Note that enabling/disabling the filter is automatically done with the mode you choose within the Matrox driver.
Definition of the 'anamorpic wide screen' format: This format is used for widescreen DVD's only, like 16:9, 21:9 or 22:9 movies. If you record widescreen movies just 'as they are' you will always have these horizontal black bars on the top and bottom of the screen. This is a waste of the MPEG2 standard. Also it is a waste of the analog (TV) video standards, as these black bars have to be 'transmitted' even though it carries no real information. If you stretch the 16:9 format movies vertically (the 21:9 and 22:9 also using the same 'scaling factor'), you will put this unused space/capacity to use.
Of course, on 4:3 TV's you will have to shrink the movie again (add the black bars manually: widescreen mode) to get the correct aspect ratio on screen. You will loose the added 'resolution' because the movie will be displayed on the same amount of horizontal TV-'lines' as it would if the extra lines were not used. But, if you have a 16:9 TV, you only need to stretch the picture horizontally (to fill up the entire screen at the left and right side) to restore the correct aspect ratio. This means that the extra 'resolution' will actually be displayed on TV! This picture quality improvement (up to around 30%) is surely visible to the user...
Anamorphic widescreen recorded DVD's are sometimes labeled with the 'anamorphic widescreen' text on the box. Luckily most widescreen movies (as far as I know) that do not have that label are in fact also recorded in this format...
Just one more thing here: As far as I have seen until now TV-broadcasts do not (yet) use this anamorpic widescreen format (they could do this technically speaking!). So if you sometimes feel that DVD's can be sharper than actual broadcasts on TV, you are right!
Playback of 4:3 discs and non-anamorphic discs on any TV and/or on VGA:
If you play 4:3 aspect ratio discs or other aspect ratio discs that are not recorded in the 'anamorphic wide screen' format you will be able to correctly display them on any TV (4:3 or 16:9) while enjoying optimal sharpness. You need to turn off the 'keep aspect ratio' option in the player software and display the ouput window in 'full screen' mode in the special DVD resolutions (720x480 or 720x576).
Playback of anamorpic wide screen discs on 16:9 (or modern 4:3) TV-sets:
In this case you should keep the 'keep aspect ratio' option disabled. Use the TV's 'widescreen' mode instead to correct the aspect ratio. Be sure to use the special DVD resolutions. These settings offers the sharpest DVD experience possible if viewed on a 16:9 TV! Note that on VGA you will get distorted output however (i.e. the full moon is not round..).
Playback of anamorphic wide screen discs on old 4:3 TVs:
Now you should enable the 'keep aspect ratio' option and select NTSC 640x480 or PAL 768x576 MPEG1/VCD TVout mode. Of course the playback quality and the CPU load are not optimal now...
If you would still use the special DVD resolutions you would get the wrong aspect ratio (a 16:9 movie for example would get a height of 405 pixels instead of the needed 432 for PAL or 360 for NTSC). Note once again that on VGA you will get distorted output then also (i.e. the full moon is not round..).
(Universal) playback of DVD's on VGA only.
Now you always should keep the 'keep aspect ratio' option enabled and view the discs in 1024x768 resolution. The DVD application should resize the output window (default size) to scale-up the output so that the horizontal 'resolution' is corrected to match the vertical resolution of the disc for the aspect ratio that is required (for PAL 16:9 this would be 1024x576, for NTSC 16:9 853x480). If your monitor doesn't support 1024x768 then 800x600 should be selected, and the DVD application should scale down the vertical 'resolution' to match the horizontal resolution for the required aspect ratio. In this case a 16:9 movie for example requires a 720x405 output window for both PAL and NTSC discs.
Scaling down gives a less sharp image than scaling up, but uses probably less CPU cycles to create it. One problem you will always have is that if you want 'fullscreen' output (maximize the output window) extra rescaling is required which will eat up CPU cycles (unless you use hardware overlay) and decay the image sharpness.
Rudolf.
(Page last updated on December 6, 2003)