[Live-devel] How to recover from parsing exceptional datasituation!

Mike Yan mikey at tlcwatch.com
Mon Jun 14 17:13:50 PDT 2004


Hi Ross,

I have tested the new code of live media. The new one does not get robust
result as you said. New version code takes even longer to recover than old
version's each time when it get bad data. However it never dies in the
recovering process and that is better than the old code.


-----Original Message-----
From: live-devel-bounces at ns.live.com [mailto:live-devel-bounces at ns.live.com]
On Behalf Of Ross Finlayson
Sent: Monday, June 14, 2004 3:13 AM
To: LIVE.COM Streaming Media - development & use
Subject: Re: [Live-devel] How to recover from parsing exceptional
datasituation!


>I have been running live.com library to streaming our mpeg2 source for a 
>while. So far the application runs smooth and reliable.
>But I got some inconsistent problem when I switch data source between 
>different channels. Sometimes it was fine when I switched channels. 
>Sometimes it kept giving me the error msg say 
>"MPEG1or2VideoStreamParser::parseSlice(): Saw unexpected code 000001BA". 
>And sometimes it took a long time to recover it, sometimes it would not 
>recover.
>
>It seems to me that live library do not like switching from different data 
>sources. It could not handle exceptional data well. Is there any fast way 
>to recover from data exception when switching data source?

Mike,

In your case, the "Saw unexpected code" (and similar) error messages are 
inevitable, because the switching between input channels will usually not 
happen at a 'clean' place, so the MPEG parsing code will complain for a 
while.  However, the MPEG parsing code should be able to recover eventually.

I have just installed a new version (2004.06.14) of the "LIVE.COM Streaming 
Media" code (specifically, the "MPEG1or2Demux" class) that should be more 
robust in how it handles data like yours.  Please try it, and let us know 
if it works better for you.


	Ross Finlayson
	LIVE.COM
	<http://www.live.com/>

_______________________________________________
live-devel mailing list
live-devel at lists.live.com
http://lists.live.com/mailman/listinfo/live-devel




More information about the live-devel mailing list