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

Mike Yan mikey at tlcwatch.com
Mon Jun 14 11:46:22 PDT 2004


Ross, thanks a lot. 

I will test the code and let you know the result.


-----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