<div dir="ltr">Hi.<br><br>It looks like --enable-win32thread solved the issue. Can you please add this into the documentation? I believe it will be really helpful for MinGW users.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-08-06 21:33 GMT+03:00 BugMaster <span dir="ltr"><<a href="mailto:BugMaster@narod.ru" target="_blank">BugMaster@narod.ru</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, 6 Aug 2015 14:32:42 +0300, Dmitry Q wrote:<br>
> Hi. I've compiled x264 from master on Windows 7 with mingw 4.8.2<br>
> POSIX threading, DWARF exceptions (from here:<br>
> <a href="https://sourceforge.net/projects/mingw-w64/files/Toolchainstargetting" rel="noreferrer" target="_blank">https://sourceforge.net/projects/mingw-w64/files/Toolchainstargetting</a><br>
> Win32/Personal Builds/mingw-builds/4.8.2). I've wrote a small<br>
> application to grab the screen contents and encode it with x264. The<br>
> screen itself displays a live metal concert, so the bitrate is<br>
> rather high. I see that x264_encoder_encode() hangs randomly. Pseudo code:<br>
<br>
</span>Hi. Try to compile with --enable-win32thread for native Windows<br>
threads instead of POSIX. Or try another toolchain (from<br>
<a href="http://files.1f0.de/mingw/" rel="noreferrer" target="_blank">http://files.1f0.de/mingw/</a> or <a href="http://komisar.gin.by/mingw/index.html" rel="noreferrer" target="_blank">http://komisar.gin.by/mingw/index.html</a>)<br>
which have pthreads-w32 for POSIX threads instead of winpthreads<br>
included in mingw-w64 builds. There was problems winpthreads before<br>
and I am dunno if they fixed them (and 4.8.2 is pretty old).<br>
<br>
_______________________________________________<br>
x264-devel mailing list<br>
<a href="mailto:x264-devel@videolan.org">x264-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/x264-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/listinfo/x264-devel</a><br>
</blockquote></div><br></div>