Please don't ask the same question mulitple times (IP camera: stream and record a fragment - #26 by afiq93).
Your question does not seem in any way related to this thread so please continue on the other one. That one is actually not particularly relevant either, you would have been better to start a new one, but for the moment please use the one I linked to.