psxdev / OrbisEyeCam

PlayStation Camera library to work with Windows 10
57 stars 18 forks source link

Dark Video Output on PS5 Camera #10

Open BunnyTub opened 1 year ago

BunnyTub commented 1 year ago

I tried everything at this point. The only time the output wasn't dark, I chose the AUTO exposure and turned it on. However, it never saves my settings properly and goes dim again after I close OBS Studio.

Help?

Lightbass commented 1 year ago

firmware_discord_and_gamma_fix.zip Try this firmware. I used hex editor for this.

BunnyTub commented 1 year ago

Thank you so much!

PavlikBender commented 5 months ago

firmware_discord_and_gamma_fix.zip Try this firmware. I used hex editor for this.

OH MY GOD! It worked for my PS5 camera! It's was 2 years of pain! Thank you! Can you explain how did you fix firmware? I want to change default "Gain" value

n0806 commented 3 months ago

I did everything according to the instructions, connected it to usb3.0, but it still doesn't work

brcd1 commented 2 months ago

I did everything according to the instructions, connected it to usb3.0, but it still doesn't work

delete original "firmware.bin" and rename file "firmware_discord_and_gamma_fix.bin" to "firmware.bin". After all, run "OrbisEyeCameraFirmwareLoader".

dkvcode commented 2 months ago

firmware_discord_and_gamma_fix.zip Try this firmware. I used hex editor for this.

OH MY GOD! It worked for my PS5 camera! It's was 2 years of pain! Thank you! Can you explain how did you fix firmware? I want to change default "Gain" value

I did some "research" by comparing the original firmware and the fixed one and found some additional useful UVC parameter offsets that could tweaked: Gain, Sharpness, Saturation, Contrast

Keep in mind that I didn't disassemble or decompile the firmware, didn't even try to reconstruct the structure, but just did a quick trial and error "research" at my own risk.

UVC parameters in the fixed firmware: 010403 - Autoexposure (04 original, 02 fixed) 010407 - I don't know what this is, I see no difference in the UVC parameters or in the image itself (04 original, 02 fixed)

Here are my findings: 0103BB - Gain (04 -> 00 to prevent overxposure) 01034F - Sharpness (04 -> 00 to prevent oversharping) 01032B - Saturation (04 -> 03 as I prefer more neutral image to compensate quite bad skin tones) 0102E3 - Contrast (04 -> 02 for better dynamic range)

You can use HxD or any other hex editor to tweak these. I guess it's quite possible to make the loader be able to apply these tweaks on a fly according to command line arguments, but I didn't look into the code yet. Maybe here is someone willing to do it :)

PavlikBender commented 2 months ago

You can use HxD or any other hex editor to tweak these. I guess it's quite possible to make the loader be able to apply these tweaks on a fly according to command line arguments, but I didn't look into the code yet. Maybe here is someone willing to do it :)

DAAMN! Thank you! I've took my time and wrote simple tweaker, that modifies parameters in firmware.bin https://github.com/PavlikBender/PS5CameraTweaker