Hallo

Some additional notes.

> >       It is usually a good idea to include as much information as possible
> >       (better to have too much than not enough information ;)).
> >
> >       What framesize did you capture the data at?
> I am using Miro DC10plus so I capturing video with 768x576, PAL, 25 fps.
> Excuse me, I wrote all data about my sorce in the first post.
> The question is...
> I am shooting videos nearly every day with my vhs-c camcorder, and then
> transfer data to pc with 5000 mb/s bitrate (768x576)
> When I create vcd or dvd mpeg stream I have a little deformed video in the
> output, because I have in the source square pixel (3:4 or 768x576 but then
> converted it to dvd 720x576 or vcd 352x288 that is not 1:1 aspect ratio)
> For example, when I create vcd, a make:
> lav2yuv lalala.avi | yuvscaler -o VCD | mpeg2enc -s -r 16 -o video.mpg
> So I recieve 352x288 and picture apeears deformed because it can't be
> deformed with 384x288.
That should create the correct file. I think there could be a problem
with the header that tells the wrong aspect ratio so you should try
adding the --aspect|-a option. 

What is the output of yuvscaler when you start the encoding. You should
get something like that:
   INFO: [yuvscaler] output:   frame size:  352x288 pixels (152064
bytes)
   INFO: [yuvscaler] output:       chroma:  4:2:0 JPEG/MPEG-1
(interstitial)
   INFO: [yuvscaler] output:   frame rate:  25/1 fps (~25.000000)
   INFO: [yuvscaler] output:    interlace:  none/progressive
   INFO: [yuvscaler] output: sample aspect ratio:  12:11

That is wrong for PAL, you should have something like 59:54 as sample
aspect ratio. 

When you look at the start of mpeg2enc, check those lines:
   INFO: [mpeg2enc] Aspect ratio code: 8 = 1:0.9375 (4:3 PAL/SECAM for
720x578/352x288 images)
   INFO: [mpeg2enc] Frame rate code:   3 = 25.0 (PAL/SECAM VIDEO /
converted FILM)

What output size do you get when you play back the video with mplayer ?
Something like that:
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xv] 352x288 => 384x288 Planar YV12

Try a command like that:
lav2yuv lalala.avi | yuvscaler -o VCD | mpeg2enc -f 1 -a 2 -o video.m1v

That should force a 4:3 aspect ratio, and mpeg2enc ignores the header.

> Or please, write me, how can I convert 768x576 pal video to dvd compliant
> mpeg2 stream without picture deformatons and (if possible pixels loss) the
> same for vcd.

If the hints from Steven and me do not help, could you send 1 original
frame, and one scaled frame, so we see what happens. 

auf hoffentlich bald,

Berni the Chaos of Woodquarter

Email: [EMAIL PROTECTED]
www: http://www.lysator.liu.se/~gz/bernhard


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to