Dik Takken wrote:
> 
> Hi all,
> 
> I was just trying to create a single MPEG2 file from multiple DV files,
> where each DV file is treated differently (different denoising etc). I
> tried to do this:
> 
> ( scriptA.sh ; scriptB.sh ) | y4mscaler ... | mpeg2enc ...
> 
> The shell scripts each produce a yuv stream on stdout. These streams are
> concatenated and fed to the stdin of y4mscaler and other utils.
> 
> Unfortunately, it turns out that this does not work. Some (all?) MJPEG
> tools panic when they find a new stream header in the middle of a yuv
> stream.
> 
> Is there any way to make this work? Will it work when I strip the
> headers from the yuv streams? If so, how can I strip the yuv header from
> a shell script?

Steven M. Shultz gave me the solution to this problem a while ago.  You
need to create a bash function to strip out the header line from the
second (and subsequent) yuv streams.

e.g.

[start of script]
#!/bin/bash
skip1()
        {
        read junk
        cat
        return 0
        }

( scriptA.sh ; scriptB.sh | skip1 ; scriptC.sh | skip1 ) | y4mscaler ...
| mpeg2enc ...
[end of script]


Dave.


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to