Michael Niedermayer (12023-12-18): > I think the first question is, does this actually need > "massive hacks in ffmpeg CLI" ? Thank you for bringing some sanity. > If you ignore the recommandition that SDL should be run from the main > thread then iam not sure what change would be needed in ffmpeg CLI at all. I must say, I am very dubious about the statement. It is probably an over-simplification for “in the same thread” with caveats. > The last option would maybe be to run some sort of AVExecutor on the > main thread and allow things like muxers to que operations on it. > The muxers would totally unchanged be running on a random thread > but que some operation on the main thread if an external lib, driver or > other needs it. > Naively that feels relatively clean to me Of course. Having that kind of mechanism is obviously necessary anyway. Regards, -- Nicolas George