<div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-10-24 19:49 GMT+11:00 Carl Eugen Hoyos <span dir="ltr"><<a href="mailto:ceffmpeg@gmail.com" target="_blank">ceffmpeg@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">2016-10-24 7:26 GMT+02:00 YIRAN LI <<a href="mailto:mrfun.china@gmail.com">mrfun.china@gmail.com</a>>:<br>
<br>
> I'm researching the impact multi-thread decoding may have on memory usage.<br>
> Does anyone know if enabling multi thread decoding will use more memory ?<br>
<br>
</span>Multi-threaded decoding can be more memory-consuming than single-threaded<br>
decoding, FFmpeg developers do not agree whether this is unavoidable or a<br>
disadvantage of our implementation.<br>
<span class=""><br>
> (so that more threads used, more memory required?)<br>
><br>
> I tried to decode an H.264 encoded 4K video using command:<br>
<br>
>  ffmpeg.exe -v error -i a.mp4  -threads 0 -f null - 2>error.log<br>
<br>
</span>How did you encode the H.264 input file?<br>
Test with eight reference frames and yuv 4:4:4.<br>
<br></blockquote><div><div class="gmail_default" style="font-family:georgia,serif;display:inline">​Hi Carl,</div></div><div><div class="gmail_default" style="font-family:georgia,serif;display:inline"><br></div></div><div><div class="gmail_default" style="font-family:georgia,serif;display:inline">For the test video I used, using -threads 0, -threads​</div> <div class="gmail_default" style="font-family:georgia,serif;display:inline">​1 and -threads 2 launched 6, 8 and 11 threads (although only 6 active)​.</div></div><div><div class="gmail_default" style="font-family:georgia,serif;display:inline">Does that mean this video actually is always single-thread decoded? (so other 5 threads do other jobs) How can I tell if it's being single-thread decoded or multi-thread decoded?</div></div><div><div class="gmail_default" style="font-family:georgia,serif;display:inline"><br></div></div><div><div class="gmail_default" style="font-family:georgia,serif;display:inline">Thanks</div></div><div><div class="gmail_default" style="font-family:georgia,serif;display:inline"><br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Carl Eugen<br>
______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/<wbr>listinfo/libav-user</a><br>
</blockquote></div><br></div></div>