[libav-api] Parallel Video Transcoding
justin.ruggles at gmail.com
Tue Apr 23 13:29:57 CEST 2013
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
More information about the libav-api