Can Anyone Share a Digitized NTSC and PAL Stream File at 27MHz?

  • Thread starter Thread starter chroot
  • Start date Start date
  • Tags Tags
    Software
Click For Summary

Discussion Overview

The discussion revolves around the decoding of digitized NTSC signals, specifically focusing on software solutions for producing images from such signals. Participants explore technical aspects, challenges, and potential methods for handling NTSC and PAL streams, including sampling rates and color decoding techniques.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Exploratory

Main Points Raised

  • Warren inquires about open-source software for decoding NTSC signals and specifies a digitized signal sampled at 14.31818MHz.
  • Some participants question the purpose of decoding and the availability of suitable digitizers for such tasks.
  • Warren clarifies that the decoding is for a demonstration and discusses the adequacy of the sampling rate for extracting chroma information.
  • There are mentions of using FFT for color decoding, with some participants expressing skepticism about achieving real-time processing.
  • Warren shares that he wrote his own code based on the book "Video Demystified" and later implemented it on an FPGA due to data transfer limitations with PCs.
  • Bill expresses interest in decoding a single video frame and seeks practical advice on processing the color burst and timing accuracy.
  • Warren suggests fitting a sine wave to the color burst using a least-mean-square technique and discusses the significance of the first sample of the burst.
  • Bill acknowledges his understanding of deriving black and white images and seeks insights on adding color to the images.
  • Warren advises that fitting should be done frequently enough to avoid drift but not necessarily on every line.
  • Prag79 requests digitized NTSC and PAL stream files sampled at around 27MHz, indicating a need for practical resources.

Areas of Agreement / Disagreement

Participants express varying levels of understanding and approaches to the problem, with some agreeing on the technical challenges while others propose different methods or express skepticism about certain techniques. The discussion remains unresolved regarding the best approach to decoding color from NTSC signals.

Contextual Notes

Participants mention limitations related to data transfer rates and the complexity of color decoding, indicating that practical implementation may vary based on hardware capabilities and software solutions.

Who May Find This Useful

Individuals interested in video signal processing, particularly those working with NTSC and PAL formats, as well as software developers looking for insights into decoding techniques.

chroot
Staff Emeritus
Science Advisor
Gold Member
Messages
10,270
Reaction score
45
Does anyone know of any (open-source) software that can decode a digitized NTSC signal?

- Warren
 
Engineering news on Phys.org
All sorts of stuff out there.
What kind of source do you have and what do you want to do with it.
 
Imagine that I have a digitized NTSC signal, sampled at 14.31818MHz @ 8-bit, stored in a file on my disk. I want to be able to produce images from it for display.

- Warren
 
>14.31818MHz @ 8-bit

Maybe a better question would be -- WHY do you want to do that?
And where do you plan to get a digitizer that CAN do that?

If you actually have such a thing then black & white rendering would just be a few lines of code. NTSC color would require a FFT and I don't think you could get real time out of that.
Finding color capable source code would be most unlikely.

Normal video capture cards use a PLL to extract color. Then digitize the result at somewhere between 2 to 4 Mhz using 3 channels.
 
It's for a demonstration, actually.

14.31818 MHz is very slow by today's ADC standards. Many ADCs are running at or beyond a gigahertz. 14.31818 MHz is, in fact, a standard sampling rate for NTSC, giving about 4 points per cycle on the color burst, enough to extract reasonably accurate chroma.

An FFT is no problem. I would venture that I can easily get real-time on a GHz+ PC.

I was only wondering if source already existed -- if it does not, I have no problem writing my own.

- Warren
 
Last edited:
>Many ADCs are running at or beyond a gigahertz.

I took a quick look. Seems you are right.
Are you designing the hardware?

How fast can you do 1024 points with that FFT?
Roughly the number of points you have per line.
Might not be the best way to do this anyway.
Try hunting up info on comb filters. That might help.
 
I know this thread is pretty old, but I happen to have a similar need. Did anyone ever find software to perform this function. Thanks in advance.
 
TimeStamp,

I ended up writing the code myself in C, based largely on information from the book Video Demystified. It ran very competently on a GHz+ PC, but I ended up reimplementing it on an FPGA, because it became very difficult to get >10 MB/s of data into a PC in the first place. Don't believe for a second that 480 Mbit/s USB 2.0 can really achieve 480 Mbit/s into RAM. :wink:

I regret that I cannot give you the source code, as my company owns it, but most of what you'd need is in the Video Demystified book. Note that chroma decoding requires only a digital PLL and a mixer -- no FFT is required.

- Warren
 
Hi Chroot,

Thanks for replying to an old thread. What I was originally looking for was a single video frame decoder - no continuous high speed on-the-fly execution required. I have software in place now that reconstructs an interlaced video frame from a simple digitizer and creates a black and white bitmap image (luma only). I know only the basic concepts involved for NTSC and have found numerous places on the net discussing quadrature and chroma :confused: . I have actually seen the Video Demystified book but most of it was over my head - being mostly a software guy.

I respect your wish to not release source code (DARN!), but if you could hint at some kind of functional procedure, it would really be greatly appreciated. If not, that is repected also.

Thanks,
Bill
 
  • #10
If you have the Video Demystified book, everything you could possibly need to understand the NTSC signal is in there. The appropriate digital decoding circuitry (which you could emulate in software) is also right there, laid out in block diagrams.

What are the requirements of your application? Do you need to decode color (chroma)? A black-and-white decoder is probably just a couple days' worth of work, if you understand the signal thoroughly. A color decoder is, in my estimation, about five times as difficult.

- Warren
 
  • #11
As I said, I was successful with deriving a blank and white image from the video signal and have a good understanding of all the H/V line components and their timing and functionality. My next task is to add color to the image. I am familar with implementing digital filters in the frequency domain via FFTs and iFFTs - I was just looking for some insight from someone that has been down this road once before. For example, how should the color burst be processed and how stringent is the need to accurately locate the first sample of the burst and/or the active region of the line? Mainly just practical problems that I should be aware of. I guess I will try and hunt down a copy of the book.

Bill
 
  • #12
All you really need to do, in the software domain, is fit a sine wave to the color burst. You can use a least-mean-square technique for this. The first sample of the burst is not significant -- you just want to minimize the phase difference between your synthesized sine wave and the color burst. Most implementations discard a portion of the beginning and end of the color burst anyway.

- Warren
 
  • #13
Ok, that's good information. I assume that this must be done on every line (i.e. the results of the best fit cannot be applied to all lines based on the result of one). Thanks.

Bill
 
  • #14
TimeStamp said:
Ok, that's good information. I assume that this must be done on every line (i.e. the results of the best fit cannot be applied to all lines based on the result of one). Thanks.

You don't necessarily have to check your fit on every single line, but you should check it often enough that drift does not become an issue.

- Warren
 
  • #15
Well its an old thread, I was wondering if anyone can send me digitized NTSC and PAL sampled at around 27@MHz stream file.? It will be great.
thanks and regards
prag79@gmail.com
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
928
  • · Replies 6 ·
Replies
6
Views
2K
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K