With Stefano's proposal, I think i'd better continue to work on this, adding also audio filtering and transcoding, and muxing for other streams. A file will be named transcode.c. -- Andrey Utkin