2012-07-04, 09:56
(2012-07-02, 19:37)Drymex Wrote: @jpsdr: is there a tutorial on how to build an mt-enabled ffmpeg that works with XBMC?
There is a toturial on how to build XBMC, in the developpement forum (toturial is on Wiki).
After, i modify the DVDVideoCodecFFmpeg.cpp file with :
Code:
/* Only allow slice threading, since frame threading is more
* sensitive to changes in frame sizes, and it causes crashes
* during HW accell */
bool disable_mt_frame=true;
#ifdef HAS_DX
disable_mt_frame=g_guiSettings.GetBool("videoplayer.usedxva2");
#endif
if (disable_mt_frame) m_pCodecContext->thread_type = FF_THREAD_SLICE;
else m_pCodecContext->thread_type = FF_THREAD_FRAME;
There is apparently others issues than DXVA with MT, but i've not encounter them until now. This is at least working fine for me.
Disable DXVA2 to have MT with the modification i've posted, and no need of course if you're under XP, because DXVA2 is not supported.