Use STM-based queuing for video compression