The export was slow because of the sound
I blamed the video encoder. But 36 seconds went by before it was given a single frame.
·1 min read
My editor mixed the whole soundtrack before it drew the first frame. For a 40 minute clip that was 23 seconds of mixing on a PC, 36 seconds before the first frame, and about 660 MB held in memory. On the phone, a 30 minute clip mixed for 41 seconds, which looks exactly like "stuck at Mixing the sound".
Now the sound is mixed one second at a time, in its own worker, while the picture is being made. There is no mixing stage any more, and the memory went with it.
Lesson: measure each stage before touching the one you suspect.