Locutus wrote:
>
> I wanted to repost this as I haven't truely gotten any responses. Another
> poster accidently posted a new post as a response to my previous post.
>
> While trying to deinterlace a YUYV422 image stream, I'm getting green
> tinted output. The source is interlaced DV video. The process I'm
> following is first converting the YUYV422 images to YUV420P using
> sws_scale. The resultant frame is then passed to the
> avpicture_deinterlace method. The deinterlaced frame is then converted
> back to YUYV422 for ouput using the sws_scale method (different context of
> course). There is no resizing being performed along the way.
>
> I have another interlaced source that is MPEG2. When it reaches the same
> process it is also in YUYV422 pixel format, but it succeeds as designed.
> The only difference between the two that I'm aware of is that the DV image
> is interlaced and has weave or bob specified as the deinterlace method
> while the mpeg2 is interlaced and has weave only specified (DirectShow
> media sample properties).
>
> Any ideas why the green tint? Is there any way to specify the type of
> deinterlacing to perform?
>
Apparently the issue had to do with the resampling algorithm used in the
sws_scale call, specifically while setting up the context. From what I can
tell, when converting from the YUYV422 to YUV420P colorspace, then
performing the deinterlace, then converting back to the YUYV422 colorspace,
the green tint occurs while using the following resampling algorithms:
gauss, bicubic, and X. As bicubic seems to be the one used in the samples,
it was causing the problem. The lanczos algorithm simply causes an access
violation while performing the above procedure. The other algorithms work
without issue. This was found in revision 13712.
--
View this message in context:
http://www.nabble.com/avpicture_deinterlace-tp19000332p19005155.html
Sent from the libav-users mailing list archive at Nabble.com.
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user