Here is changes I've made so far to kaa.record. As i stated below I'm
having problems but
i am not sure where the problem lies. I'm not sure if it is something
i've overlooked or
something unrelated to atsc in general
Later
Jonathan
On 8/20/07, Jonathan Isom <[EMAIL PROTECTED]> wrote:
> Hi
> I have made quite a bit of atsc related changes. the logging from
> tvdev appears ok
> til i kill it with freev-tvdev --stop. the same with tvserver. but
> tvserver never seems to connect with tvdev. any ideas
>
> Later
>
> Jonathan
Index: record/test/recorder.py
===================================================================
--- record/test/recorder.py (revision 2778)
+++ record/test/recorder.py (working copy)
@@ -6,7 +6,7 @@
from kaa.notifier import OneShotTimer
from kaa.record import DvbDevice, Filewriter, Recording
-dvb = DvbDevice('/dev/dvb/adapter0', '/home/dmeyer/.freevo/channels.conf')
+dvb = DvbDevice('/dev/dvb/adapter0', '/home/freevo/.freevo/channels.conf')
# print some debug
print dvb.get_bouquet_list()
Index: record/src/dvb_tuner.cc
===================================================================
--- record/src/dvb_tuner.cc (revision 2778)
+++ record/src/dvb_tuner.cc (working copy)
@@ -98,6 +98,8 @@
{ "QAM_256", QAM_256 },
{ "QAM_32", QAM_32 },
{ "QAM_64", QAM_64 },
+ { "8VSB", VSB_8 },
+ { "16VSB", VSB_16 },
{ NULL, 0 }
};
@@ -530,6 +532,14 @@
if(!(field = strsep(&tmp, ":")))return -1;
channel.front_param.u.qam.modulation =
(fe_modulation_t)find_param(qam_list, field);
break;
+ case FE_ATSC:
+ channel.front_param.frequency = freq;
+ channel.front_param.inversion = INVERSION_AUTO;
+ if(!(field = strsep(&tmp, ":")))return -1;
+ channel.front_param.u.vsb.modulation =
(fe_modulation_t)find_param(qam_list, field);
+ printD( LOG_INFO, "%s\n",field);
+
+ break;
case FE_OFDM:
channel.front_param.frequency = freq;
@@ -566,13 +576,16 @@
break;
}
+ printD( LOG_INFO, "%s\n",get_type_str().c_str() );
+
if(!(field = strsep(&tmp, ":")))return -1;
channel.vpid = strtoul(field, NULL, 0);
-
+ printD( LOG_INFO, "temp %i\n", channel.vpid );
if(channel.vpid == 0)return -1; /* only tv channels for now */
if(!(field = strsep(&tmp, ":")))return -1;
channel.apid = strtoul(field, NULL, 0);
+ printD( LOG_INFO, "apid %i\n", channel.apid );
return 0;
}
@@ -640,5 +653,11 @@
std::string Tuner::get_type_str() const {
return (feinfo.type == FE_OFDM ? "DVB-T" :
feinfo.type == FE_QAM ? "DVB-C" :
- feinfo.type == FE_QPSK ? "DVB-S" : "unknown");
+ feinfo.type == FE_QPSK ? "DVB-S" :
+ feinfo.type == FE_ATSC ? "ATSC" : "unknown");
}
Index: record/src/dvb_frontend.h
===================================================================
--- record/src/dvb_frontend.h (revision 2778)
+++ record/src/dvb_frontend.h (working copy)
@@ -42,7 +42,8 @@
typedef enum {
FE_QPSK,
FE_QAM,
- FE_OFDM
+ FE_OFDM,
+ FE_ATSC
} fe_type_t;
@@ -69,6 +70,8 @@
FE_CAN_BANDWIDTH_AUTO = 0x40000,
FE_CAN_GUARD_INTERVAL_AUTO = 0x80000,
FE_CAN_HIERARCHY_AUTO = 0x100000,
+ FE_CAN_VSB_8 = 0x200000,
+ FE_CAN_VSB_16 = 0x400000,
FE_CAN_MUTE_TS = 0x80000000,
FE_CAN_CLEAN_SETUP = 0x40000000
} fe_caps_t;
@@ -163,6 +166,8 @@
QAM_64,
QAM_128,
QAM_256,
+ VSB_8,
+ VSB_16,
QAM_AUTO
} fe_modulation_t;
@@ -222,7 +227,12 @@
fe_hierarchy_t hierarchy_information;
};
+struct dvb_vsb_parameters {
+ fe_modulation_t modulation;
+
+};
+
struct dvb_frontend_parameters {
uint32_t frequency; /* (absolute) frequency in Hz for QAM/OFDM */
/* intermediate frequency in kHz for QPSK */
@@ -231,6 +241,7 @@
struct dvb_qpsk_parameters qpsk;
struct dvb_qam_parameters qam;
struct dvb_ofdm_parameters ofdm;
+ struct dvb_vsb_parameters vsb;
} u;
};
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel