On Fri, 16 Jan 2004, James Finnall wrote:

> Well, -b 300 didn't work and neither did -b 500.  The man page is interesting 
> though on this setting.  It appears that the default value is 46KB. 

        After seeing how you are producing the video stream I'm beginning
        to have doubts that the (only) problem is a rate control one and
        may be causing the audio problems.

        Oh, for '-f 8' the default buffer size is 220KB (the 46KB is for
        VCD or '-f 1').

> I do have some interesting results to report though, it may be related to this
> bug and maybe help to track it down.  When I couldn't get the current CVS

        I have an idea - hope you can give it a try and see if the results
        are better.

> to build my project.  I moved the build directory back to what I had several
> days ago.  To my surprise it still didn't build.  Exact same error message.

        Hate it when that happens.

> (also -b 300 was set)  Also, Ogle once again is reporting errors in the e0 
> video stream.

        I'm not surprised.  "cat"ing MPEG streams together will do that (it's
        similar to trying to edit MPEG streams with 'dd' in some ways).

> Could my sound drop outs be from undetected buffer overflows?

        I do not think that is the case.

> Since I created a script to run instead of typing the commands each time, I 

        Thanks.   What I think you want to do instead of creating multiple
        .m2v files and appending them together is create a _single_ y4m
        stream that goes into the encoder and produce a _single_ .m2v file
        without any cat commands.   Parentheses (subshell) and semicolons
        are your friends ;) Something similar to this:
         
            (jpeg2yuv #1; jpeg2yuv #2; ...) | mpeg2enc ...

        The big problem in doing that is each jpeg2yuv command generates a
        YUV4MPEG2 header and the lower mjpegtools libraries will declare that
        to be an error (because they are looking for either end of file or
        FRAME\n).   Thus the first line of each command needs to be removed.

        Here is an approach.  It's from memory and hasn't been tested that's
        your part :)).

------------------
#!/bin/sh

JPEG2YUV="jpeg2yuv -v 0 -n 30 -I p -f 29.97 -l 60"

skip1()
     {
     read junk
     }

        ($JPEG2YUV -j photo0.jpeg; \
         $JPEG2YUV -j photo1.jpeg | skip1; \
         ...
         $JPEG2YUV -j photoN.jpeg | skip1) | \
         mpeg2enc  -f 8 -b 6000 -n n -o sequence.m2v

mplex -v 0 -f 8 -o video%d.mpg sequence.m2v audio1.m2a
----------------

        I think the audio problems you're having are happening at the
        splice points caused by cat'ing .m2v files together.   Creating a
        seamless .m2v file may solve your problems.

        No need for the -b since the default for -f 8 is fine.   And -M
        takes an argument - best to leave -M out unless you have a dual
        cpu system (in which case -M 2 makes a lot of sense).   

        Cheers,
        Steven Schultz



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to