[Ffmpeg-devel] avformat/mpegts reads too much data for lowbitratestreams

Sergio Garcia Murillo sgm254
Thu Jun 9 08:48:54 CEST 2005


 
> I've been using libavformat/codec in an application in the 
> works for some time now, and one of the quirks I have come 
> across is that the mpegts format reader is searching across 
> WAY too many packets (MAX_SCAN_PACKETS) for a dvb specific 
> service description table. This table is not required in the 
> mpeg ts format, and is wrecking havock on my application when 
> trying to tune a radio service without this service table. As 
> a temporary workaround I've disabled the scan for sdt in 
> mpegts_read_header. Without this workaround, the live stream 
> that is to be decoded is delayed anywhere from 5-10 seconds 
> before packets starts to arrive for decoding..

I have the same problem, i was decoding an mpeg2 ts encoded 
with AVS at 200kbs and it never got played until i removed the
handle_packets call. Don't know if there is a better way of 
resolving the problem or not.

Greetings
	Sergio.





More information about the ffmpeg-devel mailing list