Shop OBEX P1 Docs P2 Docs Learn Events
PAL/NTSC/Interlaced/Non-interlaced Composite/Component driver - Page 2 — Parallax Forums

PAL/NTSC/Interlaced/Non-interlaced Composite/Component driver

2»

Comments

  • potatoheadpotatohead Posts: 10,261
    edited 2013-04-28 20:55
    Here are all three files, modified to add component video option NTSC or PAL. (Attached) I'm removing the duplicate file above.

    On my analog displays, having video data in the first few scans seems to cause display trouble, but only on some analog devices. My old high resolution CRT is fine. The 80's era CRT is crappy. My newer component analog TV is almost fine. I won't be able to run this on an HDTV tonight, but maybe one of you can.

    I think it will display just fine. IMHO, older analog TV's aren't expecting to see anything in that early part of the frame and it's messing with their AGC circuit, but that's just a guess.

    The tiger displays great, as do a couple of the low intensity ones. IMHO, this driver is great, and if it's to be used with analog displays, some "safe area" is still needed from what I can tell.

    Check out the hood effect on the car, and texture on Superman! Composite mangles those a little. Lots of little details pop on the component display. :)

    ***I tried editing some of the images to put a black strip up top to figure out where the boundary is. They didn't process correctly after that. Is there a trick here? I just quickly used MSPAINT, and yeah I know better.
  • SapiehaSapieha Posts: 2,964
    edited 2013-04-28 21:19
    Hi potatohead.

    Thanks
  • potatoheadpotatohead Posts: 10,261
    edited 2013-04-28 21:30
    Well, thank Jim. He's knocked it out of the park with the SDRAM driver! All I did was add a little here and there to make the component option available.

    **While testing these for component, I love that we can keep data in the machine, and even in the SDRAM for a period of time. My experience is a few seconds with the SDRAM before it starts to degrade. Most of the image is still there, just with some speckles in it after that. Once the big load is done, one can just fire off the slideshow.spin file over and over. At first, I thought this a negative feature, but honestly it's a great feature given the larger sets of data we are going to be working with.

    @Sapieha: Does your PAL TV demonstrate some image shift at the top of the screen on either component or composite?

    Actually, if you run it NTSC, does it do any of that in monochrome?
  • SapiehaSapieha Posts: 2,964
    edited 2013-04-28 21:40
    Hi potatohead.


    "@Sapieha: Does your PAL TV demonstrate some image shift at the top of the screen on either component or composite?

    Actually, if you run it NTSC, does it do any of that in monochrome? "

    Will made tomorrow one PIC - so You can see how it looks Both in PAL and NTSC
  • BaggersBaggers Posts: 3,019
    edited 2013-04-29 02:16
    Hi potatohead, I'm having trouble with the component syncing it's juddering, I'll try a few other monitors, to see if it's just this monitor that doesn't like it.

    Cheers,
    Jim.
  • potatoheadpotatohead Posts: 10,261
    edited 2013-04-29 09:10
    I am seeing tearing at the top on both composite and component on some displays too. It is only the full frame images. Weird.
  • cgraceycgracey Posts: 14,206
    edited 2013-04-29 10:28
    Wow! I've never seen such sharp pictures via NTSC composite before. These are amazing! The interlacing really delivers the details.

    I'm getting the tearing, too, though, and I'm looking at the video signal on my scope now. The tearing may be caused by there being only 5-5-5 vertical serration pulses, which is PAL signalling. NTSC specifies 6-6-6. If that were to be fixed, it might get rid of the tearing. The signal seems very stable, in any case, so it must be the vertical pulses that are causing the tearing. My Agilent scope has an NTSC mode and it gets confused when trying to show lines by number, because it's not getting the expected vertical pulses. When I put it into PAL mode, though, it can make sense of the signal.

    Here is a drawing of NTSC signalling:

    ntsc.gif


    Once the signalling is being done correctly, there won't be any issues with particular monitors.
    1000 x 482 - 20K
  • BaggersBaggers Posts: 3,019
    edited 2013-04-29 10:48
    Thanks Chip, glad you like it, amazing the picture clarity isn't it! :D

    Thanks for the NTSC timings, I'll get on it this evening :)
  • potatoheadpotatohead Posts: 10,261
    edited 2013-04-29 10:53
    I ran them on a big screen component CRT, lights off, contrast, etc... all set just right. Beautiful.

    Thanks for looking Chip. Ha! So we have a hybrid driver at the moment. If that's all it is, sweet.
  • cgraceycgracey Posts: 14,206
    edited 2013-04-29 10:57
    Baggers wrote: »
    Thanks Chip, glad you like it, amazing the picture clarity isn't it! :D

    Thanks for the NTSC timings, I'll get on it this evening :)

    I tried to change it myself, already, but I got the frames out of sync when I changed the constants. You will be much better at straightening this out.

    And, yes, the clarity is like nothing I've seen before, not even from gaming consoles. It might be because they blur their output, intentionally, to minimize the harsh flicker that high-contrast interlacing produces. Wait... that's not it. They all use progressive scan to avoid the flicker, altogether, at the expense of half the vertical resolution. I really like the detail, though. It has to be seen to be believed. It's like HDTV.
  • BaggersBaggers Posts: 3,019
    edited 2013-04-29 11:03
    I know, when I saw the first image I did at full interlaced res, it was an OMG moment! haha I thought WOW! it looks better than a DVD :)

    I'll fix it in a bit, as we're about to have tea :D
  • potatoheadpotatohead Posts: 10,261
    edited 2013-04-29 11:07
    Seriously. Do they filter those outputs electrically, in addition to the software? Nothing in my house can do that. It really looks good!
  • potatoheadpotatohead Posts: 10,261
    edited 2013-04-29 11:20
    Correction, one other device would do that: A PS2 running component looks very similar. That thing also had a great signal, but it had a crappy optical disk. I've since ditched it and moved on, but it's the only thing I've seen close.
  • ColeyColey Posts: 1,110
    edited 2013-04-29 11:54
    cgracey wrote: »
    Wow! I've never seen such sharp pictures via NTSC composite before. These are amazing!...........

    Hi praise indeed and it's the same (if not better) for PAL :cool:

    When Jim first showed me this I had that same Wow! moment, I've tried this on all of my monitors and TV's and it's first class on all of them.
    If the real silicon performs as well as this (and I'm sure it will) you will have a sure fire hit on your hands.

    We already have plans in place for a product or two so fingers crossed the shuttle run is a success too.

    Coley.
  • cgraceycgracey Posts: 14,206
    edited 2013-04-29 12:46
    Coley wrote: »
    Hi praise indeed and it's the same (if not better) for PAL :cool:

    When Jim first showed me this I had that same Wow! moment, I've tried this on all of my monitors and TV's and it's first class on all of them.
    If the real silicon performs as well as this (and I'm sure it will) you will have a sure fire hit on your hands.

    We already have plans in place for a product or two so fingers crossed the shuttle run is a success too.

    Coley.

    If the real silicon works, it will be better than this, as the DACs will be monotonic (these FPGA R-2R implementations are not that great). Also, the silicon DACs will be 75-ohm, whereas these FPGA DACs are 47-ohm, so they are outputting in a much more limited span than the chip's DACs will be, in order to get 1V into a 75-ohm load.

    I'm quite sure that the reason this video looks so good is because of the interlacing and the absence of MPEG compression. If, for some magical reason, it IS the Prop2, that's all the better.
  • BaggersBaggers Posts: 3,019
    edited 2013-04-29 15:17
    Hi Chip, ( and all )

    Can you give the new driver a try for NTSC timing?

    It's the TV_SDRAM_Driver.spin in the first post.

    Cheers,
    Jim.
  • potatoheadpotatohead Posts: 10,261
    edited 2013-04-29 15:23
    Yep. I'll report back in a bit.
  • BaggersBaggers Posts: 3,019
    edited 2013-04-29 15:34
    Thanks potatohead ;)
  • cgraceycgracey Posts: 14,206
    edited 2013-04-29 16:28
    Baggers wrote: »
    Hi Chip, ( and all )

    Can you give the new driver a try for NTSC timing?

    It's the TV_SDRAM_Driver.spin in the first post.

    Cheers,
    Jim.

    I'm still getting tearing at the top. The vertical pulses are correct now, but I see some minor timing differences between the display lines and serration pulses, but not seemingly enough to cause such tearing. Still looking...
  • cgraceycgracey Posts: 14,206
    edited 2013-04-29 16:30
    Baggers wrote: »
    Hi Chip, ( and all )

    Can you give the new driver a try for NTSC timing?

    It's the TV_SDRAM_Driver.spin in the first post.

    Cheers,
    Jim.

    Ah, there's only 5 trailing serration pulses on one the fields - so we're getting a whole half line of tearing.
  • BaggersBaggers Posts: 3,019
    edited 2013-04-29 16:33
    Cheers, for the feedback, I will try again tomorrow, going to bed now ;)
  • cgraceycgracey Posts: 14,206
    edited 2013-04-29 16:43
    Baggers wrote: »
    Cheers, for the feedback, I will try again tomorrow, going to bed now ;)

    I see that there needs to be half a line of rest after the last short serration pulse on one of the fields, instead of a new scan line starting right away.
  • BaggersBaggers Posts: 3,019
    edited 2013-04-30 02:02
    What I did was ( assuming it would be blank ) let it do a normal blank scan line.
  • cgraceycgracey Posts: 14,206
    edited 2013-04-30 07:09
    Baggers wrote: »
    What I did was ( assuming it would be blank ) let it do a normal blank scan line.

    I made the vertical sync sections look they should last night, but there was still tearing. I'm not sure what the trouble is. I suspect that some timing/sequence might have gotten dragged from the original PAL implementation into the NTSC. As I recall, PAL was difficult to implement and had some timing nuances that were absent from NTSC. I'll play with it more today.
  • potatoheadpotatohead Posts: 10,261
    edited 2013-04-30 11:02
    I have time this evening. If it is not fixed by then, can you and or Jim post up a wip driver?

    One thing I noticed was the first image is a partial frame, and it displays fine. It is the full frame ones that tear. I'm wondering whether or not the HSYNC isn't a bit wonky.

    @Baggers: I have had no luck generating or editing images. Would be nice to know what the trouble is, but all I need is a simple monochrome image of a intensity ramp, or maybe two. One going from black at top to white at bottom, and the other going from white at top to black at bottom, both full frame.

    Or let me know what I can use to make images. :).
  • ColeyColey Posts: 1,110
    edited 2013-04-30 13:42
    potatohead wrote: »
    I have time this evening. If it is not fixed by then, can you and or Jim post up a wip driver?

    One thing I noticed was the first image is a partial frame, and it displays fine. It is the full frame ones that tear. I'm wondering whether or not the HSYNC isn't a bit wonky.

    @Baggers: I have had no luck generating or editing images. Would be nice to know what the trouble is, but all I need is a simple monochrome image of a intensity ramp, or maybe two. One going from black at top to white at bottom, and the other going from white at top to black at bottom, both full frame.

    Or let me know what I can use to make images. :).

    Doug,

    I'm not certain this is what you want but hopefully it's somewhere near.

    Gradients.rar

    To make an image .bin file, first create the image (I used photoshop) as 720x576 resolution, then expand the canvas size (to the right of the image) to 768x576 and save as 32 Bit BMP.

    Then you convert the .bmp file to .bin using:- p2prep filename.bmp filename.bin -b32

    hope that helps....

    Coley
  • potatoheadpotatohead Posts: 10,261
    edited 2013-04-30 14:15
    Thanks. Perfect!
  • Mike_GTNMike_GTN Posts: 106
    edited 2013-05-03 19:29
    Hi Baggers,

    Youtube video looks amazing. Do you have any sense of Dot crawl or any other nasty artifacts on a PAL signal. Have you had a chance to view this on a analogue composite in device yet? This could be the device... Think what asking someone to do is put this signal in to a Sony PVM or similar that is not expecting a hacked around NTSC signal that a standard TV will sort out internally. We seem to think is a straight PAL signal. Sorry to be always so difficult.

    Thank-you

    Mike.
  • BaggersBaggers Posts: 3,019
    edited 2013-05-04 03:06
    Hi Mike_GTN, long time no see on the forum, hope you are good and well :D

    This driver is not a hacked NTSC to get PAL, this driver was written primarily as PAL, with PAL timings, my daughter is going out today, so I will be able to have a look at it on her tv and let you know.

    Cheers,
    Jim.
Sign In or Register to comment.