Yes, you can easily adapt the php web service to do that. Our record API function will allow you to create the mp4 files. You would then listen for the recordChunkCreated (instead of the hlsChunkCreated) event. Simple as that!
You can find the exemplar PHP web service code on our Downloads page.