Slashdot Mirror


HDTV via GNU Radio

NortonDC writes "High Definition TV has been successfully captured in its native data stream from an over the air broadcast by a software defined radio that is Free and open source from the GNU Software Defined Radio project."

29 of 306 comments (clear)

  1. Oh great. by Big+Mark · · Score: 5, Funny

    GNU TV, where the scripts are open-sourced before the show airs and you know all the jokes before the intro starts rolling.

    Mind you, if you knew when to cringe in Nerds (the competitor to Friends, where housebound geeks spend their days in an eternal LAN party with the occasional visit to the pizza parlour) at the "jokes", it mightn't be so bad...

    -Mark

    1. Re:Oh great. by Fulcrum+of+Evil · · Score: 5, Insightful

      GNU TV, where the scripts are open-sourced before the show airs and you know all the jokes before the intro starts rolling.

      How is different from network tv, where the scripts are rehashes of something from 10 or 20 years ago and you know the entire plot (painful jokes included) in the first two minutes.

      --
      "We returned the General to El Salvador, or maybe Guatemala, it's difficult to tell from 10,000 feet"
  2. hmmm by Anonymous Coward · · Score: 5, Insightful

    Sounds too useful to exist.

    It will taste the blade of DMCA before the end of the month.

  3. Cool, but..... so? by AvantLegion · · Score: 5, Funny

    Why am I looking at 4MB images of Lenny Briscoe?

  4. Aspect ratio? by Anonymous Coward · · Score: 5, Interesting

    HDTV is either 1920x1080 (1080i) or 1280x720 (720p). Where did the 2730x1088 resolution come from? It's obviously wrong (the images are obviously scrunched vertically).

  5. Neato.. by josh+crawley · · Score: 4, Informative

    Seems really neat, but I found that card on a science site. ONLY 1000 pounds (Great Britan). I suspect that this isn't much cheaper in the US either ;-(

    https://directory.adeptscience.co.uk/controller. js p?action=GetProduct&pid=91&sid=1

  6. Those aspect ratios are off. by kalgen · · Score: 5, Interesting

    The images on the site are at 2740x1088 resolution, but HDTV at max resolution is 1920x1080. You can tell from looking at the images that they're horizontally stretched, so something weird is going on.

  7. Good And Bad by sidespace · · Score: 5, Interesting

    A Linux-friendly HDTV recording solution is definitely needed. Unfortunately, it seems that in order to record HDTV you need a $1300 Analog Input Board.

    Can anyone with more knowledge about this project please post a less expensive solution if one exists?

  8. Re:What? by MBCook · · Score: 4, Interesting

    If I am reading it correctly, they used a special radio card under Linux to capture radio waves. Then they ran those waves through a piece of software that could decode them into video, because the waves they tuned into were an HDTV broadcast. The difference here is that they simply record the wave, it's not decoded in hardware. This way they can ues the same card to get FM, AM, HDTV, VHF, UHF, or whatever (in theory). Anyone actually know the answer to this question?

    --
    Comment forecast: Bits of genius surrounded by a sea of mediocrity.
  9. Re:Cool by Thing+1 · · Score: 4, Informative
    Can I FTP the second season of west wing yet? No? Okay then

    You can get many TV shows you might have missed by using BitTorrent .

    This site has a list of links to various sites which contain TV shows available through BitTorrent.

    A West Wing episode is available here (The West Wing - s04e16 - California 47th [ftv].mpg.torrent) (but you need to have installed BitTorrent prior to clicking on that link).

    I don't follow West Wing so I don't know whether that's from second season, and your comment is accurate -- that's the only one available from that site. One other is The.West.Wing.S04E14.Inauguration.Day.Part.I .

    Enjoy!

    --
    I feel fantastic, and I'm still alive.
  10. Top 5 reasons to process HDTV signals on your PC by Amsterdam+Vallon · · Score: 4, Funny

    5 -- You think a $3,500 computer with a 17 inch monitor is better than a $2,000 HDTV set with a 35 inch screen

    4 -- You wanna take screenshots of Joe Millionaire and set them as your desktop wallpaper

    3 -- You're unemployed and have nothing else to do aside from incessant blogging

    2 -- Regular TV is _so_ '90s.

    1 -- Record Cinemax skin flicks as part of the Masturbate For Peace campaign

    Courtesy of The *nix Top 5

    --

    Reply or e-mail; don't vaguely moderate. Ex-O'Reilly/MIT employee, now a full-time Google employee.
  11. Cost: $1,299.00 by jdclucidly · · Score: 4, Informative

    At $1,299.00 for the PCI card that their driver is written for, I do not see this in my future. For that matter, I don't see that in the future of many hobbiests which makes this project rather useless to the general population at present.

    See here for information on the product the GNU Radio project wrote the driver for: Measurement Computing

    Maybe some day...

    1. Re:Cost: $1,299.00 by cybermace5 · · Score: 4, Insightful

      By taking this defeatist attitude, you are creating a self-fulfilling prophecy.

      The card is $1,300. The reason is economics: people do not buy them in mass quantities, therefore they are rare and expensive. These cards are typically used in fringe high-tech situations, and honestly $1,300 is an awfully good deal considering what the same capabilities would have cost five or ten years ago.

      If the card is already down to $1,300, instead of $13,000 or $130,000, the price can be reduced to $130. Once software radio becomes a demanded product, the push to increase production will make the cards more available.

      Again, if you want to play around with cutting-edge tech, the card is pretty inexpensive. I've been dealing with high-speed video vendors who want $60,000 for essentially an overclocked VCR. And that's half of what they cost ten years ago.

      These guys have done something few are able to do: take an idea and actually follow it to completion. The first personal computers weren't cheap enough to give away in cereal boxes either, so give this some time and encouragement.

      --
      ...
  12. Re:What? by sulli · · Score: 4, Informative

    My understanding is that it is a fight against copy protection. Open (Free) software defined radio means that the user can pull down any (unencrypted) broadcast and save it - whether or not the "broadcast flag" (no-copy bit) has been used. In a future in which hardware televisions can't save copies of anything, this will allow the user to save copies and play back later (or do anything else) on a future PC or TiVo. Good stuff.

    --

    sulli
    RTFJ.
  13. Hardware.... by wowbagger · · Score: 4, Interesting

    Man, I wish the Gnu folks would build their own hardware card rather than the card they are currently using - it's quite expensive.

    I'd love to see them put a decent FPGA, an Intersil 50216 4 channel digital downconverter, and a nice 60 Msample/sec 12 bit flash A/D converter on the card - they could do that for a bill of materials of about US$200, and have enough power to do the capture properly.

    Before you say "Fine - why don't YOU design it?": I'd love to get more involved in GnuRadio, but I'm afraid of potential conflicts of interest both ways - contaminating GnuRadio with my professional work and possibly exposing my employer to problems with GPL infringment.

    Also, is anybody big in the Gnu Radio project going to be at IWCE (International Wireless Convenention and Exposition) March 10 - 14? If so, where? I'm getting in on an exhibitor's badge - maybe I could get pictures?

    1. Re:Hardware.... by wowbagger · · Score: 4, Informative

      Well, I DO do this stuff for a living, as well as being a computer geek and a ham.

      But really, $1300 for the digitizer card is a bit steep - I work with a system using a 40 MSamp/sec 12 bit flash converter and Intersil 50214. The Intersil is about $30, and I don't think the flash converter is much more. Add a $50 FPGA to do the interfacing to the PCI bus, and you could do scatter-gather busmastering capture to the main system pretty easily.

      Use a $50 Intersil 50216, and you could do most of the heavy lifting with it - Final IF filtering, I/Q recovery, post-detection filtering, symbol tracking, etc. That would remove a lot of the CPU load from the system, possibly allowing for real-time aquisition and decode.

      Go to one of the board fab houses, and you could probably get a board built for about $500, maybe less.

      Considering that people are spending $500 for video cards, this might not be so bad.

  14. Re:What? by josecanuc · · Score: 5, Informative

    It's not so much a special radio card as it is just any wide-banded data acquisition board and a little frequency-translation unit.

    There is a "tuner" that multiplies the incoming radio signals by a variable frequency. When you mix two oscillating signals (by multiplication) you get harmonics. If the variable frequency is just a sine wave (i.e., not modulated with any information), then the harmonics are identical in modulation to the original, but at a difference frequency. The tuning box is used to bring various radio signals down to a frequency that can be digitized by any ordinary data acquisition board.

    These data acquisition boards are designed to basically sample voltages of whatever is tied to their inputs, and to sample it very very quickly and very often. Since these boards (and computers also) are getting more advanced (i.e. faster), they are able to sample real radio frequencies (stuff in the ones of MHz ranges).

    After you get the signal digitized, it's just a simple matter of writing software that mathematically performs the functions that all the circuitry in the 'old-fashioned' receivers would do with their capacitors, resistors, and inductors (and more).

    That's pretty much how it works.

  15. Re:Price by Gabrill · · Score: 4, Informative
    PCI-DAS4020/12 Ultra High-Speed PCI-bus Compatible, 4-Channel, 12-Bit Analog Input Board with Two Analog Output Channels & 24 Digital I/O Channels $1,299.00

    a little expensive for my taste.

    --
    Always going forward, 'cause we can't find reverse.
  16. Rough Explanation by tweakt · · Score: 4, Interesting
    I'm not 100% up to speed about this, but I saw the project explained at Defcon last year...

    Bascially the aim is to drastically decrease cost and increase flexibility of radio signal reception and decoding by replacing lots of specialized electronics with software.

    Now instead of a very expensive ATSC decoder for your HDTV-Ready TV, you will now have a box with an antenna, maybe a preamp, and a powerful DSP running in software.

    The cool part is, you can reprogram or adjust the software as needed to create other capabilities, use other frequencies, or increase performance even after the product is shipped.

    I'm sure I drastically oversimplified this, and probably don't realize the full scope of the benifits. Read up on it, use google.

    But as applied to HDTV, this is an AMAZING accomplishment. We might soon have open-source HDTV decoding. I for one, would love to have the ability to directly access the native format of the TV signal, stream it to disk, multicast it on my home lan to the living room, whatever. COOL STUFF!

  17. For those who miss the point by tweakt · · Score: 4, Informative
    Here's the quick version from the site:

    GNU Radio is a collection of software that when combined with minimal hardware, allows the construction of radios where the actual waveforms transmitted and received are defined by software. What this means is that it turns the digital modulation schemes used in today's high performance wireless devices into software problems.

    Read the site! This is very important stuff and could have a huge impact on technology.
    1. Re:For those who miss the point by exhilaration · · Score: 4, Interesting
      ... and lets you listen to your neighbor's cordless phone conversation, lets you peek into GSM/TDMA mobile phone traffic, lets you listen to your local police CB traffic, lets you control remote control cars/planes/etc., lets you open your garage door from your desk

      oh yeah, it also gives you TV/HDTV/FM/AM - maybe even satellite radio (but that's probably encrypted).

      This is a *universal* radio - you just have to write software to make it do what you want.

  18. Re:What? by Qzukk · · Score: 4, Informative

    It could be used for that (assuming you have a way to rebroadcast the signal later? Without the FCC hunting your signal down?), but the purpose of the software is to provide signal-processing software targeted at radio signal processing. If that signal is an HDTV signal, than so be it, but it could just as easily be X-Ray signals from space (assuming your sampling device could capture them) or some AM Radio talk show.

    If you look at the site you can see a number of other examples. Since you are no longer limited by a standard radio's hardware, you can do completely different stuff like receive two different frequencies at the same time.

    --
    If I have been able to see further than others, it is because I bought a pair of binoculars.
  19. This is informative by mrhandstand · · Score: 5, Informative

    This has been covered here on Slashdot before. Some of the comments in the previous post are particularily informative.

    --
    Always value the individual over the system. --Bruce Lee "I don't need a Sig - I have a custom 191" - me
  20. Re:What? by wowbagger · · Score: 5, Informative

    A few nitpicks:

    You don't get harmonics (frequencies that are related to the fundimental by an integer multiple), you get mixing products, also known as "sum and difference".

    You get harmonics when you feed a single signal into a non-linear element - feed f1 in, get f1, 2*f1, 3*f1, 4*f1,... out. This is commonly used in tranmsitters to allow the use of a lower-frequency crystal to generate higher frequency carriers - you use a 10 MHz crystal, and the feed it into a non-linear element such as a squaring amp, and pick off the tenth harmonic to get 100 MHz.

    Mixing involves feeding 2 signals f1 and f2 into a multiplier - you get f1, f2, f1-f2, and f1+f2 out. Mixing allows changing a frequency by a non-integer relationship. You have heard this used in the voice distorters used on TV to mask mob informants - they mix the person's voice with a low-frequency signal to change the pitch of the speaker's voice. This is also the basis of any modern superheterodyne receiver - you mix two different (heterogenous) signals together.

    The idea is to take the signal from whatever frequency it is on, and move it to the frequency you have designed your circuit to work at - an "intermediate frequency", or IF. You then filter the signal, amplify it to a specified level, and repeat as necessary to get the signal where you want it. For example, a standard FM radio might go from the broadcast frequency to a 10.7 MHz first IF, then to a 455 kHz second IF, then finally to the FM detector circuit.

    Eventually, in a design like GnuRadio, you sample the signal. The tricky bit is you have to sample at a frequency not less than twice the highest bandwidth in the signal (Nyquist's criterion). For a 6MHz wide TV signal, that means you need to sample at not less than 12 million samples per second.

    Then, for a system like HDTV, you are dealing with a complex signal - and I mean complex as in sqrt(-1), not just as in "not simple" - you need both the real (in-phase, or I signal - the "real" part) and the quadrature (out-of-phase, or Q signal - the imaginary part). The signal is 8VSB - eight level vestigial sideband. So you have to do carrier recovery and tracking (because the carrier itself was removed - that is what makes it a sideband signal), then you have to convert the signals from the analog RF signal into one of 8 levels (slicing is the technical term). However, you have to slice accurately in 2 dimensions - you have to slice at the correct level (is .7 volts a 6 or a 5?), and you have to slice at the correct time (the symbols are only defined at certain times - any other time the signal isn't valid, it is a blend of the current and the (next|previous) symbol - what is called inter-symbol interference or ISI). So you have to do symbol tracking - figuring out when to sample, and at what levels to slice.

    Finally, once you have a symbol stream, you then have to do all the foward error correction - you have to de-interleave the signal (think of unshuffling a deck of cards) - interleaving is done so that a transient interference (like a lightning strike) doesn't scramble adjacent bits - the errors are spread out.

    Then you do your block error correction - this can undo a small number of bit errors per block (again, that's why you interleave the signal: so that block error correction needs to only correct a few bit errors per block).

    Then you do some more protocol recovery, and you have an MPEG stream.

    Normally, you do this sort of stuff with a big FPGA or an ASIC. The GnuRadio folks are doing it in software. The up side is that you can more easily tweak the code. The downside is that you are not going to be real-time for a few more iterations of Moore's "Law".

    What gets to be REALLY fun is when, in addition to all of the above, you have to compute parametrics on the signal - not just recover the bits, but measure how far out of ideal the signal was (that's the sort of stuff I do for a living.) When you do that, you have to do all of the above, THEN once you have an error corrected bit stream you have to regenerate an ideal signal and compare the received signal against it, and measure how far away from the ideal signal the real signal is.

    And THAT is when you start using multi-GHz processors, 10 million gate FPGAs, big-ass DSPs, and all sorts of other fun stuff.

  21. Re:resolution by linux11 · · Score: 4, Informative
    The following was taken from an online pdf file:

    "The actual resolution of HDTV streams transmitted will usually be 1920x1088, because MPEG-2 requires the number of lines to be in multiples of 16 (1088 lines = 68 x 16)."


    Also, keep in mind that the popular CRT and projection projection TVs will purposily overscan the picture such that some of the lines are pushed outside of the viewing area. So, while 1088 lines are broadcast, a projection TV may only show 1076 of them and clip 6 lines each from top and bottom. If overscanning results in only 4 lines being clipped then you will actually see only 1080 of the 1088 lines of MPEG-2 stream.

    The width of 2730 pixels appears to be intended get close to the correct aspect ratio when displayed on a computer monitor. Based on how the people's heads look on my monitor, it seems to be a little over stretched. But when I return the images to 1920x1088, they clearly look squeezed.
  22. 20 Msample/sec by wowbagger · · Score: 4, Informative

    Actually, 20MHz isn't so bad - I work with 40 Msample/sec 12-bit flash converters, and there are 100 Msample/sec 12-bit flash converters on the market.

    However, you DON'T build things like this with your brother's wood-burning kit and a old nail - These parts come in surface mount packages, and your board has to be carefully designed to maintain proper impedance matching on the RF traces, as well as having excellent grounding (RF and digital grounds meeting at one and only one point, ground planes cut as needed to prevent current loops, etc.).

    Lastly, you need a proper dithering circuit to introduce noise equivelent to 1/2 of the least significant bit, in order to shape the quantization noise out of the frequencies of interest. Otherwise, you end up throwing away a couple of bits of resolution.

    Those are the sorts of things you have top-notch RF designers laying out, and a top-notch fab build for you - either by having such a fab working for you, or by contracting it out.

  23. Re:Broadcast flag? by ColaMan · · Score: 4, Interesting

    Maybe it *will* be illegal in your country.

    But eventually Supply and Demand will kick in - someone will want to tape "Friends, 2009", so presto! the means will appear. Soon enough you'll be able to buy the equivalent HDTV VCR from China for $120 that "mistakenly" ignores the broadcast flag, a-la DVD zoning.

    Pity it means that some other country's tech industry gets the "3) Profit!".

    Side note:
    Sure won't be worrying about how illegal it is in my country (Australia) for a long while yet.
    Is "the switch" happening in 2008? And have we sorted whether we're going for SDTV or HDTV?
    Anyone with a set-top DTV box in .au care to comment on the current digital transmissions?
    Anyone? Anyone? Bueller?

    --

    You are in a twisty maze of processor lines, all alike.
    There is a lot of hype here.
  24. Re:GNU/Correction by u38cg · · Score: 4, Funny

    Gnu are not gnu/funny.

    --
    [FUCK BETA]