Ok thx for your answer.

I just managed to make it work. So no more help needed, but thank you very much 
for your effort.

-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im 
Auftrag von Justin Ruggles
Gesendet: Dienstag, 23. April 2013 13:30
An: [email protected]
Betreff: Re: [libav-api] Parallel Video Transcoding

On 04/23/2013 12:57 AM, Lerchenmüller Maximilian wrote:
> Hi @ all,
> 
> I'm trying to write a program for parallel video processing. Therefor it is 
> my intention to create one video process, one audio process and one master 
> process which wraps the other both together.
> 
> I managed to decode and encode video and audio frames in their own processes. 
> But when it comes to putting all together (writing the transcoded file in the 
> master process) I get in trouble.
> 
>  
> 
> Is there any possibility to call av_interleaved_write_frame from two 
> different processes for the same output file? I want the master process to 
> create the file, write the headers for this file and to close the file. The 
> both other processes only should write their packages into the file created 
> by the master.

You can just use a single shared AVFormatContext and use a lock around its 
usage.

-Justin
_______________________________________________
libav-api mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-api
_______________________________________________
libav-api mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-api

Reply via email to