Merge recordingfilename.mp4 and recordingfilename.mp4.tmp
I'm using IPcamera to record the live streams and recently while recording a live stream, the recording swap file (recordingfilename.mp4.tmp) was not merged with the actual file (recordingfilename.mp4). Now I'm having two files i.e recordingfilename.mp4.tmp and recordingfilename.mp4. How to merge it and create a new file which can able to play using a vod application
The .tmp file will not be appended to the .mp4 file until the live stream has been stopped. Are you looking at these files while the stream is still being published?
If the live stream has been stopped and there is still a .tmp file that means it was not finished writing to the file, and the recording is not recoverable. This could happen if the server crashed mid stream for example.