<br><br><div class="gmail_quote">2012/5/24 Carl Eugen Hoyos <span dir="ltr"><<a href="mailto:cehoyos@ag.or.at" target="_blank">cehoyos@ag.or.at</a>></span><br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Carl Lindqvist <lulebo@...> writes:<br>
<br>
> 2012/5/24 Carl Eugen Hoyos <cehoyos <at> <a href="http://ag.or.at" target="_blank">ag.or.at</a>><br>
<div class="im">> Alex Cohn <alexcohn <at> ...> writes:<br>
> > > In ffmpeg, deinterlace is performed by avcodec (imgconvert.c<br>
> > > avpicture_deinterlace)<br>
> ><br>
> > This deinterlacer is old, if you have no license issue, please<br>
> > use yadif.<br>
><br>
</div><div class="im">> You are not understanding the issue. The issue is not<br>
> deinterlacing anything, it is producing correct 4:2:0 frames<br>
> for encoding interlaced.<br>
<br>
</div>I just wanted to answer the sentence "In ffmpeg, deinterlace is<br>
performed by avcodec" by Alex Cohn, I did not comment<br>
on your original issue.<br>
<br>
Is your input interlaced frames?<br>
Or do you want to half the framerate of your input?<br>
<div class="HOEnZb"><div class="h5"><br>
Carl Eugen<br>
<br>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</div></div></blockquote></div><br><br>Ok, I misunderstood you.<br><br>Yes, my input is raw SDI video. Interlaced SD 4:2:2 8bit (or 10bit, but I use 8bit). I want the output to be interlaced, full field rade. Right now, swscale produces chroma samples that are scaled from both fields, which give the effect in the image in the stack overflow thread when looking at the final video.<br>
<br>I have been reading what I can find about swscale, but can't really find any info on this. This is the code I use (just standard stuff):<br><br>img_convert_ctx = sws_getContext(destWidth, destHeight,<br>                                                 PIX_FMT_UYVY422,<br>
                                                 c->width, c->height,<br>                                                 c->pix_fmt,<br>                                                 sws_flags, NULL, NULL, NULL);<br>
<br>sws_scale(img_convert_ctx, tmp_picture->data, tmp_picture->linesize,<br>                      0, destHeight, picture->data, picture->linesize);<br><br>Is there a flag that sets this? There are some flags like SWS_FULL_CHR_H_INP, but I can't find any info on what they do.<br>
<br>Regards<br>Carl Lindqvist<br><br>