This should have gone to the list....
--- Begin Message --- Thank you for the reply. That header looks delightfully easy to edit. Here's one from one of my transcode exports:

   YUV4MPEG2 W704 H480 F30000:1001 Ip A0:0
   FRAME

Is the yuv4mpeg man page the best documentation for the header format?

Regards,

Rob

Steven M. Schultz wrote:

On Wed, 7 Jan 2004, Robert W. Fuller wrote:

When you export from a quicktime file to yuv4mpeg, transcode sets the frame order to "progressive/none." This does not work well with programs like "yuvkineco" which will not perform de-interlacing unless ...


    That's a very common problem with programs that have yuv4mpeg2
    output - the header fields are rarely 100% correct.

By the way, is there a simple editor for yuv4mpeg headers?


Not directly, but there are a couple approaches one could take.

    Write a simple wrapper shell script that does a 'read' to get
    the first line - parse it out and replace the necessary tags, echo
    that to echo out, and then pass the rest of the data thru untouched
    with cat.

The other approach uses a couple simple utilities (only in the
cvs version of mjpegtools at the moment I believe) in a pipeline.
'y4mtoyuv' to strip out the header and frame markers, and then
'yuv4mpeg' with all the parameters explicitly set. SLightly
inefficient to go thru a couple process pipeline but it is simple. Something like ' ...produce y4m... | y4mtoyuv |
yuv4mpeg -i t -r 30000:1001 -a 10:11 -w width -h height | mpeg2enc ...


    Cheers,
    Steven Schultz




--- End Message ---


Reply via email to