PS2 DVD Player modifications

Discussion in 'Sony Programming and Development' started by krHACKen, Jan 26, 2013.

  1. krHACKen

    krHACKen Enthusiastic Member

    Joined:
    Oct 24, 2012
    Messages:
    571
    Likes Received:
    376
    Okay gentlemen. Thank you very much for testing and reporting.
    New executables in Pastie 10914345

    It's an attempt at reproducing the way the console originally outputs the video (basing on the YPbPr/RGB setting, system config), + the green screen fix for the RGB output of course.
    - Normally you should get the video in 480i and 480p using a component cable, with your system configuration set to Y Cb/Pb Cr/Pr.
    - When using a SCART cable, set your system configuration to RGB, otherwise you'll get a green screen, like OSDSYS does (the green screen fix will only work if you set the output to RGB).

    Edit : @sp193 @l_oliveira , since the Asian set of PS2s has the X button assigned to select and O to return (yeah, I've just read what SP193 posted @ PSX-Scene about the SCPH-90006), is the Japanese PS2 the only system that does O=OK X=NOK ? What about the mainland China ones ? Perhaps I should rename my ASIAN.ELF as JPN.ELF next time lol.
     
    Last edited: Jul 21, 2016
    Jolek likes this.
  2. Jolek

    Jolek Spirited Member

    Joined:
    Jan 18, 2016
    Messages:
    120
    Likes Received:
    165
    @krHACKen I don't want to upset you, but now:
    With SCART cable, when I set Y Cb/Pb Cr/Pr, I have Green Screen in menu\games\DVD-Videos.
    When I set to RGB, I have colors in menu\games\DVD-Videos,
    so new modification works (No green screen).

    With component cable, I have a picture in movies (480\576i).
    I can set Progressive to ON. I also have a picture in movies (480p),
    so new modification also works with this cable.
    Did you expect such a results? :)
     
    krHACKen likes this.
  3. krHACKen

    krHACKen Enthusiastic Member

    Joined:
    Oct 24, 2012
    Messages:
    571
    Likes Received:
    376
    Haha, thanks. Glad it works.
    By the way, if I set the config to RGB, turn progressive scan ON, and plug my component cable... I get the video ! But apparently it lacks the green color lol. That is something I didn't expect. I don't know if the unmodified DVD player does the same.

    Oh, and I tried the progressive scan in my "incompatible" console. And found that it does more than freezing/crashing. It also turns the analog controls off or de-inits the pads O_O :

    The hell $ONY ? I will try more consoles with the CXD2934GB later, to determine whether it's a matter of GS model or not.

    Edit : And D@tel, you suck at haxing :troll: .
     
    Last edited: Jul 21, 2016
    AlGollan84 and Vedita BR like this.
  4. Jolek

    Jolek Spirited Member

    Joined:
    Jan 18, 2016
    Messages:
    120
    Likes Received:
    165
    Yea, with this setting (RGB+480p) i have "pink screen" with component cable.
    [​IMG]

    Without MC, 480p + RGB, i have color (normal) image in movies with component cable.
    Of course when I put PAL movie (576i), i have no image (when RGB is set instead of Y Cb/Pb Cr/Pr).
     
    krHACKen likes this.
  5. smf

    smf mamedev

    Joined:
    Apr 14, 2005
    Messages:
    1,255
    Likes Received:
    88
    When using a component cable the green is calculated from the luminance and the red difference and blue difference. The luminance was calculated from the red/green and blue, the red difference was calculated from the luminance and the red and the blue difference was calculated from the luminance and the blue. Making it relatively simple to calculate the red/green and blue.

    If you have the output incorrectly set to rgb then the luminance will be taken from the green value, the red difference will come from the red and the blue difference will come from the blue. Because this luminance wasn't calculated from the red/green and blue, then trying to recover the green is going to give the wrong value. It's likely that it just works out by chance that the kinds of colours the game is outputting that the red and blue look sort of correct, but there is never any green.
     
    Last edited: Jul 21, 2016
    pool7 and krHACKen like this.
  6. sp193

    sp193 Site Soldier

    Joined:
    Mar 28, 2012
    Messages:
    2,217
    Likes Received:
    1,052
    I get similar behaviour, whenever the IOP crashes.

    Please don't quote me on this, but I think that Korea has it set like Japan's. I never had a ROM from a Korean PS2 console, but my PSP-3005 had circle as the select button.

    I have totally no idea what the Taiwanese model has for the select button, sorry.

    The SCPH-50009 (the one and only mainland Chinese model) has circle as the select button.
     
    AKuHAK, pool7 and krHACKen like this.
  7. Lum

    Lum Officer at Arms

    Joined:
    Sep 30, 2010
    Messages:
    3,233
    Likes Received:
    42
    When PS2 or PS3 are set to RGB mode, the video resolution affects its output format.

    RGB at 240p/288p/480i/576i uses sync on composite video.
    RGB at 480p (and greater I believe) uses sync on green.

    This is why both consoles are officially incompatible with standard RGBHV VGA monitors.

    Personally I suggest avoiding the headache by using component when available. The sync stays intact, progressive scan or not, and DVD movies will always have color.
     
    Last edited: Jul 21, 2016
    pool7 and krHACKen like this.
  8. krHACKen

    krHACKen Enthusiastic Member

    Joined:
    Oct 24, 2012
    Messages:
    571
    Likes Received:
    376
    Thank y'all for your replies and the SoG vs. SoC explanations. Very much appreciated.
    New 3.11J_PROGRESSIVE_TEST3.RAR in Pastie 10926373

    The parameters for each video output type should be correct now. I tried the two KELFs and here are the results :

    With RGB set and a SCART cable :
    - Progressive Scan off gives a correct picture (no more green screen)
    - Progressive Scan on gives no signal

    With RGB set and a component cable :
    - Progressive Scan off gives no signal
    - Progressive Scan on gives a correct picture (no more pinky colours)

    With Y Cb/Pb Cr/Pr set and a component cable :
    - Progressive Scan off gives a correct picture
    - Progressive Scan on gives a correct picture

    With Y Cb/Pb Cr/Pr set and a SCART cable :
    - Progressive Scan off gives a green screen (setting the system config to RGB is required in order to get a correct SoC signal)
    - Progressive Scan on gives no signal

    Let me know if you find differences between 3.11J_PROGRESSIVE_TEST3 and the original DVD player.
     
    Last edited: Aug 1, 2016
    AlGollan84, l_oliveira, pool7 and 2 others like this.
  9. Jolek

    Jolek Spirited Member

    Joined:
    Jan 18, 2016
    Messages:
    120
    Likes Received:
    165
    I've made the same tests as you and the results are identical.
    This is the only difference i've notice ;) so far.
     
    krHACKen likes this.
  10. sp193

    sp193 Site Soldier

    Joined:
    Mar 28, 2012
    Messages:
    2,217
    Likes Received:
    1,052
    Congratulations on getting it to work!

    If you don't mind me asking, how does the DVD Player determine if the console can support progressive scanning or not?
     
    krHACKen likes this.
  11. Vedita BR

    Vedita BR Rising Member

    Joined:
    Aug 28, 2015
    Messages:
    70
    Likes Received:
    32
    works perfectly! Now, there is away to skip FBI ads ("this operation cannot be performed on his disc")?

    I've seem people with a DVD Player icon on HDD, i wonder if it is possible to install the DVD Player on a Hard Drive.
     
    Last edited: Jul 22, 2016
    krHACKen and AlGollan84 like this.
  12. smf

    smf mamedev

    Joined:
    Apr 14, 2005
    Messages:
    1,255
    Likes Received:
    88
    I agree. To save hassle you should the following consoles should use these cables:

    PS1: RGB Scart
    PS2: Component
    PS3: HDMI

    (for Wii you should also use component, which meant I had to pick up a switchbox)

    I'm not near my ps2 right now, but with the latest version do you need an RGB/composite/S-video cable to turn the option on? I'd have thought the option should only be shown if you have a component cable.
     
    Last edited: Jul 22, 2016
  13. Lum

    Lum Officer at Arms

    Joined:
    Sep 30, 2010
    Messages:
    3,233
    Likes Received:
    42
    I suppose the chances of anyone watching movies on a sync on green monitor really are that low. Yet who am I to judge something like that?
    Still the progressive option in RGB is important for VGA mods.
     
  14. smf

    smf mamedev

    Joined:
    Apr 14, 2005
    Messages:
    1,255
    Likes Received:
    88
    I'm not sure how practical it is really to use VGA on a PS2. AFAICT this dvd player mod won't work anyway as it forces component mode if you enable progressive. I still hold out hope for a vga adapter that can line double 15khz modes and convert the composite/sync on green to h/v sync. But that is mainly for installing the official Linux kit, I can't think of any reason otherwise.
     
  15. Lum

    Lum Officer at Arms

    Joined:
    Sep 30, 2010
    Messages:
    3,233
    Likes Received:
    42
    As long as there's a technical issue I've missed. It doesn't make sense to deliberately have the mod force component mode for progressive.
     
  16. Vedita BR

    Vedita BR Rising Member

    Joined:
    Aug 28, 2015
    Messages:
    70
    Likes Received:
    32
    On PS2 User manual says the console will automatically change to Y Cb/Pb Cr/Pr on a DVD Movie is played.
     
  17. l_oliveira

    l_oliveira Officer at Arms

    Joined:
    Nov 24, 2007
    Messages:
    3,879
    Likes Received:
    245
    It queries DVP/Mechacon version (To check if DVP is CXD3098x) and checks model ID string on EEPROM (because SCPH-3900x have CXD3098x, it has to blacklist SCPH-3900x as only 50k or newer were supposed to work) to determine if the feature is supposed to display or not on the menu.

    That's how it's supposed to work but KHN had disabled part of the video init code on the original hack (so RGB mode isn't blocked out), which disturbed that behavior.
     
    krHACKen and sp193 like this.
  18. krHACKen

    krHACKen Enthusiastic Member

    Joined:
    Oct 24, 2012
    Messages:
    571
    Likes Received:
    376
    What l_oliveira said. Basically I had to hardcode a console model string and patch the code which makes the progressive scan option invisible when the detected DVP version is too old.

    Hmm, I'm almost sure it's not possible without patching the IFOs of the DVD. Will try to see if that can be done on the fly as soon as I can.

    It is. But not with the 3.11, since it loads its resource files only from the MC (when booted from mc0 or mc1) or from the root of a USB drive (when booted from anywhere else).
    You'll need a stand alone KELF, like the 3.04 ones I've just posted in the Pastie 10917564
    And AKuHAKs' HDL_dump to write the bootable partition info/icons to your HDD. Losing 128MB just for an app is not cool though. I vaguely remember that the HDD OSD has run paths for the DVD Player, CD Player and PS1 Driver updates......
     
    sp193 likes this.
  19. l_oliveira

    l_oliveira Officer at Arms

    Joined:
    Nov 24, 2007
    Messages:
    3,879
    Likes Received:
    245
    Vedita BR, FYI PSX DVD player loads from HDD, too (but then, officially hehe)...
     
    krHACKen likes this.
  20. Kensou

    Kensou Active Member

    Joined:
    Apr 11, 2012
    Messages:
    27
    Likes Received:
    1
    I have a sync on green VGA monitor which I've used to play games on RGB 31 Khz. I've tested it by changing the output setting to RGB then running a progressive scan compatible game. I use a PS2 component cable then use the RCA leads with a coupler to a VGA-RCA cable. I'll test it out, but you gotta wait out for me a few days because I have backpain and it's a CRT monitor that's kinda heavy to move around.

    Thanks very much for this contribution again.
     
    Last edited: Jul 26, 2016
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page