<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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">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="gmail-"><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>
<div class="gmail_default" style="font-family:georgia,serif;display:inline">​</div></blockquote><div><div class="gmail_default" style="font-family:georgia,serif;display:inline">​Thanks Carl, does that mean multi-thread decoding doesn't work for all H.264 videos?</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">I'm at home so I can only do the test tomorrow, but could you tell me, if you know, if more threads used </div></div><div><div class="gmail_default" style="font-family:georgia,serif;display:inline">in decoding will </div><span style="font-family:georgia,serif">generally <div class="gmail_default" style="font-family:georgia,serif;display:inline">​</div></span><div class="gmail_default" style="font-family:georgia,serif;display:inline"> consume more memory? ​</div> <div class="gmail_default" style="font-family:georgia,serif;display:inline">​If decoding speed is not that important, is </div></div><div><div class="gmail_default" style="font-family:georgia,serif;display:inline">there any other reason to use multi-thread decoding?</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><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail_default" style="font-family:georgia,serif;display:inline">​</div><br>
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>