Hi Michael,
many thanks for your reply.
I've used some mutex for synchronizing  
threads.
I've tried to decode only keyframe, and all seems to work fine.

Instead if I try to decode the full stream, the other frames (no key frames), 
are wrong.
In particular the frames of B stream, seem to be decoded based on 
the key frame of A stream, and viceversa.

thanks,
Fabio.



>----Messaggio 
originale----
>Da: [email protected]
>Data: 27/09/2009 1.38
>A: "Libav* 
user questions and discussions"<[email protected]>
>Ogg: Re: [libav-user] 
Multistream with FFMPEG !!
>
>On Fri, 25 Sep 2009 08:58:48 -0400, 
<[email protected]> wrote:
>> Hi to all,
>> I'm realizing an application to 
displaying more than one MPEG4 network  
>> streaming. I used ffmpeg library to 
decode the streaming, but if  I try  
>> to decode two streams in  the same 
time, it doesn't work fine.
>> Is it possible to use ffmpeg libraries to make 
this kind of application ?
>
>It works fine if you use only one thread.  In 
order to have multiple  
>threads each decoding their own stream, you need to 
synchronize access to  
>several functions.  One important one is 
"avcodec_open".  Search this list  
>to find more details.
>
>-- 
>Michael 
Conrad
>IntelliTree Solutions llc.
>513-552-6362
>[email protected]

>_______________________________________________
>libav-user mailing list

>[email protected]
>https://lists.mplayerhq.hu/mailman/listinfo/libav-
user
>


_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to