After changing to -f flv it started working but then after about 10 minutes ffmpeg dies with messages: [flv @ 0x37b6280] Failed to update header with correct duration. [flv @ 0x37b6280] Failed to update header with correct filesize. Is it possible I compiled ffmpeg incorrectly?