[MPlayer-dev-eng] mencoder: 1 input video -> multiple (cropped) outputs

D Richard Felker III dalias at aerifal.cx
Wed Dec 8 04:39:27 CET 2004


On Tue, Dec 07, 2004 at 06:56:27PM -0500, Stephen Webb wrote:
> 
> I'm trying to modify mencoder so I can encode one incoming stream as
> multiple output streams (each in different files).

don't. mencoder is way too horribly ugly and broken to modify it to do
anything...

> The input is a sequence of JPEG images, each actually containing multiple
> "logical" images (e.g. cube map, or left-right stereo).  I want to "crop"
> out each region and feed it to a separate encoder, ending up with multiple
> different output streams.
> 
> I know this is isn't anywhere near a "mainstream" type of feature, and I
> don't have any interest in getting the changes into the mainline
> code.  I'm just trying to get it to work -- can someone tell me the best
> way to hack something like this?
> 
> 
> Splitting up the image ahead of time isn't really an option.  Well, I
> guess it is -- but I really don't want to do that. 

mkfifo fifo1 fifo2 
... | tee fifo1 > fifo2

mencoder fifo1 -vf crop=[crop params 1] ...
mencoder fifo2 -vf crop=[crop params 2] ...

very simple.

rich




More information about the MPlayer-dev-eng mailing list