H i s t o r y 
 
 - - - - - - - 
 
 2 3 . 0 1 . 2 0 0 9 
 
 V   b e t a   1 . 2 
 
 - F i x e d :   r e w r i t t e n   c o d e   w i t h o u t   f i x e d   s e a r c h   v a l u e s 
 
 U s a g e :   a c a m d _ p a r s e r   - a l l   - e r r e c m 
 
 - a l l   =   a l l   c h a n n e l s   w i l l   b e   p a r s e d ,   e v e n   t h o s e   w h i c h   a r e   a l r e a d y   i n   t h e   A C a m p d _ P M T . t x t 
 
 - e r r e c m   =   c h a n n e l s   w i t h   w r o n g   r e c o g n i z e d   e c m   0 0 0 0   w i l l   b e   a d d e d   t o o ,   u s e f u l   v a l u e s   f o r   p m t   a n d   s i d 
 
 S t a r t e d   w i t h o u t   o p t i o n s   t h e r e   w i l l   b e   a d d e d   o n l y   m i s s i n g   c h a n n e l s   d a t a 
 
 P l a c e   a c a m d _ p a r s e r . e x e   t o g e t h e r   w i t h   A C a m p d _ P M T . t x t   i n   s a m e   f o l d e r   a n d   r u n   i t 
 
 
 
 2 1 . 0 1 . 2 0 0 9 :   
 
 V   b e t a   1 . 1 
 
 - F i x e d :   l i t t l e   b u g   p r e v e n t i n g   e r r o r   l o g 
 
 - F i x e d :   n o   p h p   f i l e   n e e d e d   a n y m o r e ,   s t a n d   a l o n e   e x e 
 
 - A d d e d :   o p t i o n   - a l l 
 
 - A d d e d :   o p t i o n   - e r r e c m 
 
 U s a g e :   a c a m d _ p a r s e r   - a l l   - e r r e c m 
 
 - a l l   =   a l l   c h a n n e l s   w i l l   b e   p a r s e d ,   e v e n   t h o s e   w h i c h   a r e   a l r e a d y   i n   t h e   A C a m p d _ P M T . t x t 
 
 - e r r e c m   =   c h a n n e l s   w i t h   w r o n g   r e c o g n i z e d   e c m   0 0 0 0   w i l l   b e   a d d e d   t o o 
 
 S t a r t e d   w i t h o u t   o p t i o n s   t h e r e   w i l l   b e   a d d e d   o n l y   m i s s i n g   c h a n n e l s   d a t a 
 
 P l a c e   a c a m d _ p a r s e r . e x e   t o g e t h e r   w i t h   A C a m p d _ P M T . t x t   i n   s a m e   f o l d e r   a n d   r u n   i t 
 
 
 
 2 0 . 0 1 . 2 0 0 9 :   
 
 V   b e t a   1 . 0 
 
 U s a g e :   p l a c e   t o g e t h e r   w i t h   A C a m p d _ P M T . t x t   i n   s a m e   f o l d e r   a n d   r u n   i t 
 
 
 
 
 
  CAA:89
 
 @>3@0<<0  =0?8A0=0  4;O  ?0@A8=30  D09;0  A C a m d _ l o g . t x t ,   2K48@0NBAO  2A5  40==K5  ?>  A;54CNI59  AE5<5
 
 P M T , S I D , C A I D , P r o v i d e r , E C M , E M M , N a m e 
 
 ?@8  B><  CG8BK20NBAO  B>;L:>  B5  :0=0;K,   :>B>@K5  5IQ  =5  1K;8  4>102;5=K  2  B01;8FC  A C a m d _ P M T . t x t 
 
 !;54C5B  ?><=8BL,   B5<  A0<K<  <>6=>  4>1028BL  =54>AB0NI85  :0=0;K  2  B01;8FC,   GB>1K  2  A;54CNI89  @07  ?;038=
 
 =5  ?KB0;AO  ?0@A8BL  ?<B  B01;8FC,   0  A@07C  1K  8A?>;L7>20;  40==K5  ?@54AB02;5==K5  2  A C a m d _ P M T . t x t 
 
 45O  2>7=8:;0  B>340,   :>340  2  D V B V i e w e r   =5  1K;0  2:;NG5=0  >?F8O  O p e n   w h o l e   T r a n s p o r d e r ,   B5<  A0<K<
 
 ?;038=  =5  ?>;CG05B  ?<B  4;O  >1@01>B:8.     A;CG05  65,   5A;8  2  A C a m d _ P M T . t x t   MB>B  :0=0;  5ABL,   B>  B>B
 
 @01>B05B  :>@@5:B=>. 
 
 K:;NG5==0O  >?F8O  3;02=K<  >1@07><  8=B5@5A=0  B5<,   :B>  8A?>;L7C5B  2=5H=85  :0@B>G:8  ?>445@6820NI85
 
 0??0@0B=K5  D8;LB@K,   =0?@8<5@  F i r e D T V ,   :>B>@0O  ?>4:;NG05BAO  G5@57  F i r e W i r e ,   =>  2  A;CG05  A  =5:>B>@K<8
 
 H D T V   B@0=A?>@45@0<8  4065  C  F i r e W i r e - H8=K  =5  E20B05B  H8@8=K  :0=0;0,   GB>1K  25AL  ?>B>:  ?5@5AK;0BL  A>  2A5<8  
 
 H D T V   :0=0;0<8.   ">  65  A0<>5  :0A05BAO  2;045;LF52  U S B   :0@B>G5:.   C  8  ?><8<>  B>3>,   :B>  8A?>;L7C5B
 
 :0:85  =81C4L  w i - f i   CA1  AB8:8,   :;02C,   <KHL  8  ?@>G55,   GB>1K  70  7@O  =5  701820BL  H8=C. 
 
   >1I5<  8  F5;><,   A=0G0;0  A;54C5B  70?CAB8BL  D V B V i e w e r   A  ?><5G5==>9  >?F859  O p e n   w h o l e   T r a n s p o r d e r ,   
 
 ?@>9B8AL  ?>  2A5<  :0=0;0<  A  2:;NG5==K<  ;>38@>20=85<  2  ?;038=5  a c a m d ( M o n i t o r   i n f o   t o   A C a m d _ l o g . t x t ) 
 
 >A;5  G53>  A>740==K9  D09;  ?><5AB8BL  @O4><  A  ?@>3@0<<>9,   0  ?@>3@0<<0  >B?0@A8B  25AL  D09;  8  @07;>68B
 
 40==K5  ?>  ?>;>G:0<  A>E@0=82  40==K5  2  D09;5  c o p y _ t o _ A C a m d _ P M T . t x t .   K  65  A0<8  @5H09B5,   4>102;OBL  
 
 MB8  40==K5  87  D09;0  ?>B><  2  3;02=CN  B01;8FC  8;8  =5B,   =0?@8<5@  G5@57  :>?8  ?0AB5. 
 
 @>3@0<<0  =0?8A0=0  =0  P H P   8  A:><?8;8@>20=0  A  ?><>ILN  b a m c o m p i l e . e x e ,   =8  =0  GQ<  4@C3><  B0:  1KAB@>
 
 ?@>3@0<<8@>20BL  =5  C<5N,   4;O  <5;:8E  =C64,   :0:  MB0,   4C<0N,   2?>;=5  E20B05B.   P H P   :>4  2=87C. 
 
 P S :   =5  2A534  A c a m d   2K18@05B  ?@028;L=K5  ?84K  4;O  45:>48@>20=8O  :0=0;0  2  02B><0B8G5A:><  @568<5,   2  B0:8E  A;CG0OE  
 
 A;54C5B  :>@@5:B8@>20BL  40==K5  A0<>AB>OB5;L=>. 
 
 # 
 
 >;57=0O  8=D>@<0F8O  4;O  ?>;L7>20B5;59  A C a m d   v 0 . 5 . 1 . 0 . 
 
 /  ?@54?>G8B0N  ;Q3:89  @568<  ?@>A<>B@0  =0  D V B V i e w e r ( >B:;NG5==0O  30;:0  O p e n   w h o l e   T r a n s p o r d e r ) ,   =565;8  70?@0H820BL  25AL  ?>B>:
 
 8  70AB02;OBL  A>DB  ?0@A8BL  53>,   :>340  2>  <=>38E  A;CG0OE  MB>  ?>445@68205BAO  =0  0??0@0B=><  C@>2=5  A0<>9  D V B   :0@B>9,   GB>1K
 
 AM:>=><8BL  ?@>F5AA>@=>5  2@5<O  8  4>ABC?=CN  H8@8=C  H8=K.   >  :  A>60;5=8N,   :>340  MB0  >?F8O  >B:;NG5=0,   0:0<4  =0G8=05B
 
 @01>B0BL  A  D V B V i e w e r   =5:>@@5:B=>.   =  70?@0H8205B  ?>B>:  5F<,   =>  ;8HL  548=>64K,   ?>A;5  G53>  B>B  ?@>?0405B,   ;81>  =5  ;>G8BAO. 
 
 "0:8<  >1@07><,   4065  5A;8  8  5ABL  @01>G89  A C a m p d _ P M T . t x t ,   GB>  >G5=L  ?><>305B  2  ?>;=><  @568<5( 2:;NG5==0O  30;:0  O p e n   w h o l e   T r a n s p o r d e r ) ,   
 
 B>  2  ;Q3:><  @568<5  1C4CB  =01;N40BLAO  C:070==K5  2KH5  ?@>1;5<K. 
 
 >  ACI5AB2C5B  B@N:  A  >1E>4><  MB>9  ?@>1;5<K,   2  GQ<  <>65B  ?><>GL  v p l u g ,   >=  :  AG0ABLN  C<55B  ?@028;L=>  70?@0H820BL  5F<  ?>B>:8. 
 
 AQ,   GB>  =5>1E>48<>  A45;0BL,   MB>  2K1@0BL  2  <>=8B>@5  v p l u g   42>9=K<  :;8:><  ?@028;L=K9  e c m   ?>B>:,   :0:  B>B  C:070=  
 
 2  A C a m d _ p m t . t x t 
 
 >  8  BCB  5ABL  @O4  >3@0=8G5=89,   2  ?5@2CN  >G5@54L  >B:;NG8BL  a u t o e c m ,   2>  ?5@2KE  MB0  >?F8O  @01>B05B  <54;5==>,   8  =5  2A5340  :>@@5:B=>, 
 
 =5  B>  1C45B  v p l u g   =0  =5:>B>@KE  :0=0;0E  F8:;8G5A:8  ?5@518@0BL  2A5  5F<  ?>B>:8  =5A:>;L:>  @07  ?>  >G5@548.   !;54CNI55,   GB>  =04>  
 
 A45;0BL,   MB>  AB5@5BL  8;8  70:><<5=B8@>20BL  ?0@C  AB@>G5:  2  v p l u g . i n i .   "0<  5ABL  >?F8O,   :>B>@0O  70?@5I05B  =5:>B>@K5  ?@>20945@K  
 
 8  c a i d ,   ?>MB><C  MB8  AB@>:8  =04>  AB5@5BL  8;8  70:><<5=B8@>20BL,   :0:  ?>:070=>  =865. 
 
 ; C A I D _ I g n o r e L i s t   =   c a i d l i s t . . . . 
 
 ; P r o v i d e r I D _ I g n o r e L i s t   =   p r o v i d e r l i s t . . . . . 
 
 B=K=5  0:0<4  4>;65=  ?>;CG0BL  5F<  ?>B>:8  :>@@5:B=>  2  ;Q3:><  @568<5. 
 
 
 
 D e u t s c h 
 
 D a s   P r o g r a m m   w u r d e   z w e c k s   V e r a r b e i t u n g   d e r   D a t e i   A C a m d _ l o g . t x t   g e s c h r i e b e n ,   e s   w e r d e n   a l l e   D a t e n   n a c h 
 
 f o l g e n d e r   S c h e m a   s o r t i e r t 
 
 P M T , S I D , C A I D , P r o v i d e r , E C M , E M M , N a m e 
 
 D a b e i   w e r d e n   n u r   d i e   K a n  l e   b e r  c k s i c h t i g t ,   d i e   n o c h   n i c h t   i n   d e r   T a b e l l e   A C a m d _ P M T . t x t   v o r h a n d e n   w a r e n . 
 
 D e n k t   d a r a n ,   e s   k  n n e n   f e h l e n d e   K a n  l e   i n   d i e   T a b e l l e   e i n f  g t   w e r d e n ,   d a m i t   d a s   A c a m d   P l a g i n   b e i   n  c h s t e m   M a l 
 
 n i c h t   v e r s u c h t   d i e   P M T   T a b e l l e   z u   v e r a r b e i t e n ,   s o n d e r n   g l e i c h   d i e   i n   d e r   T a b e l l e   v o r h a n d e n e   I n f o s   v e r w e n d e t . 
 
 D i e   I d e e   e n t s t a n d ,   a l s   i c h   D V B V i e w e r   o h n e   d e r   e i n g e s c h a l t e t e n   O p t i o n   " O p e n   w h o l e   T r a n s p o r d e r "   b e n u t z t   h a t t e , 
 
 d e n n   i n   d e m   F a l l   k r i e g t   d a s   P l u g i n   k e i n e   P M T   D a t e n   u n d   d e r   K a n a l   k a n n   n i c h t   e n t s c h l  s s e l t   w e r d e n .   
 
 F a l l s   j e d o c h   d i e   D a t e n   b e r e i t s   i n   d e r   T a b e l l e   A C a m d _ P M T . t x t   v o r h a n d e n   w a r e n ,   f u n k t i o n i e r t e   d a s   P l u g i n   k o r r e k t . 
 
 D i e   d e a k t i v i e r t e   O p t i o n   i s t   h a u p t s  c h l i c h   f  r   d i e j e n i g e   i n t e r e s s a n t ,   d i e   e x t e r n   a n g e s c h l o s s e n e   G e r  t e   b e n u t z e n , 
 
 d i e   a u c h   h a r d w a r e m  s s i g e   P I D   F i l t e r u n g   u n t e r s t  t z e n ,   z . B   F i r e D T V .   A b e r   i n   e i n i g e n   F  l l e n   m i t   H D T V   T r a n s p o r d e r n 
 
 r e i c h t   d i e   v o r h a n d e n e   B a n d b r e i t e   a u c h   b e i   F i r e W i r e   n i c h t   a u s ,   u m   g a n z e n   S t r o m   v o n   d e r   K a r t e   z u   l i e f e r n . 
 
 D a s   G l e i c h e   g i l t   a u c h   f  r   B e s i t z e r   d e r   U S B   K a r t e n .   A u s s e r d e m ,   d i e j e n i g e ,   d i e   W i F i   U S B - S t i c k s ,   U S B   T a s t a t u r ,   M a u s 
 
 u . s . w   n u t z e n   u n d   n i c h t   d i e   v o l l e   B a n d b r e i t e   u m s o n s t   z u m  l l e n   w o l l e n ,   w e r d e n   d i e s e   O p t i o n   s i c h e r l i c h 
 
 n  t z l i c h   f i n d e n . 
 
 I m   G r o s s e n   u n d   G a n z e n   m u s s   e r s t m a l   D V B V i e w e r   m i t   e i n g e s c h a l t e t e n   O p t i o n   O p e n   w h o l e   T r a n s p o r d e r   g e s t a r t e t   w e r d e n , 
 
 d a n n   a l l e   K a n  l e   m i t   d e r   e i n g e s c h a l t e t e n   O p t i o n   i n   A c a m d   ( M o n i t o r   i n f o   t o   A C a m d _ l o g . t x t )   d u r c h z a p p e n . 
 
 D a n a c h   d i e   D a t e i   A C a m d _ l o g . t x t   i m   g l e i c h e n   V e r z e i c h n i s   m i t   d e m   P r o g r a m m   a c a m d _ p a r s e r . e x e   p l a t z i e r e n   u n d   a u s f  h r e n . 
 
 D a s   P r o g r a m m   w i r d   i h r e r s e i t s   d i e   D a t e i   A C a m d _ l o g . t x t   p a r s e n   u n d   a l l e   I n f o s   k o r r e k t   a b g e l e g t   i n   d e r   D a t e i   c o p y _ t o _ A C a m d _ P M T . t x t 
 
 s p e i c h e r n .   I h r   k  n n t   d a n n   e n t s c h e i d e n ,   o b   I h r   d i e   f e h l e n d e   D a t e n   p e r   c o p y   p a s t e   i n   d i e   A C a m d _ P M T . t x t   e i n f  g t . 
 
 D a s   P r o g r a m m   w u r d e   i n   P H P   g e s c h r i e b e n   u n d   a n s c h l i e s s e n d   m i t   H i l f e   d e s   P r o g r a m m s   b a m c o m p i l e . e x e   k o m p i l i e r t . 
 
 I c h   b e h e r r s c h e   k e i n e   a n d e r e   P r o g r a m m i e r s p r a c h e n ,   u m   a u f   d i e   S c h n e l l e   s o   w a s   K l e i n e s   z u   p r o g r a m m i e r e n .   U n d   f  r 
 
 s o l c h e   Z w e c k e   r e i c h t   e s   a l l e m a l .   P H P   S o u r c e   f i n d e t   i h r   u n t e n . 
 
 P S :   n i c h t   z u   v e r g e s s e n ,   e s   w e r d e n   n i c h t   i m m e r   d i e   r i c h t e   P i d s   i n   A u t o m o d u s   v o m   A c a m d   P l u g i n   g e w  h l t ,   d a h e r   s o l l t e t   i h r   i n   s o l c h e n 
 
 F  l l e n   d i e   E i n t r  g e   m a n u e l l   n a c h b e a r b e i t e n . 
 
 # 
 
 N  t z l i c h e   I n f o s   f  r   A C a m d   v 0 . 5 . 1 . 0 .   N u t z e r .   I c h   p e r s  n l i c h ,   z i e h e   b e i m   F e r n s e h s c h a u e n   d e n   l e i c h t e n   
 
 M o d u s ( d e a k t i v i e r t   " O p e n   w h o l e   T r a n s p o r d e r " )   v o r ,   a l s   w e n n   i c h   d i e   S o f t w a r e   d a z u   z w i n g e   d e n   g a n z e n   S t r o m   z u   f i l t e r n , 
 
 w e n n   d i e s   e i g e n t l i c h   a u f   d e m   H a r d w a r e l e v e l   v o n   D V B   K a r t e   s e l b s t   u n t e r s t  t z t   w i r d ,   u m   d e n   P r o z e s s o r   z u   e n t l a s t e n 
 
 u n d   d i e   v o r h a n d e n e   B a n d b r e i t e   e i n z u s p a r e n .   D o c h   l e i d e r   f u n k t i o n i e r t   A C a m d   u n t e r   d i e s e n   V e r h  l t n i s s e n   n i c h t   k o r r e k t .   
 
 D e r   a n g e f o r d e t e   E c m   P i d   w i r d   n u r   e i n   m a l   g e l i e f e r t   u n d   d a n a c h   g e h t   e r   e n t w e d e r   v e r l o r e n   o d e r   w i r d   n i c h t   m e h r   g e l o c k t . 
 
 S o   d a s s   e i g e n t l i c h ,   a u c h   w e n n   m a n   e i n e   f u n k t i o n i e r e n d e   A C a m d _ p m t . t x t   h a t ,   w a s   s e i n e n   N u t z e n   i m   v o l l e n   M o d u s   z e i g t , 
 
 g i b t   e s   d a g e g e n   i m   l e i c h t e n   M o d u s   d i e   o b e n   b e s c h r i e b e n e   P r o b l e m e . 
 
 A b e r   a u c h   h i e r f  r   e x i s t i e r t   e i n   T r i c k ,   u m   d a s   P r o b l e m   z u   u m g e h e n ,   h i e r   k a n n   u n s   v p l u g   w e i t e r   h e l f e n ,   d a   e r   z u m   G l  c k   d i e 
 
 E c m   P i d s   k o r r e k t   a n f o r d e r n   k a n n .   A l l e s ,   w a s   m a n   m a c h e n   m u s s ,   i m   V p l u g ' S   M o n i t o r   m i t   e i n e m   D o p p e l c l i c k   d e n   r i c h t i g e n 
 
 E c m   P i d   a u s w  h l e n ,   s o   w i e   d e r   i n   A C a m d _ p m t . t x t   a n g e g e b e n   i s t .   A b e r   a u c h   h i e r   g i b t   e s   e i n e   R e i h e   v o n   E i n s c h r  n k u n g e n , 
 
 e r s t e n s ,   m a n   m u s s   a u t o e c m   a u s s c h a l t e n ,   d e n n   z u   e i n e m   f u n k t i o n i e r t   d i e s e   O p t i o n   o h n e h i n   l a n g s a m   u n d   n i c h t   i m m e r   k o r r e k t , 
 
 u n d   z u m   a n d e r e n ,   s o l l t e   m a n   e s   n i c h t   a u s g e s c h a l t e t   h a b e n ,   d a n n   w i r d   V p l u g   e s   i n   m e h r e r e n   Z y k l e n   n a c h e i n a n d e r   d u r c h p r o b i e r e n , 
 
 o h n e   e i n e n   R e s u l a t   z u   l i e f e r n .   U n d   d a s   z w e i t e ,   w a s   g e t a n   w e r d e n   m u s s ,   i n   d e r   v p l u g . i n i   D a t e i   p a a r   Z e i l e n   l  s c h e n   o d e r 
 
 a u s k o m m e n t i e r e n .   D a   g i b t   e s   O p t i o n e n ,   d i e   e i n i g e   P r o v i d e r   u n d   C a i d s   v e r b i e t e n ,   d a h e r   m  s s e n   d i e   Z e i l e n   g e l  s c h t   o d e r 
 
 a u s k o m e m n t i e r t   w e r d e n ,   w i e   u n t e n   g e z e i g t ; 
 
 ; C A I D _ I g n o r e L i s t   =   c a i d l i s t . . . . 
 
 ; P r o v i d e r I D _ I g n o r e L i s t   =   p r o v i d e r l i s t . . . . . 
 
 V o n   n u n   a n   s o l l t e   a c a m d   d i e   E c m   P i d s   k o r r e k t   a u c h   i m   l e i c h t e n   M o d u s   b e k o m m e n . 
 
 
 
 
 
 E n g l i s h 
 
 I   w r o t e   t h i s   p r o g r a m m   f o r   t h e   p a r c i n g   p u r p o s e s   o f   t h e   f i l e   A C a m d _ l o g . t x t 
 
 A l l   d a t a   b e c o m e s   s o r t e d   b y   t h i s   p a t t e r n 
 
 P M T , S I D , C A I D , P r o v i d e r , E C M , E M M , N a m e 
 
 A l l   m i s s i n g   e n t r i e s   i n   t h e   f i l e   A C a m d _ P M T . t x t   w i l l   b e   p a r s e d   c o r r e c t l y   w h i l e   i g n o r i n g   a l r e a d y   p r e s e n t   e n t r i e s . 
 
 P l e a s e   k e e p   i n   m i n d ,   y o u   c a n   a d d   a l l   n e w   e n t r i e s   i n   t h e   m a i n   t a b l e   f o r   t h e   p u r p o s e   t h a t   t h e   a c a m d   p l u g i n 
 
 d o e s n ' t   t r y   t o   p a r s e   t h e   p m t   t a b l e   d i r e c t l y   b u t   i n s t e a d   t a k e s   n e e d e d   e n t r i e s   f r o m   A C a m d _ P M T . t x t   t a b l e . 
 
 I   h a d   t h i s   i d e e   b y   u s i n g   D v B v i e w e r   w i t h   u n m a r k e d   o p t i o n   " O p e n   w h o l e   T r a n s p o r d e r " ,   b e c a u s e   i n   t h i s   c a s e 
 
 t h e   p l u g i n   g e t s   n o   p m t   d a t a   a n d   t h e   c h a n n e l   d o e s n ' t   g e t   d e c r y p t e d   w h i t o u t   k n o w i n g   t h e   r i g h t   e c m   p i d ,   s o   i t   s t a y s   b l a c k . 
 
 B u t   i f   t h e   r i g h t   e n t r i e s   w e r e   a l r e a d y   p r e s e n t   i n   t h e   t a b l e   t h e   p l u g i n   w o r k e d   c o r r e c t l y . 
 
 T h e   d e a c t i v a t e d   o p t i o n   " O p e n   w h o l e   T r a n s p o r d e r "   i s t   i n t e r e s t i n g   f o r   u s e r s   h a v i n g   e x t e r n   c o n n e c t e d   d v b   d e v i c e s ,   
 
 l i k e   o v e r   F i r e W i r e   o r   U S B   t h a t   s u p p o r t   h a r d w a r e   p i d   f i l t e r i n g ,   a s   e x a m p l e   F i r e D T V . 
 
 B e c a u s e   i n   s o m e   c a s e s   w i t h   h d t v   t r a n s p o r d e r s   t h e   p r e s e n t   b a n d   w i d e   i s   n o t   e n o u g h   t o   t r a n s p o r t   w h o l e   s t r e a m   f r o m 
 
 t h e   c a r d   o v e r   i t s   b u s .   T h e   s a m e   i s   r e l a t e d   t o   u s e r s   w h o   h a v e   u s b   c a r d s ,   a s   w e l l   f o r   p e o p l e s   u s i n g 
 
 w i - f i   s t i c k s ,   u s b   k e y b o a r d ,   m i c e   a n d   s o   o n   t o   n o t   c o n s t i p a t e   t h e   w h o l e   b a n d   w i d e   o f   u s e d   b u s . 
 
 T h e   D V B V i e w e r   h a s   t o   b e   s t a r t e d   w i t h   m a r k e d   o p t i o n   O p e n   w h o l e   T r a n s p o r d e r ,   a f t e r   c h o o s e   a l l   c h a n n e l s   y o u   w a n t   t o   w a t c h 
 
 o n e   b y   o n e   t o   g e t   c o r r e c t   e c m   b y   e v e r y   c h a n n e l .   A f t e r   t h a t   p l a c e   A C a m d _ l o g . t x t   t o g e t h e r   w i t h   a c a m d _ p a r s e r . e x e   a n d   r u n   i t . 
 
 T h e   p r o g r a m m   w i l l   t r y   t o   p a r s e   a l l   e n t r i e s   c o r r e c t l y   a n d   s a v e   i t   i n   t h e   f i l e   c o p y _ t o _ A C a m d _ P M T . t x t 
 
 Y o u   c a n   d e c i d e   b y   y o u r   s e l f   w h a t   y o u   w a n t   t o   d o   w i t h   t h e   d a t a   s t o r e d   i n   t h i s   f i l e ,   i f   y o u   w a n t   t o   c o p y   i t 
 
 b y   c o p y - p a s t e   i n   t h e   m a i n   f i l e . 
 
 T h e   p r o g r a m m   w a s   w r i t t e n   i n   P H P   a n d   c o m p i l e d   w i t h   b a m c o m p i l e . e x e 
 
 I   a m   n o t   s c i l l e d   i n   o t h e r   l a n g u a g e s   t o   p r o g r a m m   s o m e t h i n g   l i t t l e   l i k e   t h i s   a n d   f o r   m y   p u r p o s e s   i t   w a s   a s   w e l l   e n o u g h . 
 
 B e l l o w   y o u   w i l l   f i n d   t h e   s o u r c e   c o d e   i n   p h p .   F e e l   f r e e   t o   a d d   y o u r   o w n   i d e a s . 
 
 P S :   d o   n o t   f o r g e t ,   t h e   a u t o m a t i c a l   p m t   c h o o s i n g   i s   n o t   a l w a y s   w o r k i n g   c o r r e c t l y   i n   t h e   a c a m d   p l u g i n ,   s o   y o u   h a v e 
 
 t o   e d i t   s u c h   e n t r i e s   m a n u a l y . 
 
 # # # # # # # # # # # 
 
 U s e f u l   i n f o s   f o r   A C a m d   v 0 . 5 . 1 . 0 . u s e r s ,   I   p r e f e r   t h e   l i g h t   m o d e   w i t h o u t   g e t t i n g   t h e   w h o l e   s t r e a m   b y   w a t c h i n g   o n l y   o n e   c h a n n e l 
 
 a t   s a m e   t i m e .   S o   t h e   p r o g r a m m   d o e s n ' t   h a v e   t o   f i l t e r   w h o l e   s t r e a m ,   b u t   o n l y   t h e   o n e   c h a n n e l   t o   s a v e   t h e   p r o c e e s s o r s   c y c l e s 
 
 a n d   a v a i l a b l e   b u s   w i d t h .   B u t   u n f o r t u n a l l y   a c a m d   w o r k s   i n c o r r e c t l y   i n   D v b V i e w e r   w i t h   d i s a b l e d   " O p e n   w h o l e   T r a n s p o r d e r " 
 
 o p t i o n .   T h e   m a i n   p r o b l e m ,   a c a m d   r e q u e s t   t h e   e c m   p i d   o n l y   o n c e   a n d   c a n ' t   l o c k   i t .   S o ,   i t   s e n d s   t h e   e c m   o n l y   o n e   t i m e 
 
 t o   t h e   s e r v e r   a n d   a f t e r   t h e   e c m   s t r e a m   p i d   g e t   l o s t .   S o ,   t h a t   e v e n   i f   y o u   h a v e   w o r k i n g   A C a m p d _ P M T . t x t   i n   f u l l   t r a n s p o r d e r   
 
 m o d e ,   o f t e n   i t   w o n ' t   w o r k   c o r r e c t l y   i n   l i g h t   m o d e ( d i s a b l e d   o p t i o n   o p e n   w h o l e   t r a n s p o r d e r ) . 
 
 B u t   t h e r e   e x i s t   a n   w o r k   a r o u n d ,   s o   t h a t   w h a t   a c a m d   i s n ' t   a b l e   t o   d o ,   d o e s   t h e   v p l u g   p e r f e c t l y .   J u s t   l e t   v p l u g   t o   r e q u e s t 
 
 t h e   r i g h t   e c m   p i d .   A n d   o n l y   w h a t   y o u   n e e d ,   i s   t o   s e t   j u s t   o n e   t i m e   t h e   n e e d e d   e c m   p i d ( s a m e   a s   i n   A C a m d _ p m t . t x t )   a c t i v e   b y   
 
 d o u b l e   c l i c k i n g   o n   i t   i n   v p l u g ' s   m o n i t o r .   B u t   t h e r e   a r e   a g a i n   s o m e   l i m i t a t i o n s   f r o m   v p l u g ' s   s i d e .   
 
 F i r s t l y ,   a u t o   e c m   h a s   t o   b e   d i s a b l e d ,   e l s e   v p l u g   t r i e s   t o   c h o o s e   a l l   a v a i l a b l e   e c m   p i d s   c y c l e d   o n e   b y   o n e . 
 
 I t   i s   a n y w a y   n o t   t h e   g o o d   o p t i o n   f o r   f a s t   c h a n n e l   s w i t c h i n g .   Y o u   j u s t   n e e d   t o   s e t   t h e   n e e d e d   e c m   i n   e v e r y   c h a n n e l   o n l y 
 
 o n e   t i m e .   T h e   n e x t   w h a t   y o u   h a v e   t o   d o   i s   t o   d e l e t e   s o m e   e n t r i e s   i n   v p l u g . i n i .   T h e r e   i s   a n   o p t i o n   i n   v p l u g . i n i ,   t h a t 
 
 d i s a b l e s   v p l u g   f o r   s o m e   p r o v i d e r s ,   s o   j u s t   d e l e t e   s u c h   l i n e s   o r   s e t   s e m i c o l o n   a s   s h o w n   b e l o w 
 
 ; C A I D _ I g n o r e L i s t   =   c a i d l i s t . . . . 
 
 ; P r o v i d e r I D _ I g n o r e L i s t   =   p r o v i d e r l i s t . . . . . 
 
 F r o m   n o w   v p l u g   s h o u l d   r e a d   p m t   a n d   e c m   f r o m   a l l   p r o v i d e r s   a n d   a c a m d   g e t s   t h e   e c m   s t r e a m   c o r r e c t l y . 
 
 
 
 
 
 
 
 / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / 
 
 < ? p h p 
 
 $ d e c o d e a l l = f a l s e ; 
 
 $ e r r e c m = f a l s e ; 
 
 f o r ( $ i = 0 ;   $ i < $ _ S E R V E R [ " a r g c " ] ;   $ i + + )   {   i f ( s t r i s t r ( $ _ S E R V E R [ " a r g v " ] [ $ i ] ,   ' - a l l ' ) )   {   $ d e c o d e a l l = t r u e ;   }   
 
 i f ( s t r i s t r ( $ _ S E R V E R [ " a r g v " ] [ $ i ] ,   ' - e r r e c m ' ) )   {   $ e r r e c m = t r u e ;   }   } 
 
 $ m y f i l e = " " ; 
 
 $ f d = @ f o p e n ( " A C a m d _ l o g . t x t " , " r " ) ; 
 
 i f   ( $ f d = = 0 )   {   $ f = f o p e n ( " e r r o r . t x t " , " w " ) ;   f w r i t e ( $ f , " U n a b l e   t o   o p e n   A C a m d _ l o g . t x t " ) ;   f c l o s e ( $ f ) ;   d i e ( ) ;   } 
 
 w h i l e   ( $ b u f f e r = f g e t s ( $ f d ,   4 0 9 6 ) )   {   $ m y f i l e = $ m y f i l e . $ b u f f e r ;   } 
 
 f c l o s e ( $ f d ) ; 
 
 $ s p l i t t e r = " 
 
 " ; 
 
 $ s p l i t = e x p l o d e ( "   C h :   " , $ m y f i l e ) ; 
 
 a r r a y _ s h i f t ( $ s p l i t ) ; 
 
 f o r e a c h ( $ s p l i t   a s   $ k e y = > $ v a l u e )   { 
 
 $ i n d e x e d = f a l s e ; 
 
 $ n e w t e m p = e x p l o d e ( " \ r \ n " , $ v a l u e ) ; 
 
 $ n e w t e m p 1 = e x p l o d e ( "   -   " , $ n e w t e m p [ 0 ] ) ;   $ n a m e = $ n e w t e m p 1 [ 1 ] ; 
 
 $ s i z e o f = c o u n t ( $ n e w t e m p ) ;   $ f o u n d = f a l s e ; 
 
 f o r ( $ i = 1 ;   $ i < $ s i z e o f ;   $ i + + )   {   
 
 i f ( s t r s t r ( $ n e w t e m p [ $ i ] , '   0 x ' ) )   {   $ f o u n d = t r u e ;   b r e a k ;   }   
 
 i f ( s t r s t r ( $ n e w t e m p [ $ i ] , '   I n d e x = ' ) )   {   $ i n d e x e d = t r u e ;   }   } 
 
 i f ( $ f o u n d )   { 
 
 $ n e w t e m p 1 = e x p l o d e ( "   0 x " , $ n e w t e m p [ $ i ] ) ;   a r r a y _ s h i f t ( $ n e w t e m p 1 ) ; 
 
 $ n e w t e m p 2 = e x p l o d e ( "   " , $ n e w t e m p 1 [ 5 ] ) ; 
 
 i f ( ! $ i n d e x e d   o r   $ d e c o d e a l l )   {   i f (   $ n e w t e m p 1 [ 4 ] ! = " 0 0 0 0 "   o r   $ e r r e c m )   {   $ n e w a r r a y [ ] = $ n e w t e m p 1 [ 0 ] . ' , ' . $ n e w t e m p 1 [ 1 ] . ' , ' . $ n e w t e m p 1 [ 2 ] . ' , ' . $ n e w t e m p 1 [ 3 ] . ' , ' . $ n e w t e m p 1 [ 4 ] . ' , ' . $ n e w t e m p 2 [ 0 ] . ' , ' . $ n a m e ;   }   }   }   } 
 
 $ n e w t e m p 1 = " " ; 
 
 i f ( $ n e w a r r a y )   { 
 
 f o r e a c h ( $ n e w a r r a y   a s   $ k e y = > $ v a l u e )   {   $ n e w t e m p 1 [ $ v a l u e ] = " " ;   } 
 
 $ n e w a r r a y = " " ; 
 
 f o r e a c h ( $ n e w t e m p 1   a s   $ k e y = > $ v a l u e )   {   $ n e w a r r a y = $ n e w a r r a y . $ k e y . $ s p l i t t e r ;   }   } 
 
 $ f = f o p e n ( " c o p y _ t o _ A C a m d _ P M T . t x t " , " w " ) ; 
 
 f w r i t e ( $ f , $ n e w a r r a y ) ; 
 
 f c l o s e ( $ f ) ; 
 
 ? > 
 
 / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / 
 
 