[Ffmpeg-devel] using libavformat to demux a ts stream

楚材 keweixiao
Wed Aug 9 10:46:13 CEST 2006

  I had wrote a program to demux a network stream with avformat and avcodec.If the stream is PS,the function av_open_input_stream() do not read data to analyse the stream, and the function av_find_stream_info() can check the stream infomation with about 700K data. But if the stream is TS, the  function av_open_input_stream() analyse the stream infomation with about 8M data, it take a long time to recveive so much data from the network before the video can be play normally! Is there any way to decrease the time for TS stream's infomation detecting? thanks!


More information about the ffmpeg-devel mailing list