<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt">>It also sets the interlaced and top_field_first fields of the AVFrame,<br>>except in the case of rawvideo!  Rawvideo output has some special<br>>handling.  I just committed a fix for it and verified the header field<br>>of yuv4mpeg output:<br><br>Thanks for looking into this so quickly!  I applied your patch locally, and indeed the header is correct now!<br><br>I'm not sure why I thought video_size was necessary...I guess I went so far down the rabbit hole yesterday, trying to get raw YUV output to work, that I lost track of what was necessary.  At first, my attempts to export raw YUV crashed out with no error message and a zero-length output file.  But it's working now, without my source-code patch.<br><br>>P.S.  please be aware that if you change the vertical resolution of
 an<br>>interlaced clip in any way, it is automatically deinterlaced because<br>>there is no field-aware scaler.<br><br>That's OK; if I need something like that, I can always use y4mscaler externally.<br><br>At some point, I think I'll figure out kdenlive's plugin API and write some glue code for mjpegtools-libs, so that all our video-processing tools can be used inside kdenlive.  That shouldn't be hard, and would be a nice addition.<br><br>Steven Boswell<br><br></div></body></html>