On Thu, Aug 31, 2017 at 12:21 PM Dan Dennedy <d...@dennedy.org> wrote:
> On Thu, Aug 31, 2017 at 9:15 AM Dan Dennedy <d...@dennedy.org> wrote:
>
>> On Thu, Aug 31, 2017 at 9:13 AM Ricardo Jimenez Hurtado <
>> jimenezhurtadorica...@gmail.com> wrote:
>>
>>> I have compile the mlt with sdl2 support and i obtain a blank screen
>>> without video, I have disabled the sdl2 support in configure file and the
>>> output is ok
>>>
>>> I am usir Ubuntu 16.04 with nVidia GTX950 graphics card
>>>
>>>
>> I have the same problem, but it is working for me on macOS. I do not yet
>> know the reason and have had limited time to spend on it. Use SDL 1.2 or an
>> older MLT version in the meantime.
>>
>
> Upon further investigation, this is due to using threads in MLT and trying
> to do things with SDL2 not on the main thread. One solution is put the SDL2
> video code into melt.c, and perhaps only have sdl_audio in the module.
> However, that does not help melted or perhaps other applications.
> There can be a more complicated solution involving putting display events
> into a queue on the SDL consumer thread, receiving them in the melt.c main
> thread, and subsequently firing an mlt_event (non-queued) on the sdl
> consumer for the video display. However, that does not help other apps
> either without major changes to them.
>
> It occurred to me that I ought to try moving all SDL video related
function calls onto the same thread even though it is not the main thread,
and it worked! It is the video thread in the module. I hope it works for
others. Please try it and report.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mlt-devel mailing list
Mlt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlt-devel