Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Finding PCR pid (Re: VDR developer version 1.1.29)



On Sun, 27 Apr 2003, Antti O Lammi wrote:
> How can I find the PCR pid's for my channels? I could not translate the
> output of dvbtune, and I get segfaults from czap software.

  I modified the DVB/apps/scan (patch below, you need also to change
initial.h) to output PCR PID's and edited them into my Helsinki TV
channels.conf manually.  If it helps you I updated the channels.conf also
at http://www.iki.fi/hyvatti/dvb/ .

Index: apps/scan/dump.c
===================================================================
RCS file: /cvs/linuxtv/DVB/apps/scan/dump.c,v
retrieving revision 1.2
diff -u -r1.2 dump.c
--- apps/scan/dump.c	28 Oct 2002 11:59:46 -0000	1.2
+++ apps/scan/dump.c	28 Apr 2003 08:25:08 -0000
@@ -101,11 +101,12 @@
 				 fe_type_t type,
 				 struct dvb_frontend_parameters *p,
 				 int video_pid,
-				 int audio_pid)
+				 int audio_pid,
+				 int pcr_pid)
 {
 	fprintf (f, "%s:", service_name);
 	dump_dvb_parameters (f, type, p);
-	fprintf (f, ":%i:%i", video_pid, audio_pid);
+	fprintf (f, ":%i+%i:%i", video_pid, pcr_pid, audio_pid);
 	fprintf (f, "\n");
 }

Index: apps/scan/dump.h
===================================================================
RCS file: /cvs/linuxtv/DVB/apps/scan/dump.h,v
retrieving revision 1.2
diff -u -r1.2 dump.h
--- apps/scan/dump.h	28 Oct 2002 11:59:46 -0000	1.2
+++ apps/scan/dump.h	28 Apr 2003 08:25:08 -0000
@@ -12,7 +12,8 @@
 				 fe_type_t type,
 				 struct dvb_frontend_parameters *p,
 				 int video_pid,
-				 int audio_pid);
+				 int audio_pid,
+				 int pcr_pid);

 #endif

Index: apps/scan/scan.c
===================================================================
RCS file: /cvs/linuxtv/DVB/apps/scan/scan.c,v
retrieving revision 1.18
diff -u -r1.18 scan.c
--- apps/scan/scan.c	16 Apr 2003 13:44:37 -0000	1.18
+++ apps/scan/scan.c	28 Apr 2003 08:25:08 -0000
@@ -1148,7 +1148,8 @@
 						    t->type,
 						    &t->param,
 						    s->video_pid,
-						    s->audio_pid);
+						    s->audio_pid,
+						    s->pcr_pid);
 		}
 	}
 }

-- 
Foreca Ltd                                           Jaakko.Hyvatti@foreca.com
Pursimiehenkatu 29-31 B, FIN-00150 Helsinki, Finland     http://www.foreca.com


-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index