avvidenc: Add thread-count parameter for libav encoders