[libdvbpsi-devel] Generate NIT EIT and SDT tables for transport stream
Peppino Incasa
peppino_in_casa at hotmail.com
Wed Apr 23 10:37:05 CEST 2008
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
More information about the libdvbpsi-devel
mailing list