10sec video is saved as 1sec video

This code says if (fb) is true, meaning zero, do something. You are using (fb) as a Boolean in this code. Is this what you intended to write?