Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Direct Video no longer syncs to my CRT with latest version 20220517 #605

Closed
chr0m opened this issue May 18, 2022 · 17 comments
Closed

Direct Video no longer syncs to my CRT with latest version 20220517 #605

chr0m opened this issue May 18, 2022 · 17 comments

Comments

@chr0m
Copy link

chr0m commented May 18, 2022

I updated to 20220517 and my CRT no longer syncs via direct video

It works if I go back to the previous version 20220511

@paulb-nl
Copy link
Contributor

@sorgelig It works with Pixel repetition set to b00 Auto instead of b10. I guess the Directvideo resolution of the Menu core is too low (640x240) for the HDMI chip so it needs the repetition.

Main_MiSTer/video.cpp

Lines 957 to 958 in a37231a

0x3B, 0b01000000, // Pixel repetition [6:5] b00 AUTO. [4:3] b00 x1 mult of input clock. [2:1] b00 x1 pixel rep to send to HDMI Rx.
// Pixel repetition set to manual to avoid VIC auto detection as defined in ADV7513 Programming Guide

@wickerwaka
Copy link
Contributor

Good catch. Minimum HDMI dot clock is 25Mhz.

@sorgelig
Copy link
Member

interesting, as all cores (at least i've tweaked for direct video) use video clock >25MHz.

@sorgelig
Copy link
Member

Thanks for finding it out!

@chr0m
Copy link
Author

chr0m commented May 19, 2022

Thanks for figuring this out!

Happy to test if someone wants to shoot me a binary

@birdybro
Copy link
Member

birdybro commented May 19, 2022

https://github.com/MiSTer-unstable-nightlies/Main_MiSTer/releases/download/unstable-builds/MiSTer_unstable_20220518_20ff6d

Rename the MiSTer file in the root of your sdcard (or if over network like samba/ftp, then in /media/fat) to something else, copy this over and rename it to MiSTer. Wait 10 seconds, then reboot.

@chr0m
Copy link
Author

chr0m commented May 19, 2022

@birdybro Thanks. It works!

@chr0m chr0m closed this as completed May 19, 2022
@paulb-nl
Copy link
Contributor

I suggest to enable Pixel repetition with Directvideo in the Menu core only because the pixel repetition is the reason why Vsync must be aligned to HSync start with Directvideo & composite_sync=1.

There are some cores which don't work with Directvideo and composite sync such as Atari ST(just fixed), Tatung Einstein, Armstrad, Coco3. These cores all work fine with Directvideo if pixel repetition is disabled.

Changing these cores to align Vsync to HSync is sometimes difficult because some can output interlaced and it takes time. So it seems better to fix it in here in Main.

@misteraddons
Copy link
Contributor

misteraddons commented May 22, 2022 via email

@paulb-nl
Copy link
Contributor

Do you mean on the analog output? The Sync 480i to HDMI is to prevent the scaler with vsync_adjust=2 to lose sync during 240p/480i transitions. It should not be enabled if you use the analog output.

@birdybro
Copy link
Member

Exactly, maybe that's the source of this users problem. But it should only effect 480i video.

@misteraddons
Copy link
Contributor

misteraddons commented May 22, 2022 via email

@chr0m
Copy link
Author

chr0m commented May 23, 2022

The Sync 480i to HDMI is to prevent the scaler with vsync_adjust=2 to lose sync during 240p/480i transitions. It should not be enabled if you use the analog output.

Hmmm, if I don't enable it PSX doesn't sync for me

Check out the FMV on Tekken 3, and Gran Turismo 1 and 2. Sync is broken without the “sync 480i to HDMI” option.

Yep, that's what I get

@paulb-nl
Copy link
Contributor

You should create an issue in the PSX repo for that. I am seeing the same behavior with a Ugreen DAC but not with another one. The PSX core also has some crazy sync issues with Directvideo in general if I connect the DACs to a HDMI splitter which works fine with all other cores.

@chr0m
Copy link
Author

chr0m commented May 23, 2022

You should create an issue in the PSX repo for that. I am seeing the same behavior with a Ugreen DAC but not with another one. The PSX core also has some crazy sync issues with Directvideo in general if I connect the DACs to a HDMI splitter which works fine with all other cores.

Which ugreen one? I have both :) I got one and it had issues with some other cores. Mainly the Atari consoles and Commodore 16. I got a different ugreen and it seems perfect on every core. The Tendak seemed to work on everything except PSX (with or without the 480i HDMI sync) It didn't seem to like 480i at all. I tried it in the Genesis 240p test suite.

I have a HDMI to VGA cable where PSX breaks when I plug it into a splitter, but strangely plugging it into the splitter fixes bouncing image issues I had on some other cores :)

My perfect combo now is https://www.ugreen.com/products/hdmi-to-vga-adapter-with-audio-jack?_pos=3&_sid=f2e327390&_ss=r combined with https://etim.net.au/shop/shop.php?crn=220&rn=582&action=show_detail

It still requires "Sync 480i for HDMI" on for Tekken 3 FMV though

All of the other HDMI to VGA adapters I tried had issues with at least one core

@misteraddons
Copy link
Contributor

misteraddons commented May 23, 2022 via email

@birdybro
Copy link
Member

The only direct video issue I'm aware of that is the fault of the core and not the template/Main is with the SMS core's border issue --> MiSTer-devel/SMS_MiSTer#120

So yes, the Main_MiSTer or Template_MiSTer repos are the appropriate places to raise issues regarding direct video not working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

6 participants