[FFmpeg-devel] Questions about the framework of ffmpeg

zhihang wang zhihang.wang
Fri Jun 26 03:03:36 CEST 2009


Why the framework of ffmpeg should be as follows:
  demutex->decoding->encoding->mutex
For example, if the the input format is AVI , the audio is mp3, the video is
h.264.
the output format is AVI, the audio is mp2, the video is wmv2.

Then for every stage in the transcoding process, I think the following
flowchart will be more clear.

First deciding the input and the output format and the corresponding
functions.
Then following the
  demutex->decoding->encoding->mutex
But now in ffmpeg, it have to decide the format in every process. For
example, for video, it will be
 case h.264
   break;
 case wmv
   break;
 case ...
   break;

-- 
Best Regards
zhihang wang



More information about the ffmpeg-devel mailing list