On Tue, 15 Jun 2004 [EMAIL PROTECTED] wrote:

> come for me to burn it to DVD.  I rendered my film to AVI/DV and
> then use lav2yuv to pipe it to mpeg2enc and mp2enc.  Following that,
> I use mplex to create DVDauthor compatible output and there
> I run into my problem.  Everything is 29.97 fps throughout, but
> after mplex I'm left with 23.976 fps.  Here's what I think
> will be helpful.  Any thoughts on the matter would be greatly
> appreciated.  I'd prefer 29.97 (30) fps output for my final product.

        I think the output is just fine...

> lav2yuv c0.avi01 | \
> mpeg2enc -I 0 -f 8 -q 5 -F 4 -V 230 -b 7500 -r 32 -2 1 -4 1 -H -n n -P -o 
> c0.avi01.m2v

        -F 4 is redundant if the input is already at ~30 fps.   -P only
        has effect if you're generating B frames and the default is -R 0
        (no B frames).   -f 8 implies "-V 230" and the video norm can be
        inferred from the 720x480 frame size so -n n isn't needed.

        What does the initial output of mpeg2enc say?   Does it see the
        input rate as 29.97?  If not then that's where a problem might creep 
        in as the encoder is told to override the input stream rate.

        When I have used "-r 32" or "-r 16" with mpeg2enc I have seen
        artifacting (in some cases quite severe).   If you're going to do that
        I would suggest either adding "-R 2" or "--no-dualprime-mpeg2" to
        the options (the latter will retain the bitrate savings of not
        using B frames).

> [root]# mplex -f 8 -o c0.avi01.mpg c0.avi01.m2a c0.avi01.m2v
>    INFO: [mplex] Scanning for header info: Video stream e0 (c0.avi01.m2v) 
>    INFO: [mplex] VIDEO STREAM: e0
>    INFO: [mplex] Frame width     : 720
>    INFO: [mplex] Frame height    : 480
>    INFO: [mplex] Aspect ratio    : 4:3 display
>    INFO: [mplex] Picture rate    : 29.970 frames/sec
>    INFO: [mplex] Bit rate        : 7500000 bits/sec
>    INFO: [mplex] Vbv buffer size : 229376 bytes

        30000/1001 is what mplex saw, so that's right.

> [root]# tcprobe -i c0.avi01.mpg
> 
> [tcprobe] MPEG program stream (PS)
> [tcprobe] summary for c0.avi01.mpg, (*) = not default, 0 = not detected
> import frame size: -g 720x480 [720x576] (*)
>      aspect ratio: 4:3 (*)
>        frame rate: -f 23.976 [25.000] frc=1 (*)
>                    PTS=0.1780, frame_time=41 ms, bitrate=7500 kbps

        I think tcprobe is dazed/confused ;)   Have you tried something like
        'mplayer' or 'xine' on the resulting file?   I know mplayer will
        print out a lot of info about a file when it starts up - that info
        might be useful.   

        I've made quite a few DVDs and haven't seen mplex set the wrong frame
        rate so it's quite a mystery where the 23.976 is coming from.

        Cheers,
        Steven Schultz



-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to