Clem sent me this email and asked me to share it with the list. He was able to get VDR working with ATSC. Please see below.
Thx Norm
-------- Forwarded Message -------- From: Herbert, Clem R. <<email addressed removed>> To: mlists@dressler.ca Subject: QAM in vdr Date: Thu, 17 Aug 2006 10:21:54 -0500
Hi Norm,
I saw your post on the mailing list and I wanted to add to the info Klaus found (in a post from me). Sorry my old email is bad now, I opened it to avoid spam and didn’t use it enough so it was deleted ☹ I’ll try and find the best way to rejoin the list. BTW, I sent a copy of this to Klaus. It would be cool if you could repost this on the list in the meantime, for the other readers. Just please scramble my email address so that the spam bots don’t find me ;)
Anyway, I managed to view ATSC OTA (8vsb with antenna) and QAM 256 (usa digital cable) here in Houston using that patch. I'm using the Dvico Fusion 5 Lite ATSC card. I don’t know anything about dvb programming (yet) so I can’t get guide info and such. Also, I made simple script to convert the azap output of dvb-apps/atscscan to convert the output to current vdr format (vdr output switch in atscscan complains that vdr won’t do ATSC).
************************************************** Cleaner ATSC patch diff -Naur vanilla/channels.c atsc/channels.c
--- vanilla/channels.c 2006-03-16 21:48:57.285953250 -0600
+++ atsc/channels.c 2006-03-16 21:48:48.469402250 -0600
@@ -50,6 +50,7 @@
const tChannelParameterMap ModulationValues[] = {
{ 0, QPSK },
+ { 8, VSB_8 },
{ 16, QAM_16 },
{ 32, QAM_32 },
{ 64, QAM_64 },
diff -Naur vanilla/dvbdevice.c atsc/dvbdevice.c
--- vanilla/dvbdevice.c 2006-03-16 21:48:57.289953500 -0600
+++ atsc/dvbdevice.c 2006-03-16 21:53:43.739855500 -0600
@@ -263,6 +263,19 @@
lockTimeout = DVBC_LOCK_TIMEOUT;
}
break;
+ case FE_ATSC: { // ATSC
+
+ // Frequency and symbol rate:
+
+ Frontend.frequency = FrequencyToHz(channel.Frequency());
+ Frontend.inversion = fe_spectral_inversion_t(channel.Inversion());
+ Frontend.u.vsb.modulation = fe_modulation_t(channel.Modulation());
+
+ tuneTimeout = DVBC_TUNE_TIMEOUT;
+ lockTimeout = DVBC_LOCK_TIMEOUT;
+ }
+ break;
+
case FE_OFDM: { // DVB-T
// Frequency and OFDM paramaters:
@@ -753,6 +766,7 @@
int type = Source & cSource::st_Mask;
return type == cSource::stNone
|| type == cSource::stCable && frontendType == FE_QAM
+ || type == cSource::stCable && frontendType == FE_ATSC
|| type == cSource::stSat && frontendType == FE_QPSK
|| type == cSource::stTerr && frontendType == FE_OFDM; }
************************************************** End ATSC patch
***************************** Convert QAM azap to vdr channels.conf
#!/bin/bash cat $1 | awk -F: '{
print $1":"$2":M256:C:0:"$4":0;"$5":0:0:"$6":0:0:"$6
}'
************************************************************** End
***************************** Convert ATSC azap to vdr channels.conf
#!/bin/bash cat $1 | awk -F: '{
print $1":"$2":M8:C:0:"$4":0;"$5":0:0:"$6":0:0:"$6
}'
************************************************************** End