Tagged: ATSC

Receiving Live ATSC 1.0 TV on a Single RTL-SDR by Deliberately Aliasing the 6 MHz Channel

Over on Reddit, Compuristic has shared a project that receives and plays live ATSC 1.0 digital TV (the 8VSB system used in North America) with one stock RTL-SDR Blog V3 and an NVIDIA GPU. In the past, this has been considered impossible, because an ATSC signal is 5.38 MHz wide inside a 6 MHz channel, while an RTL-SDR can receive a maximum 3.2 MHz of bandwidth, and generally only 2.56 MHz max without sample drops.

Compuristic notes that the trick is to purposely let the signal alias instead of filtering aliases out. The software tunes to the center of the channel, sets the R820T2 tuner's IF filter to its widest 5 MHz setting, and loads custom coefficients into the RTL2832U's internal FIR filter. That filter normally suppresses everything beyond 1.6 MHz from the center by 20 - 40 dB to prevent aliasing, but with the new coefficients the whole channel passes through. The outer 1.4 MHz on each side then folds back onto the middle of the 3.2 MHz capture.  Compuristic notes that only register settings are changed, so nothing is written to the dongle and everything resets when it is closed.

With aliasing allowed, the capture now holds the entire channel, but with most of it overlapping. Compuristic explains that this is solvable because each ATSC symbol has only 8 possible levels, and the trellis code only allows 4 of them at each step. The software uses the known field sync pattern to model the channel, including the folding and any multipath echoes. Then the GPU runs a beam search that keeps the 64 most likely symbol sequences, decoding many fields in parallel. Standard Reed-Solomon error correction recovers the MPEG transport stream, which ffmpeg converts for playback in the browser, with all sub-channels and closed captions. On the author's graphics card, decoding runs at 2.2 to 4.3 times real time, with the picture about 7 to 12 seconds behind live. For comparison, the first working CPU version took 72 minutes to decode 2.06 seconds of TV.

The main limitation is that the folding costs about 10 dB, so it needs a signal around 25 dB above the noise, compared with about 15 dB when decoding the full channel with a wider band receiver. In the author's own test with an indoor antenna, three stations carrying 19 programs decoded with 100% of packets OK, but every station under about 25 dB failed. The software currently runs only on Windows 10/11 and requires an NVIDIA GPU with CUDA 13 and 4 GB or more of memory. Without one, it can only decode recordings, far slower than real time. Only the RTL-SDR Blog V3 has been tested so far.

The code is GPL-3.0 licensed and available on GitHub, and the How It Works document covers the method in more detail, including the approaches that failed. Compuristic has also uploaded a video demonstrating the system, which we've embedded below.

We suspect that this same trick could also work for some DVB-T TV signals too, but probably not DVB-T2 due to the increased complexity.

Live ATSC 1.0 Digital TV Through a Stock RTL-SDR

AI Disclaimer: Compuristic notes that the idea for the aliasing and decoding method was their own, and that AI was used to turn it into working code.

OnAir: A Digital TV and DAB Decoder for SDRs

Thank you to Kristijonas for writing in and sharing with us his project, OnAir. OnAir is an easy-to-use digital TV decoder for DVB-T2, DVB-T, ATSC 1.0, ATSC 3.0, ISDB-T, and a digital audio decoder for DAB / DAB+ and FM Radio. It also supports Analog TV modes such as PAL, SECAM, and NTSC, and data modes like ADS-B, GNSS (GPS, GLONASS, BeiDou), and DMR.

It supports various wideband SDRs, including HackRF, PlutoSDR, BladeRF, LimeSDR, USRP, Airspy R2, and SDRplay. RTL-SDRs unfortunately do not have enough bandwidth to decode digital TV channels in SDR mode, but the software still supports RTL-SDRs for narrowband signals.

The software is easy to install, with an installer .exe being available for Windows, a .deb file for Debian Linux, and a .dmg file for macOS. 

OnAir Screenshot
OnAir Screenshot

AI Disclaimer: This software lists Claude as a contributor.

TunerScope: A Browser App to Help Optimize HDTV Antenna Positioning with an RTL-SDR

Thank you to Luke Berndt for writing in and sharing with us a new RTL-SDR browser-based app he's created called TunerScope. TunerScope is a spectrum analyzer program that focuses on helping users in areas with ATSC digital TV achieve perfect HDTV antenna positioning.

