-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Output 240p (instead of 480i) on composite RCA #683
Comments
I'm afraid this has been asked before and it is not supported. There is, a bit (PROG_SCAN) in VEC CONFIG2 register which potentially is useful, but when I asked about it:
So I'm afraid there isn't a simple fix for this. It may or may not be possible to make this work, but it's very low priority so I can't promise anything. |
Thanks a lot for the reply! Wasn't expecting a quick fix. I'll just keep hoping someday it will be possible. |
I'll keep hoping too. Thanks! |
I did find a way to output 240p over RGB. More info here: In short you can use a Gert VGA and connect it to a Ultimate Scart Adapter. |
@starquake I'm aware of this, thank you. But It would be useful also to output in 240p via Composite. |
Been researching this for the past 3-4 months, went with composite 480i in the end, flickering garbage. I don't feel very tempted to buy a product (UMSA) that has "Just make sure that your PC outputs VGA lower resolution with 15Khz" in the description.. So I'm really hoping this is gonna work at some point! |
+1 240p over component would be very important for retro gaming. Edit: I mean composite. |
I'm very interested in this feature as well. (ex: http://celso.io/2012/12/17/connecting-a-raspberry-pi-to-an-old-15khz-arcade-monitor.html) I'm mainly buying the Raspberry Pi to make custom arcade machines and DOSBox arcades. Something I've seen on the PSP Go that I found interesting was the way they used the headphone jack, it's very close-packed and I could see something similar on the Pi. |
I've almost achieved it, getting a cheap HDMI->VGA adapter (Powered, important!), and a VGA -> RCA converter i had for my arcade cabinet (it does not produce 240p/15khz however, but it looks a lot sharper), and setting up the resolution to be 240p via hdmi_mode. Getting an UMSA would be the last step, but i'm not really feeling like buying a €30 gizmo as said earlier. Some countries have stores with cheaper cables but i'm not that lucky to have those. In a few years, maybe someone will have hacked the firmware on this 👌 also, did these kind of threads get attention recently from somewhere? |
@jimbothegigolo The Raspberry PI 2 and later also has a headphone jack that also can output composite when using the right cable. Unfortunately it doesn't output 240p and that's exactly what this request is all about. |
BTW Arcadeforge is working on this: And there's also this: |
@starquake i've seen that, looks promising! However, that means no GPIO pins left for non-controller use push buttons sadly. |
@starquake I am aware of that, but composite over 480i isn't exactly ideal, if not eye gouging. There's also the Gert VGA666 if you're willing to settle for VGA. You might be able to convert it to SCART too with a Ultimate SCART Adapter (also from Arcadeforge) |
@MrBrax @keilmillerjr @jimbothegigolo excuse me but the original request is different. Indeed is yet possible to easily get a 240p by HDMI > VGA > SCART or GPIO (VGA 666) > SCART. The original request is instead for 240p on Composite out (not component) that should allow to get a video mode faithful to some old retro-gaming consoles like NES or Genesis (that had a composite out). A kind of sdtv_mode=3 option would be great. |
@antiriad yes, it would be amazing to do it via composite, but due to the firmware, it doesn't really sound possible. Perhaps in a future hardware revision? |
@MrBrax yes, but @popcornmix gave a small glimmer of hope. I want to believe! ;D |
The console also looks great on 240p. You'll only get something like 80x25 characters, maybe even less but the picture is sharp and stable. |
I agree. That's exactly what I described when creating this issue.
Yep that's what I said in another post and it's pretty much what I'm using. Don't want to be annoying but you might want to read up on my other posts. |
@antiriad I meant composite. I would have thought that had been an obvious error. I know what I meant to type, but the two words are closely spelled and are both nouns for a type of analogue video transmission. |
I've been researching this for a long time now and it blows my mind there is apparently no good solution. Here's the deal: (1) Arcade 15KHz CRTs with RGB/SCART are no longer manufactured and are rare and expensive. (2) NTSC/PAL CRT TV's are also no longer manufactured, but they are cheap and plentiful at thrift stores (Goodwill in the U.S., for example) and they typically have composite and S-Video inputs. (3) Current solutions involve daisy-chaining multiple sketchy adapters; we need something more elegant. (4) HDMI is the most common modern video output format. Conclusion: In the interest of classic gaming preservation, if you do the math, what we need for maximum usefulness to the most number of people is an adapter to take an HDMI video signal and convert it to 240p/288p signal over both composite and S-Video. This will allow anyone with a RPi/PC/laptop/etc. and $10 CRT TV to run classic games exactly as they were intended to look. I say we find a communication hub (Discord/Quip/Facebook/whatever) and start planning a Kickstarter to design and fabricate this active adapter using completely open specifications. Who's with me? I started a Discord server for the idea if anyone wants to take the discussion there: https://discord.gg/zqUdBn6 |
I was able to get pretty close with an off the shelf HDMI to Component cable. This is outputting true 240p. I just have a vertical sync issue. https://www.youtube.com/watch?v=VLBHWZV1dZ4 I know it's not composite, but I thought it might interest someone. |
@starquake That seems like the best way to do it, as RGB SCART is a multi-purpose connector rather than a signal itself. At bottom, getting 240p composite directly from the RPi is impossible unless you're willing to spend a few bucks. The confusion arises from the ''RGB'' part of RGB SCART. People assume that SCART and RGB are the same thing, but there are cheap SCART cables out there and they only out composite. |
@tekn0x - I've seen that video and think it may be an illusion based on the vertical scrolling of the video output. I noticed in certain TG16 games on my RPi on a CRT TV that when the background was scrolling at a speed matching the refresh rate that it created what looked like perfect scan lines. I could be wrong, but if the output were stabilized the scanlines might go away. @starquake - Apparently Pi2SCART is still taking pre-orders. Is it open-spec? I don't see anything about that. There are HDMI to SCART converters, but no idea if they'll keep vsync and do 240p when daisy chained to an SCART to S-Video adapter. I've been researching this for a while and everything I've found is a mess within a mess to infinity and beyond. |
I think Pi2SCART will make an end to at least a part of the mess. The spec of GERT VGA is open. And you there's lot of schematics to find on how to convert VGA to RGBHV. Pi2SCART is just a solution with everything rolled into one. For now I think the GERT VGA 666 + Ultimate SCART is the best solution. |
I have a test firmware here: |
@popcornmix How would i "install" this? |
popcornmix: It's such a huge improvement running this monitor over 240p. No more flickering, just beautiful stable scanlines. Everything seemed to be solid for the few minutes I played around with it. The only thing I noticed was that my picture was noticeably warped and slightly titled near the edges of the screen. It could just be my TV, since it's opened up right now, but I didn't notice it when I was running 480i. Could be an issue with the sync over composite... not sure. I'll have to do a better comparison with 240p vs. 480i on the set tomorrow. (There was also a high-pitched whine from the speakers, but I'm guess that's just because the TV's guts are exposed right now) I still plan on moving to 15kHz 240p VGA -> RGB once I get the parts I need, but having a 240p composite hookup is just so convenient and will please a lot of retro gamers! Thanks again for your hard work! MrBrax: |
@popcornmix awesome! |
@popcornmix @antiriad 240p composite works with my Raspberry Pi 1 B and 2. |
Thank you @Henrito !!! Can't wait to test it with Lakka! |
@Regulations it should be as simple as looking at the crt. If the image flickers like it does when you play a dvd on that same screen, it's interlaced, if the image is dead stable, like you'd get on a NES, then you have a progressive image. Look it up on youtube, it's not hard at all to tell. |
Is there a way to make the 240p behave a little differently? |
There are some things that consoles did to minimize artifacts such as rainbowing in Sega Genesis/MD games, but I don't believe it's possible to reproduce those strategies in the firmware because they depend on the exact timing of the console in question. |
@jayare5 which filter are you using, sir? |
@oguzcantasci @hizzlekizzle Again, thanks so much @popcornmix !!!!!! |
Hey guys, I need some help with my Pi3. Trying to output in 240p through the RCA to my NTSC CRT. I'm using Retropie. I updated to the latest firmware, added sdtv_mode=16 to the config file, but the TV is still outputting interlaced. Tried mode 0,1,2,18 and even tried to switch to PAL and somehow its not working, when I typed tvservice -s, it tells me its outputting in NTSC 4:3 720x480 60hz interlaced despite the changes in config file. I tried tvservice -c "NTSC 4:3 P" and it gives me a black screen. |
@Clive75 You say you added a line, but there already should be one IIRC. Does it have 2 lines now? If so, remove one. |
I dont think there was one. https://gist.github.com/Clive75/ba425fff946893603a0fe511341de3e6 EDIT: I fixed it. I removed the spaces from "sdtv_mode = 16" to "sdtv_mode=16" and it worked. Finally no more flickering! Thanks Starquake! |
@Clive75 Did you update manually or used the rpi-update? |
@ultraover You did see it was fixed, right? |
@starquake yo, as a matter of fact, i was reading your post at libretro #73 i will be honest here, I asked that question because i am really confused about implementations and updates involving the rpi-update. Take issue #811 for instance, i have no ideia if I can get changes discussed there using the rpi-update instead of downloading the files popcornmix linked to. Now, being more specific: i am running batocera linux 5.9 and trying to make 240p over composite. The question is: will rpi-update give me what it takes to enable "new" sdtv_modes? I am new to the community and to the whole pi3 scene, so bear with me for a while :) |
@ultraover I used rpi-update. Lost a few hours because of some spaces but lesson learned. |
@Clive75 thanks! |
So i can output 240p on a sony wega crt just using Clive75 configs and the the 3.5mm jack of the Pi3? over my composite AV? no need for adaptors? thanks to all :) |
Is there a way to change the resolution while the machine is running or to set up a script to reboot the machine in a different resolution based on what's launched? |
@HellTazer Yes |
@jayare5 We'll just have to use the costlier GPIO-based output hats. |
@hizzlekizzle Huh! So that's possible for 240p? |
Thanks for all the effort, especially to @popcornmix. Is there a way to enable the firmware fix on a PAL system? I get it to work in black and white/NTSC, but when I set sdtv_mode=2, the pcture begins to scroll continuously from top to bottom (otherwise it looks fine). I'm on a CRT monitor. |
Hey @KoolKiller, maybe check out this issue Support for PAL60 in config.txt/sdtv_mode sdtv_mode=2 will get you standard interlaced pal 720x576p output. |
@manekinekodesu, thanks for the tip! Sadly, sdtv_mode=18 doesn't fix it in connection with sdtv_progressive_scan=1. I assume that it works fine on NTSC. Has anybody successfully tested it on a PAL CRT monitor? I'm on a Commodore 1084S, if that helps. |
I'm using PAL CRT TV. And pal50 progressive mode works just fine (sdtv_mode=18 or sdtv_mode=0x12). |
The composite pin on my pi zero is not responding ..... was working fine before ....and now its like pin is dummy ... i tried all possible ways to make it work ... the problem is now i want to change the default TV out pin config ... any idea |
@starquake @alessioscand @MrBrax @jimbothegigolo @kevinfishburne @tekn0x @KoolKiller @danieljg @danmons @hizzlekizzle Hey, are you guys still interested in this? Check this out, we've made a Lakka branch specifically for the Composite output of Raspberry Pi, with updated RetroArch + cores! |
@jayare5 Thank you for the composite output release of Lakka!!!! |
We've made important updates for PAL TVs! If anyone was having trouble getting a progressive signal, you should redownload from that same article and please read the changes made to the "PAL users" section for instructions. |
Is this still possible with Pi 4 in 2024? Which version of Raspberry OS should I be using? |
I use my Raspberry Pi to emulate old computers/consoles. A common trick with these systems is the output of 240p. Examples are: ZX Spectrum, Nintendo Entertainment System, Commodore 64. It would be great if I could connect my CRT monitor to it. Right now it only outputs 480i which is interlaced and flickers a lot. 240p removes this flicker and also adds scanlines which make it look more authentic.
More info: http://scanlines.hazard-city.de/
Is it possible to get 240p out of the composite port of the Raspberry PI? Or is there more to it than a change in the firmware?
I think you would make a lot of people even happier than they already are about classic gaming/computing on the Raspberry Pi!
The text was updated successfully, but these errors were encountered: