On Sun, 5 Jan 2003, beatrice wrote:

> Hi all.
> 
> I have a mpg file and I'd like to make a VCD (a SVCD will be ok just the
> same) out of it but I didn't succeed so far.
> 
> The file is a MPEG1 video 720x480 NTSC 29.97 fps 3750kbps (that's what
> mplayer tells)
> 
> I demuxed it with bbdmux, and the video stream I got plays well.
> 
> Then to get a VCD format I tried several commands, none of them worked.
> Here's the command I used (I played a lot with the options but that's
> the basic command I've used)
> 
> cat video.m1v | mpeg2dec -o YUVh | yuvscaler -n n -O VCD | mpeg2enc -f 1
> -o video_vcd.m1v
> 
> (I've also tried -F 1 -F 4 and -I 1)

-I 1 is needed as VCD frames (only 240 vertical lines) are not 
interlaced. Even otherwise your input appears to be converted film and
so progressive to start with (mpeg1 is for progressive video)

> 
> When I try to watch the output video file "video_vcd.m1v" it's all
> filled with colored vertical lines.  Looks like the original video is
> deformed.
> 
> At the bottom of this message there's the first part of the command's
> ouput.

looks alright to me  -- actually you dont need yuvscaler in the
chain: -o YUVh generates 352x240 frames needed for VCD. Pass -I 0
-a 2 to mpeg2enc as mpeg2dec may not set the progressive flag and
aspect ratio correctly. None of these will explain the colored vertical
lines you see so check the input to mpeg2enc using yuvplay:

mpeg2dec -s -o YUVh video.mpg | yuvplay

> 
> Maybe I'm messing something with the framerate (becomes 23.97, don't know
> why); I really don't know where to start, the more I read the more I get
> confused: any hint will be much appreciated.

23.97 is most probably the correct frame rate as detected by mpeg2dec..

> 
> Thanks in advance,
>        beatrice.
> 

Selva

> P.S. I wish to all of you a great 2003!!

Happy new year to you too !

> 
> --- command output starts here
> 
> mpeg2dec-0.2.1-mjpegtools-0.6 - by Michel Lespinasse <[EMAIL PROTECTED]>
> and Aaron
> +Holtzman
> Using MMX for IDCT transform
> Using 3DNOW for motion compensation
>    INFO: [yuvscaler] yuvscaler (version 1.6.0) is a general scaling
>    utility for
> +yuv frames
>    INFO: [yuvscaler] (C) 2001 Xavier Biquard <[EMAIL PROTECTED]>
>    INFO: [yuvscaler] yuvscaler -h for help, or man yuvscaler
>    INFO: [yuvscaler] VCD output format requested in NTSC norm
>    INFO: [yuvscaler] yuvscaler input:   frame size:  352x240 pixels
>    (126720 bytes)
>    INFO: [yuvscaler] yuvscaler input:   frame rate:  24000/1001 fps
>    (~23.976024)   INFO: [yuvscaler] yuvscaler input:    interlace:
>    anyone's guess
>    INFO: [yuvscaler] yuvscaler input: sample aspect ratio:  2000:1523
>    INFO: [yuvscaler] from 352x240, take 352x240+0+0
>    INFO: [yuvscaler] scale to 352x240, 352x240 being 
>displayed,NOT_INTERLACED/PROGRESSIVE
>    INFO: [yuvscaler] Scaling uses the RESAMPLE algorithm,
>    INFO: [yuvscaler] without line switching,
>    INFO: [yuvscaler] without time forwarding.
>    INFO: [yuvscaler] frame rate: 23.976 fps
>    INFO: [yuvscaler] Scaling ratio for width is 1 to 1
>    INFO: [yuvscaler] and is 1 to 1 for height
>    INFO: [yuvscaler] Specific downscaling routing number 4
>    INFO: [yuvscaler] yuvscaler output:   frame size:  352x240 pixels
>    (126720
> +bytes)
>    INFO: [yuvscaler] yuvscaler output:   frame rate:  24000/1001 fps
> +(~23.976024)
>    INFO: [yuvscaler] yuvscaler output:    interlace:  none/progressive
>    INFO: [yuvscaler] yuvscaler output: sample aspect ratio:  2000:1523
>    INFO: [mpeg2enc] VCD default options selected
>    INFO: [mpeg2enc] Selecting VCD output profile
>    INFO: [mpeg2enc] Assuming norm NTSC
> ++ WARN: [mpeg2enc] No aspect ratio specifed and no guess possible:
> assuming 4:3+display aspect!
>    INFO: [mpeg2enc] Encoding MPEG-1 video to video_vcd.m1v
>    INFO: [mpeg2enc] Horizontal size: 352 pel
>    INFO: [mpeg2enc] Vertical size: 240 pel
>    INFO: [mpeg2enc] Aspect ratio code: 12 = 1:1.1250 (4:3 NTSC for
> +720x480/352x240 images)
>    INFO: [mpeg2enc] Frame rate code:   1 = 24000.0/1001.0 (NTSC 3:2
>    pulldown
> +converted FILM)
>    INFO: [mpeg2enc] Bitrate: 1151 KBit/s
>    INFO: [mpeg2enc] Field order for input: none/progressive
>    INFO: [mpeg2enc] New Sequence every 700 Mbytes
>    INFO: [mpeg2enc] Assuming non-video stream of 230 Kbps
>    INFO: [mpeg2enc] Search radius: 16
>    INFO: [mpeg2enc] GOP SIZE RANGE 9 TO 15
>    INFO: [mpeg2enc] Setting colour/gamma parameters to "NTSC"
>    INFO: [mpeg2enc] Progressive format frames = 1
>    INFO: [mpeg2enc] mpeg1 - setting intra_dc_precision = 0
>    INFO: [mpeg2enc] Buffering 39 frames
>    INFO: [yuvscaler] Frame number 0
>    INFO: [mpeg2enc] SETTING 3DNOW and MMX for QUANTIZER!
>    INFO: [mpeg2enc] SETTING MMX for MOTION!
>    INFO: [mpeg2enc] SETTING MMX for TRANSFORM!
>    INFO: [mpeg2enc] SETTING MMX for PREDICTION!
>    INFO: [yuvscaler] Frame number 1
>    INFO: [yuvscaler] Frame number 2
> ...........
> ..........
> 
> 
> 



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to