On Sun, 2004-11-07 at 04:39, Steven M. Schultz wrote:

> > >   The other thing which may make life simpler is to deinterlace the
> > >   material with 'yuvdeinterlace'.  Deinterlaced supersampled (to 4:4:4)
> > > 
> > Yes, it would be easier except that every 5 frames or so the field order
> > is incorrect and needs to be swapped.  I'll have a look at y4mscaler -S
> > mode=LINESWITCH so see if I can make it only line switch on a function I 
> > have.
> 
>       Hmm, but if you deinterlace does it matter (much) if the fields are 
>       reversed?  You'll still get the single blended progressive frame out.
> 
Yes, but if the fields are in the wrong order for a particular frame,
although it will be too quick for the eye to see exactly what happens,
one field would be higher than it should be and the other lower.  I tiny
judder would occur, in my case every 5 frames or so.  Unless of course I
don't understand how an interlaced stream is played back to an ordinary
tv :-)
 
>       What kind of capture process produces such a weird "jitter" or 
>       field reversal?  That sounds very strange.

This is material recorded from a commercial film ->VHS PAL
tape->VCR->S-Video connector->DC10+->lavrec (from kernel 2.6.8.1)

Its the same clip I talked about a week or so back and is here:

http://www.scottwaye.com/lstest.avi

>From other responses it appears the vertical shaking is due to the VCR
"playing fast and loose" with the vsync signal.  What introduces the
field swap I don't know, but I 've put a patch in yuvcorrect
(mode=DETERMINISTIC_LINE_SWITCH) which fixes that problem.

With the modifications to y4mshift and yuvcorrect the pipeline looks
like this:

lav2yuv /downloads/lstest.avi | .libs/yuvcorrect -T
DETERMINISTIC_LINE_SWITCH | y4mscaler -O chromass=444 | .libs/y4mshift
-s 2 -p 430 | y4mscaler -O chromass=420_mpeg2 | yuv2lav -o ~/video/a.avi

This converts the above avi to this:

http://www.scottwaye.com/corrected.avi

Which I think I am quite happy with.

If the CVS owners think any of this might be useful I can tidy my mods
up (tabstops, naming conventions, etc) and submit a patch?





-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to