# Merge recordingfilename.mp4 and recordingfilename.mp4.tmp

**URL:** <https://community.wowza.com/t/merge-recordingfilename-mp4-and-recordingfilename-mp4-tmp/38587>\
**Category:** Wowza Streaming Engine\
**Tags:** server-administration\
**Created:** [March 5, 2014, 12:31pm UTC](https://community.wowza.com/t/merge-recordingfilename-mp4-and-recordingfilename-mp4-tmp/38587 "2014-03-05T12:31:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sathishkumar\_KPS](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@Sathishkumar\_KPS](https://community.wowza.com/u/Sathishkumar_KPS)\
**Post date:** [March 5, 2014, 12:31pm UTC](https://community.wowza.com/t/merge-recordingfilename-mp4-and-recordingfilename-mp4-tmp/38587/1 "2014-03-05T12:31:30Z")

</div>

Hi,

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

Here is the mediainfo of the files

[root@ip-ss-21-98-2 content]# mediainfo 03\_03\_2014\_12\_03\_08.mp4

General

Complete name : 03\_03\_2014\_12\_03\_08.mp4

Format : MPEG-4

Format profile : Adobe Flash

Codec ID : f4v

File size : 5.20 GiB

[root@ip-ss-21-98-2 content]# mediainfo 03\_03\_2014\_12\_03\_08.mp4.tmp

General

Complete name : 03\_03\_2014\_12\_03\_08.mp4.tmp

File size : 38.3 MiB

Could someone help me on this ? Please let me know if you need any other info.

Thanks,

Sathishkumar

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [March 5, 2014, 10:10am UTC](https://community.wowza.com/t/merge-recordingfilename-mp4-and-recordingfilename-mp4-tmp/38587/2 "2014-03-05T10:10:25Z")

</div>

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.

Salvadore
