-
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
Support for progressive PAL60 in config.txt/sdtv_mode #811
Comments
So with your display do you get no picture when using NTSC output? I'm not an expert on composite TV out and I'm certain if the hardware can handle this. |
Wikipedia's actually a pretty good resource for this: https://en.wikipedia.org/wiki/PAL |
I get black and white picture, both with NTSC and Brazilian PAL-M. Yes, PAL60 has NTSC resolution and framerate, but with the PAL colour carrier frequency.
|
Yes, I was using wikipedia. |
That's more or less the definition of PAL (Phase Alternating Lines) -- the R-Y chrominance signal alternates phase between lines. If there's an NTSC/PAL switch, it should cover this, I think. |
@manekinekodesu could you give this firmware a test: Basically for PAL 60 I'm using normal PAL settings, but have changed resolution/framerate to NTSC. |
Tested this on 2 pal crts(one of them supports ntsc signal over composite in but colors look off quite a bit). |
How can you tell colours are NTSC format? Any different with https://drive.google.com/uc?id=0B-6zmEDJwxZEVmhhWjNOZGRPWHc&export=download ? |
Can you try: https://drive.google.com/uc?id=0B-6zmEDJwxZENTd3bWZsMktLME0&export=download I notice that PAL has a horizontal front porch of 20 and NTSC has 14. |
Great. I'm not sure how defined NTSC 50 is, so it's hard to say if the TV doesn't support it or we are generating the wrong thing. I've tried progressive in addition to PAL 60 and get a rolling display - is that what you see? |
@popcornmix How do I try progressive in addition to PAL 60? In sdtv_mode=18 I get PAL 50 and rolling display (slowly rolls downward) In sdtv_mode=0x20 NTSC 50 picture is static and has vertical offset (see photo above). It's not rolling |
You add 0x10 for progressive and 0x20 for "alt mode" (i.e. flip PAL/NTSC resolution/framerate). So: |
Ok, I've connected my rpi 3 to TV tuner card and recorded some test videos, hope they will be of some help to you: Then I've set "vertical synchronization = Free running mode (disable tracking)": So this display rolling has to do something with vertical sync. I could not find Pal 60 modeline, but here is a bunch of other useful modelines http://www.geocities.ws/podernixie/htpc/modes-en.html. I don't know if they are of any help though. What's interesting, in your second firmware, normal progressive modes 0x10-0x12 are also broken: |
Yes, I think I spotted the "slow roll" issue with progressive mode and fixed it. Try: |
I've tried to use 0x22 mode recently and noticed that it runs a bit slower 59.5 (causing sound crackling ) instead of 60.00 like 0x00 mode. Then I've tried 0x20 mode which runs faster than 0x02 mode, 50.35 instead of 50.00 and it's also offset from the top a little so the bottom gets cut and warped to the top. Maybe something else needs to be swapped, like sync pulse width for example. The 0x22 mode can be sped up to 59.94 - 60.00 by decreasing sync pulse width and horizontal front & back porches or maybe increasing dot clock frequency. Also:
|
Hi @popcornmix , @manekinekodesu . I just got into this thread looking also for PAL 60hz. Amazing work you're doing here!!! Really, really needed to get things running smoothly on a SD TV here in PAL areas... Got the latest firmware and tried 0x22. And as @manekinekodesu posted, all good but some flashing on some aras of the screen, depending on the intensity and contrast of colors. Could it be just luminance is being updated oddly? With 0x32 got the same lack of V sync. Both modes (PAL 60 480i / 240p) would be such a great addition. Actually, on the Gamecube & Dreamcast era it was quite common to get games that asked you if your monitor supported PAL 60 and, in case they did, they'd do the switch in order to run 'as intended'. Tested all on my Sony KX14CP1 CRT, - a very good one I must say - That accepts both PAL and true NTSC signals. If there's anything I can test or help you in any other way, please let me know! |
@popcornmix Taken a quick look at the code but difficult to tell what has been changed and/or added to master branch related to this issue Any status update on this? |
@popcornmix I have a good 15" composite monitor JVC TM-H150C and RPi3b, with firmware downloaded from this thread posted May 25 it works in PAL60 mode but only in mode 0x22 (interlaced) and flickers alot, but in mode 0x32 (progressive) gets out of sync. Monitor's OSD says "PAL", tvservice -s says PAL 60Hz and NTSC (720x480) resolution and picture size and proportions are the same as NTSC original mode. This mode is quite better than original NTSC because a much less color artifacts but more compatible for retrogaming than standard PAL 50Hz (in cga/ega games used color dithering in NTSC modes monitor shows gradient colors but OK in PAL50 and PAL60Hz, but in PAL50 too much spacing in top and bottom and flickering as it's only 50Hz). Also at PAL_M modes with this firmware it shows currupted picture, with original latest firmware it shows correct in luma but rainbow colors and monitor recognized it as NTSC. |
I'm trying to set CVBS output to PAL-N (south america): 625 lines, 576 active lines, 50Hz, 3.58205625 MHz color carrier. I can't find any documentation. |
@pietch no, PAL-N is not supported. |
@popcornmix I am using a Raspberry Pi 3B+ and I have a PAL crt television. I tried your firmware zip file and set the sdtv_mode=0x22. After applying all that, when I power my Pi on, I see a rainbow screen(which is normal), but also a thunderbolt icon, telling me that it's not receiving enough power and therefore it stays on that screen and I'm unable to get into emulationstation. Luckily I made a backup of my firmware files so I could go back, then managed to get into emulationstation. But I want to have PAL60 and not PAL50. Your firmware files aren't compatible with my Rapberry Pi 3B+. So is there any way to get PAL60 on a Pi 3B+? I would appreciate your help!!! Oh and I'm using the official Raspberry Pi power supply --> 5.1V 2.5A |
I'm in the same situation as Shaum257, I have a CRT which will run 60hz but can't display the NTSC colours, I would be very happy if the PAL 60hz modes could be added to the PI3b+. That would make that TV very useful when right now I can't use it for much at all... Well of course I could buy a 3b.. but I have the 3b+ |
@popcornmix excuse me if I write here but issue #683 is closed, and maybe this is somehow related. In sdtv_mode=16 (composite out) retrogames with a resolution of 320x240 (or 320x224) are blurry: ok, that's probably because, I suppose, RPi is outputting 720x480. It seems that this does not happen in PAL mode, is this normal? thank you! |
I'm not sure this thread is still being bumped? in any case I'm still very interested in PAL 60 video modes :) on the 3b+ :). @antiriad PAL always has less colour distortion compared to NTSC over composite, that is normal. Is it possible to somehow run the PAL colour system at 60hz 240p? that would be amazing :) |
Sorry to bother @6by9 , Has the pal-n support been released?, I couldn't find anything related on the firmware commits :/ |
It was merged to the firmware source repo on 2nd Sept, so any release after that should include it. I had tagged it against this issue, but copying that through to the release commit is a manual task. |
It's supported as a standard preset within the VEC, but there was no way of selecting it. The 2 bits for SDTV mode in enum SDTV_MODE_T were fully utilised, so add it as a modifier in one of the higher bits if PAL is selected. raspberrypi/firmware#811
Hi guys, I'm a little lost with all the informations here. Is PAL 60hz supported/merged in latest firmwares releases and if so, what is the sdtv mode for it? Is it 0x22 ? I'm asking because it seems I get progressive output, but I'm still locked to 50hz in retroarch and such. Thanks in advance, |
Hello) So what i need to do for emulators in retropie works at 60Hz at PAL tv on the raspberry Pi4? |
The issue is still open as it hasn't been solved. There is no firmware that gives working progressive PAL 60. |
Ooh, it's sad (( |
If anyone is still interested, I've written a little utility for tweaking the VEC registers from user space: https://github.com/kFYatek/tweakvec Configuring the firmware and OS for NTSC and then running I tested the utility, but only with modern equipment, I don't have any actual CRTs on hand. |
Interesting. I'm curious to hear if this works for others. |
I ran through the options and they seemed to all give an image on my (digital) TV connected through composite. |
Yeah, it works! @kFYatek thank You! It would be even better if include this updates with next firmware revision. |
Nice to see this working with actual CRTs! You're welcome :) The amount of cross-colour artifacts on that Hitron when set to PAL-M sure is nasty ;) I don't think there's anything wrong with the signal, though. |
Just found the NTSC443 works maybe even better - it, as PAL60, hasn't std NTSC color artifacts too, but looks a bit crispier. But JVC doesn't support i correctly, only Sony (autodetects) and Hitron (manually selected) does. |
Ran retropie (sdtv mode=0 in config.txt) through composite to crt-tv, then exit from emulationstation, write: "sudo ./tweakvec.py --preset PAL60"
|
Your command prompt is probably not in the directory in which you downloaded Or if you put
PAL60 and NTSC443 are likely to look sharper than regular NTSC or PAL-M on displays that support those. Colour subcarrier frequency is higher (~4.43 MHz vs. ~3.58 MHz), so finer detail can be reproduced without interfering with the colour signal. BTW, does any of your monitors support SECAM? That mode isn't too useful, as PAL pretty much always gives superior quality. I'm also pretty sure it works, but it would be nice to have it confirmed with an actual CRT as well. Unfortunately SECAM only works for 576i/288p (so with regular European PAL as a starting point). Just some additional technical info for @popcornmix or other firmware devs, if you decide to include these modes in the firmware. It's all in the code on Github, but just for quick reference:
Now for the non-standard (as in, never used in broadcast) modes - NTSC443 and PAL60 are based on regular NTSC and PAL-M modes, respectively, but additionally set the |
Yeah, that's about what I expected. I know that SECAM has little practical use if you have any other option, but it's nice to see it working on a proper vintage CRT :) |
@kFYatek It's awesome that you've written this great utility to achieve PAL60.
|
Try:
|
not again : cdmod +x tweakvec.py |
Sorry - typo in command now corrected. It is |
ok, now get after command entering: Errno 13] Permission denied: ' /dev/mem' |
@shaum257 I just updated the README in the repository (and some typos in messages in the actual application, but with no functional changes), it now includes more information and a quick start guide for RetroPie. In short - in case of your config, you need to:
@Iga44 Try adding Also, as much as I appreciate your interest, and the fact that even @popcornmix is helping me out with responding to people's questions about my tool - I don't want to overstay my welcome in this thread. I posted my tool here largely as a PoC to show that this can be done and how. If you have any further questions about it - especially regarding installation and usage, and not the encoder settings themselves - I believe a more appropriate place would be tweakvec's own issues page - just to keep this thread focused on support for PAL60 in the firmware itself. |
@kFYatek it's work!!! |
Congratulations I getting this working guys, very useful for some
…On Sat, Jan 26, 2019 at 7:27 AM shaum257 ***@***.***> wrote:
@JamesH65 <https://github.com/JamesH65> I tried the updated version of
your firmware and it flickers from the top. Could you re-upload the very
first start_x.elf firmware file which you uploaded 2 days ago, as it was
that one which worked perfectly for me. The thing is that I accidentally
deleted your first version of start_x.elf firmware file.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#811 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AmdGQNZbMn_LOa0lwSvDTvUKQCIakXHCks5vG2jFgaJpZM4Nh6dl>
.
|
I use my Raspberry Pi 3 to emulate consoles. And my crt tv only supports PAL/PAL60 modes. Most games were not/badly optimized for PAL 50 Hz mode. And PAL60 can be used to play NTSC content full screen and full speed, as it was meant to be played.
The text was updated successfully, but these errors were encountered: