zhihang wang wrote: > Why the framework of ffmpeg should be as follows: > demutex->decoding->encoding->mutex It's not; it's: demuxer -> decoding -> encoding -> muxing Muxers are very different from mutexes. Does that clear up your confusion? -- -Mike Melanson