Hi Matt

>  >I think I must be doing something silly: every time I try to pipe the
> Excellent intuition... :)

Gee, thanks.

>  >output of either png2yuv or ppmtoy4m into mpeg2enc, mpeg2enc complains:
>  >  ERROR: [mpeg2enc] Could not read YUV4MPEG header: bad stream or frame
>  >    header!
>  >
>  >Command lines:
>  >  png2yuv -f 25 -I b -n 1 -L 1 -j foo.png | \
>  >    mpeg2enc -f 8 -o output.mpg silence.m2a
> 
> mpeg2enc != mplex

Yes, of course, how silly of me.  Thanks for that - I couldn't see the wood
for the trees.  The fact that I haven't gotten to bed before 2am for the
past week probably wasn't helping.  A fresh pair of eyes always helps in
cases like this.

> Since you supplied an _input filename_ to mpeg2enc, it is trying
>  to read a YUV4MPEG2 stream from "silence.m2a", and that is failing
>  (because, I assume, it is an MPEG audio stream).

Yep on both counts.  It's all completely and abundantly consistent and
clear, as it should have been to me last night.  I need more sleep. :)

> ps:  My own intuition says that your input PNG image doesn't actually
>      have a 59:54 sample aspect ratio, i.e. you'll need y4mscaler in
>      the pipeline.

For the purposes of this particular exercise I don't need to do the SAR
scaling.  That is, its omission in this case is deliberate.

Thanks again
  jonathan


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to