<div dir="auto">BUT FAILED.<div dir="auto"><br></div><div dir="auto">in sense my mod apparently  just leaks (swsContext?) so it can't play even 20 sec of 1440*1080 video to completion in termux, running on tablet with 3Gb ram.</div><div dir="auto"><br></div><div dir="auto">There seems to be difference if I set thread count manually (on file reading only for now) but it looks negative, in other words higher thread count -> slower total playback .. tried 8, 4,1,16 on 8 cpu tablet. Speed was going down from 18 fps for unaltered cingg to 13 with 8 threads and crash/oom with 16 ;)</div><div dir="auto"><br></div><div dir="auto">And if I try to use sws_scale_frame I just got all blank/black frames  on timeline ....</div><div dir="auto"><br></div><div dir="auto">I think switching to sws_scale_frame is important if we want to try new colormanagement support in ffmpeg.git ...</div><div dir="auto"><br></div><div dir="auto">Resources used, apart from that Blender diff:</div><div dir="auto"><br></div><div dir="auto"><a href="https://github.com/mltframework/mlt/blob/master/src/modules/avformat/filter_swscale.c">https://github.com/mltframework/mlt/blob/master/src/modules/avformat/filter_swscale.c</a></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div></div>