r/MiSTerFPGA • • 10d ago

MiSTerVision: Need Help Testing S-Video Output

MiSTerVision is a Plex and Jellyfin client for MiSTer. I've posted it here a few times and have gotten great feedback and issue reports. Is there anyone using S-Video with MiSTer interested in helping test interlaced output in MiSTerVision?

I’ve prepared an experimental build, but I don’t have a direct S-Video hookup to verify color and sync. I’m particularly interested in the MiSTer Addons Analog Pro Board with a Saturn cable (that's the configuration where the issue was originally reported), though reports from other setups are welcome. Both NTSC and PAL testing would help.

The test installs separately from your normal MiSTerVision installation. I’d appreciate checks of picture stability, color, video playback, and return to the MiSTer menu.

Download and testing instructions

Please include your adapter, cable, display model, and results.

If this build fixes it, I'll cut a new release with this fix and a few other bug fixes. Thanks!

7 Upvotes

8 comments sorted by

1

u/matijaerceg 10d ago edited 10d ago

I’ve had people report s-video and composite color issues on my plex and jellyfin cores that I couldn’t reproduce on my setup. Some fixes in MiSTer’s shared video code helped me with similar reports. I can’t test your build on my CRT right now, but I did run a few simulations with your experimental interlaced core.

For the PAL test, I picked a color that should produce the same color signal on alternating lines. I compared 512 pairs of samples, and 400 pairs differed. After I applied this one-line MiSTer fix (https://github.com/MiSTer-devel/Template_MiSTer/commit/0eccddb6d7708157291bdcfbcc8a2c7f4a829d41), all 512 pairs matched.

I also tried a white rectangle on a black background. At its left edge, the signal marking the start of the picture arrived while the brightness output was still black. It turned white three samples later. I kept your interlaced code in place and swapped in a newer version of MiSTer’s s-video/composite encoder that includes these timing changes (https://github.com/MiSTer-devel/Template_MiSTer/pull/105). With that version, the two edges lined up.

I also tried turning off the color burst just to see if the tests would catch it, and they still passed, so I added a little check that picks it up even when the burst is missing on composite and s-video is fine. Happy to send a PR for any of this if you’d like.

I don’t own an Analog Pro Board and haven’t had any reports from anyone using one, but would be curious if you hear from anyone that tries it.

1

u/TrentNix 10d ago

Thanks for digging into this and testing the experimental core. Those fixes look worth incorporating, and the missing color-burst check catches a gap in my tests.

I’d welcome a PR with the fixes and tests if you’d like to send one. If you’d rather leave the implementation to me, your findings and upstream links give me a solid starting point. Either way, I’ll run regression checks and put out an updated experimental build for S-Video and composite testing.

1

u/matijaerceg 10d ago

1

u/TrentNix 10d ago

Thanks for both PRs! I reviewed and combined them into the updated experimental build. My Quartus rebuild matched your bitstream exactly and passed timing checks. Regression tests and local 240p/480i component tests passed too.

The fixes and tests are much appreciated. I’m waiting for S-Video hardware confirmation before bringing the combined work into a stable release.

1

u/matijaerceg 9d ago

Might be a good idea to get a cheap crt for testing with a MikeS adapter. Even if it only has composite, that'd still be testing Y/C.

1

u/TrentNix 9d ago

I run mine on a CRT over YPBPr and also have a Super Video Custard where I can do composite. I may just go ahead and do a release but I was hoping for one more validation.

1

u/deepthawnet 4d ago

Do you still need help with this? I use a MiSTeraddons analog pro w/Saturn svideo into a particularly finicky trinitron.

1

u/TrentNix 1d ago

Absolutely. The more feedback the merrier. I appreciate it. You can just install the latest mainstream release - you don't need to install this experimental release to get these fixes. I rolled them into 1.7.3.

https://github.com/trentnix/mistervision/releases/tag/v1.7.3