[vlc-devel] Re-initialize an MPEG-TS stream ?

Glen Gray glen at lincor.com
Fri Oct 21 15:03:56 CEST 2005


Hey guys,

I'm looking for advice on how best to re-initialize an MPEG2-TS stream
from a server.

I've the server switching streams to a new stream supposed to represent
fast forward and I've getting lots of this and no picture

[00000270] main video output warning: late picture skipped (5320063)
[00000273] main private warning: backward_pts != dts (33366)
[00000273] main private warning: backward_pts != dts (33367)
[00000273] main private warning: backward_pts != dts (33367)

To get the server to switch streams I send a pause and then I send it a
play with a scale value of 12. The server then sends me an MPEG2-TS
stream of a version of the film that is 1/12th the length. I've verified
that this version of the film works with VLC by copying the file off and
playing it from disk. Worked perfectly.

Interestingly, rewind is working fine.

Afer the play command with the scale value I do the following, as I'd
hoped this would do what I wanted, 

p_sys->i_start = (mtime_t)(f * (double)p_sys->i_length);
p_sys->i_pcr_start = 0;
p_sys->i_pcr       = 0;

But I think I need to more than that.

Thanks in advance for any help you can give,
-- 
Glen Gray <glen at lincor.com>              Digital Depot, Thomas Street
Senior Software Engineer                            Dublin 8, Ireland
Lincor Solutions Ltd.                          Ph: +353 (0) 1 4893682

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html



More information about the vlc-devel mailing list