The app runs entirely in a Chrome browser, so you can just connect your RTL-SDR to your device, browse to https://tunerscope.com, and start using the app instantly. 

TunerScope has a few interesting features, including the use of spectrum stitching to visualize the full 6 MHz + wide ATSC signals as the RTL-SDR only provides 2.56 MSPS max, multipath detection via in-channel flatness, a snapshot reference trace to see how well your antenna movements are helping, an SNR reading, location-aware channel labeling and a tower map, and a channel list view.

We note that from what we can gather, this app appears to be designed for the US only and may only support ATSC signals and FCC lookups for the location aware features.

AI-Disclaimer: From a comment on the YouTube video it appears TunerScope was developed with Claude. 

I got better HDTV using an SDR

Monitoring Train Railway Lines with an RTL-SDR and ATCS Monitor

Back in June Gus Gorman showed us via a YouTube tutorial and demo how to monitor ATCS (Advanced Train Control System) signals from trains. ATCS is found in the USA and is used for things like communications between trains, rail configuration data, train location data, speed enforcement, fuel monitoring, train diagnostics and general instructions and messages. Gus used an RTL-SDR and the ATCS Monitor software to decode the signals and give us a view of the current state of the railway line.

In his latest video Gus gives a better demonstration of the software by parking outside a train station so that he can receive many more signals from the trains. At the start of the video he shows the track view of BNSF trains, and then later switches over to the Union Pacific track view.

ATCS Monitor RTL-SDR at Omaha Train Station

GNU Radio for Windows + Decoding ATSC HDTV on GNU Radio for Windows

Recently an updated set of binaries and build scripts were posted for GNU Radio for Windows. GNU Radio is a graphical digital signal processing language that is compatible with many software defined radios such as the RTL-SDR. Normally it is used on Linux as the Windows builds have been known to be very buggy and difficult  to install. However the latest update appears to make it easier to install. The changes were announced on the GNU Radio mailing list by Geof Nieboer, and he writes:

An updated set of windows binaries and build scripts have been posted. Quick summary:

1- Added gqrx to package
2- Patched 2 x issues which would cause the generic version to crash on non-AVX systems (one in volk, one in FFTW)
3- Added gr-newmod to package

Plus a number of improvements to make the scripts more robust.

Binaries at http://www.gcndevelopment.com/gnuradio/downloads.htm
Scripts at https://github.com/gnieboer/GNURadio_Windows_Build_Scripts

To run GNU Radio for Windows you will need a 64-bit version of Windows 7/8/10. It appears that the installation is as easy as running the installer and waiting for it to download and install the 1.7 GB worth of files.

Also, over on his blog author designing on a juicy cup posted about how he’d been able to get the GNU Radio Windows binaries to run a ATSC HDTV decoder from a file recorded using an SDRplay RSP (ATSC is too wideband for an RTL-SDR to decode). ATSC is the digital TV standard used in North America, some parts of Central America and South Korea. He writes that one advantage to using GNU Radio on Windows is the ability to use a RAM drive for faster file processing.

GNU Radio ATSC Decoder Running on Windows.
GNU Radio ATSC Decoder Running on Windows.

Watching ATSC TV with an SDRplay SDR and GNU Radio

ATSC is the digital HD TV standard used within the United States and Canada. It is 6 MHz wide so the RTL-SDR with its maximum bandwidth of about 2.8 MHz cannot decode this signal. However, higher end SDR’s such as the SDRplay, Airspy and HackRF have larger bandwidths that can easy cover 6 MHz.

One SDRplay owner was able to figure out a way to decode ATSC by using a decoder written in GNU Radio. With the process the author used we note that other wide band SDR’s such as the Airspy and HackRF should also be capable of achieving the same results.

The process the author used was to first record a RAW IQ WAV file in HDSDR in Windows, making sure that any DC spike correction is applied. The WAV file is then opened in a premade GNU Radio flow graph in Linux and processed into an MPEG file. The process is not real time. The authors article shows a step by step tutorial on how its done.

In an update post to his results the author also notes that to successfully do a recording at the maximum SDRplay bandwidth of 8 MHz a RAM disk or perhaps SSD is required so that samples are not dropped.

An ATSC signal shown in HDSDR received with an SDRplay
An ATSC signal shown in HDSDR received with an SDRplay