[streaming] Re: dvbrc file where?
Harf Zatschler
hz3 at doc.ic.ac.uk
Sun Jan 26 21:21:10 CET 2003
Hi Mike, thanks for the help! I seem to be quite a bit closer to a
working install now.
I've put a bit of debug code into my DVB/libdvb/DVB.cc file. The only
thing I changed is this function:
--------------
int get_dvbrc(char *path, DVB &dv, int dev, int len)
{
ifstream dvbin;
const char *goodpath = "/root/.dvbrc";
cerr << "trying to get .dvbrc from here: \"" << path << "\"" << endl;
cerr << "using " << goodpath << " instead." << endl;
dvbin.open(goodpath);
if (!dvbin){
cerr << "Using default dvbrc." << endl;
const char *home = getenv("HOME");
const char *file = ".dvbrc";
ostringstream str(string(path,len-1));
str << home << "/" << file ;
if (dev)
str << "." << dev ;
str << ends;
dvbin.clear();
dvbin.open(path);
}
if (dvbin) {
dvbin >> dv;
return 1;
}
return 0;
}
--------------
after recompiling DVB (make in the DVB CVS directory)
make rmmod / make insmod in DVB/driver
and finally ./configure + make in the vls CVS dir, it's runnable.
Rather worrying is the line of junk that originally would have been used
for the .dvbrc file...
trying to get .dvbrc from here: " *'@@c'@¸óÿ¿@*'@&Þ @È&'@h @"
using /root/.dvbrc instead.
Reading original format
2003-01-26 20:13:10 [INFO/dvb] Added program 'bbc1'
2003-01-26 20:13:10 [INFO/dvb] Added program 'bbc2'
2003-01-26 20:13:10 [INFO/dvb] Added program 'bbc3'
2003-01-26 20:13:10 [INFO/dvb] Added program 'news24'
2003-01-26 20:13:10 [INFO/dvb] Added program 'ch5'
2003-01-26 20:13:10 [INFO/dvb] Added program 'ch6'
2003-01-26 20:13:10 [INFO/dvb] Added program 'ch7'
2003-01-26 20:13:10 [INFO/dvb] Added program 'ch8'
2003-01-26 20:13:10 [INFO/dvb] Added program 'ch9'
2003-01-26 20:13:10 [INFO/dvb] Added program 'five'
2003-01-26 20:13:10 [INFO/dvb] Added program 'QVC'
2003-01-26 20:13:10 [INFO/dvb] Added program 'TVTS'
2003-01-26 20:13:10 [INFO/dvb] Added program 'ITV-News'
You wouldn't have a working config file for vls lying around by chance?
That's my last obstacle now...
Cheers
Harf
On Sun, 26 Jan 2003, Mike Albon wrote:
>Hi,
>
>You're having exactly the same problem I had. I didn't fix it but
>instead cheated. Andrew de Quincey kindly sent me some binaries (and I
>am still using them thanks Andrew:).
>
>I have attached my dvbrc for the Crystal Palace transmitter so you at
>least have something to work with. Also if you find a solution to this
>problem I'd love to hear what it was.
>
>Many Thanks
>
>Mike Albon
>
>On Sun, 2003-01-26 at 14:54, Harf Zatschler wrote:
>> Hello everyone - I hope this will be an easy one!
>>
>> I'm using the latest CVS of everything DVB related I can think of and
>> the hardware works - I can use other tools (dvbstream/mplayer) to watch
>> TV on the local 100Mbps network, but I'd prefer to use vls/vlc for this.
>>
>> Now, I seem to be missing the channel definition file "dvbrc". I've put
>> one in /root/dvbrc, /root/.dvbrc, /root/.dvbrc.0 and lots of other
>> places, but vls never seems to find one (see below)
>> Also, what format is this file in - I've found some that look this this
>>
>> :TV|
>> BBC ONE:505833:0:0:0:600:601:0:2:4164
>> BBC TWO:505833:0:0:0:610:611:0:2:4228
>>
>>
>> ...or this...
>>
>> transport_stream {
>> id = 0x6000;
>> original_network_id = 0x233A;
>> terrestrial_tuning_info {
>> frequency = 537833330;
>> bandwidth = "8MHZ";
>> constellation = "16-QAM";
>> hierarchy = "none";
>> code_rate_hp = "3/4";
>> code_rate_lp = "3/4";
>> guard_interval = "1/32";
>> transmission_mode = "2K";
>> }
>> service {
>> id = 0x6840;
>> pmt_pid = 0x0406;
>> type = 0;
>> }
>> service {
>> id = 0x6780;
>> pmt_pid = 0x0402;
>> type = 2;
>> name = "BBC World Sv.";
>> provider_name = "BBC";
>>
>> ...or this...
>>
>> <?xml version="1.0"?>
>> <satellite>
>> <transponder type="T" freq="505833333">
>> </transponder>
>> <transponder type="T" freq="481833333">
>> <service id="22080" ca="0">
>> <description tag="0x48" type="1" provider_name="Sky" service_name="Sky
>> News" />
>> </service>
>>
>>
>> which one to use?
>>
>>
>>
>>
>>
>> [root at penny libdvbpsi]# vls -vvv
>> VideoLAN Server v 0.4.5 (Jan 26 2003) - (c)1999-2002 VideoLAN
>> 2003-01-26 14:36:40 [INFO/Vls] Module "channel:file" registered
>> 2003-01-26 14:36:40 [INFO/Vls] Module "channel:network" registered
>> 2003-01-26 14:36:40 [INFO/Vls] Module "mpegreader:file" registered
>> 2003-01-26 14:36:40 [INFO/Vls] Module "mpegconverter:ts2ts" registered
>> 2003-01-26 14:36:40 [INFO/Vls] Module "mpegconverter:ps2ts" registered
>> 2003-01-26 14:36:40 [INFO/Vls] Module "input:local" registered
>> 2003-01-26 14:36:40 [INFO/Vls] Module "input:video" registered
>> 2003-01-26 14:36:40 [INFO/Vls] Module "input:v4l" registered
>> 2003-01-26 14:36:40 [INFO/Vls] Module "mpegreader:v4l" registered
>> 2003-01-26 14:36:40 [INFO/Vls] Module "mpegconverter:raw2ts" registered
>> 2003-01-26 14:36:40 [INFO/Vls] Browsing modules in directory "."
>> 2003-01-26 14:36:40 [INFO/Vls] Browsing modules in directory
>> "/usr/local/lib/videolan/vls"
>> 2003-01-26 14:36:40 [INFO/Vls] Module "mpegreader:dvd" registered
>> 2003-01-26 14:36:40 [INFO/Vls] Module "input:dvb" registered
>> 2003-01-26 14:36:40 [INFO/Vls] Module "mpegreader:dvb" registered
>> 2003-01-26 14:36:40 [INFO/Vls] Channel 'digitaltv' created
>> 2003-01-26 14:36:40 [INFO/Vls] Starting input 'dvb'
>> 2003-01-26 14:36:40 [INFO/dvb] DVB_T Card registered without decoder
>>
>> Using default dvbrc.
>> 2003-01-26 14:36:40 [ERROR/dvb] Error: Unable to find any dvbrc file
>> 2003-01-26 14:36:40 [ERROR/Vls] Unable to start input 'dvb': Error:
>> dvb: Unable to initialise input: aborting
>> Error: Unable to find any dvbrc file
>> 2003-01-26 14:36:40 [INFO/Vls] New admin group "monitor" is ok
>> 2003-01-26 14:36:40 [INFO/Vls] New admin group "master" is ok
>> 2003-01-26 14:36:40 [INFO/Vls] New admin user "monitor" is ok
>> 2003-01-26 14:36:40 [INFO/Vls] New admin user "bozo" is ok
>>
>>
>>
>> --
>> Harf Zatschler <hz3 at doc.ic.ac.uk>
>> PG Computing, Room 348
>> Huxley Building, Imperial College
>> +44 20 75948251
>--
>Mike Albon <mikea at yuri.org.uk>
>
--
Harf Zatschler <hz3 at doc.ic.ac.uk>
PG Computing, Room 348
Huxley Building, Imperial College
+44 20 75948251
--
This is the streaming mailing-list, see http://www.videolan.org/streaming/
To unsubscribe, please read http://www.videolan.org/support/lists.html
If you are in trouble, please contact <postmaster at videolan.org>
More information about the streaming
mailing list