[vlc-devel] Re: Doing an lseek() with VOB files ...
John Michael Zorko
j.zorko at att.net
Wed Aug 13 18:47:15 CEST 2003
Jean-Paul,
Firstly, I do appreciate your input and assistance, very much.
> Does the server set the TS discontinuity bit when doing ff/rewind on
> the first packet (PCR packet AFAIK) it can? Because the server needs
> to tell the client that a timing gap occured.
Are you referring to vlc_root/modules/demux/mpeg/system.c, the
DemuxTS() function? OK, this is what i've done to try to narrow the
problem down:
else
{
/* This can indicate that we missed a packet or that the
* continuity_counter wrapped and we received a dup
packet:
* as we don't know, do as if we missed a packet to be
sure
* to recover from this situation */
msg_Warn( p_input,
"packet lost by TS demux for PID %d: current
%d, packet %d",
i_pid,
p_es_demux->i_continuity_counter & 0x0f,
p[3] & 0x0f );
b_lost = 1;
p_es_demux->i_continuity_counter = p[3] & 0x0f;
FILE *pFile = fopen( "//Users//jmzorko//vlc_debug.txt", "a+" );
fprintf( pFile, "* " );
fclose( pFile );
} /* not continuous */
... I put the fopen / fprintf in system.c, and then ran the test
(server VLC, client VLC, telling server VLC to seek and seeing what
shakes with the client VLC). The results are interesting -- the "*"
only appeared in the vlc_debug.txt file 7 times, though I told the
server VLC to seek dozens of times. Does this indicate that the
discontinuity bit isn't always being set by the server VLC?
> From file you read a MPEG2-PS (I guess) and from the server you read
> an SP-TS. This SP-TS goes into the ts_dvbpsi (or ts) demuxer and then
> to the ps demuxer. While the file goes directly into the ps demuxer.
... haven't gotten this far yet.
Regards,
John
Falling You - exploring the beauty of voice and sound
New EP, "hope thrown down," available now at
http://www.mp3.com/fallingyou
--
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>
More information about the vlc-devel
mailing list