[libav-api] Parallel Video Transcoding

Lerchenmüller Maximilian m.lerchenmueller at BIHLER.de
Tue Apr 23 13:34:17 CEST 2013


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: libav-api-bounces at libav.org [mailto:libav-api-bounces at libav.org] Im Auftrag von Justin Ruggles
Gesendet: Dienstag, 23. April 2013 13:30
An: libav-api at libav.org
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
libav-api at libav.org
https://lists.libav.org/mailman/listinfo/libav-api


More information about the libav-api mailing list