[Ffmpeg-devel] opening multiple streams

Michael Niedermayer michaelni
Wed Apr 19 12:25:34 CEST 2006


Hi

On Wed, Apr 19, 2006 at 11:20:43AM +0200, Erwin Rol wrote:
> Hey all,
> 
> I am working on an application that receives multiple RTP streams (audio
> and video) and should display them at the same time. 
> 
> I got this kind of working but am running into problems with
> av_find_stream_info(...), which as i understand can not be called from
> more than one thread at the time, is this true ?

indeed, it is due to the avcodec_open /decode in it, a patch which
makes it thread safe would be welcome ...

> 
> The call to av_find_stream_info(...) takes a very long time, what could

take a look at MAX_READ_SIZE and MAX_STREAM_DURATION changing them might
help and a patch which makes them runtime changeable per context would
be welcome too

[...]

-- 
Michael

In the past you could go to a library and read, borrow or copy any book
Today you'd get arrested for mere telling someone where the library is





More information about the ffmpeg-devel mailing list