On Fri, 3 Jun 2005, Luca Bonissi wrote: > I have a problem with PAL DV: > > **ERROR: [lav2yuv] DV PAL YV12 input was not configured at compile time
Sigh, not *that* again. It seems to come up periodically. About the time that folks have forgotten the previous discussion someone else stumbles into the problem. > # ifndef LIBDV_PAL_YV12 > //mjpeg_error_exit1("DV PAL YV12 input was not configured at " \ > "compile time"); > Do you know why you put this restriction? Because libdv couldn't make up its mind about PAL DV being 4:2:0 or 4:2:2? ;) > P.S.: I also tried to compile libdv --with-pal-yuv=YV12 but I had the > same error. So I manully defined the macro LIBDV_PAL_YV12 but the chroma > output was wrong... libdv's handlng of PAL DV was (is?) a bit of a mess. libdv by default changes the 4:2:0 planar output to 4:2:2 packed (YUY2) but there is nothing in the libdv.h file that tells which output format libdv was built to use. Seems weird since PAL DV is 4:2:0. mjpegtools tried to guess (or allow the user to specify) which way libdv was configured - that is what the '--with-pal-yuv' option is for. But, alas, there seems to be a bug somewhere :( Using that option apparently doesn't define the macro LIBDV_PAL_YV12. The whole situation is a mess (as you've noticed). The user was required to guess how libdv was built, and even then things wouldn't work right it seems. It looks like libdv places the output format ("yv12" or "yuy2") into the decoder->sampling member. It is time for the LIBDV_PAL_YV12 issue to be resolved. As the first step in this I have removed the LIBDV_PAL_YV12 usage in mjpegtools. I do not have any PAL equipment I can not test the changes, it is quite possible that PAL DV handling has a bug it did not have before. If there are any PAL DV users who could check the CVS version of mjpegtools (after SourceForge makes the changes available to anonymous cvs) that would be wonderful. Post the problem reports (and fixes ;)) to either the -users or -devel lists Cheers, Steven Schultz ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 _______________________________________________ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users