Generate NIT EIT and SDT tables for transport stream

Peppino Incasa <[email protected]>
Newsgroups gmane.comp.video.videolan.libdvbpsi.devel
Message-ID <BLU114-W3AEA5B5B0CCC7F56BCF63A5E30__500.084626446728$1208939885$gmane$org@phx.gbl>
HI,
i have realizaded a file for decoder/generator for the NIT table. But when I use the module of vlc for generare the table this don't work. 	
This problem occurs even when I try to genereare tables EIT and SDT. The code for generate EIT is this:

 static void GetEIT( sout_mux_t *p_mux, sout_buffer_chain_t *c )
{
    sout_mux_sys_t       *p_sys = p_mux->p_sys;
    block_t              *p_eit;
    dvbpsi_eit_t         eit;
    dvbpsi_psi_section_t *p_section;
    int i;

for(i=0;i < p_sys->i_num_pmt; i++)
dvbpsi_InitEIT(&eit,p_sys->i_pmt_program_number[i],1,1,1,1,1,0x4E);

for ( i = 0; i < p_sys->i_num_pmt; i++ )
dvbpsi_EITAddEvent(&eit,p_sys->i_pmt_program_number[0],0x000030000,0x00004000,1,0);

p_section=dvbpsi_GenEitSections(&eit);

p_eit=  WritePSISection( p_mux->p_sout, p_section );

PEStoTS( p_mux->p_sout, c, p_eit, &p_sys->eit );
      dvbpsi_DeletePSISections( p_section );
        dvbpsi_EmptyPAT( &eit );
}

When i see the video for vlc the output is this:
libdvbpsi debug (PAT decoder): Table version 23, i_extension 19873, section   0 up to   0, current 1
libdvbpsi debug (PMT decoder): Table version 19, i_extension     1, section   0 up to   0, current 1
libdvbpsi error (PSI decoder): TS duplicate (received 0, expected 1) for PID 0

Because?

Thank you,
peppino.
_________________________________________________________________
Divertiti con le nuove EMOTICON per Messenger!
http://intrattenimento.it.msn.com/emoticon 
_______________________________________________
libdvbpsi-devel mailing list
[email protected]
http://mailman.videolan.org/listinfo/libdvbpsi-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.