# File is missing 'moov' atom

**URL:** <https://community.wowza.com/t/file-is-missing-moov-atom/39367>\
**Category:** Wowza Streaming Engine\
**Tags:** media-players-and-devices\
**Created:** [October 31, 2012, 5:25am UTC](https://community.wowza.com/t/file-is-missing-moov-atom/39367 "2012-10-31T05:25:55Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dipanjan\_B](https://avatars.discourse-cdn.com/v4/letter/d/5f9b8f/32.png) [@Dipanjan\_B](https://community.wowza.com/u/Dipanjan_B)\
**Post date:** [October 31, 2012, 5:25am UTC](https://community.wowza.com/t/file-is-missing-moov-atom/39367/1 "2012-10-31T05:25:55Z")

</div>

Hi,

I am using WOWZA with Flowplayer.

Today I have encountered a problem with some of the mp4 files.

When I try to play these files I am getting this error:

WARN server comment demo2\_0.mp4 MediaReaderH264.open[2]: java.lang.Exception: QTUtils.parseQTMediaContainer: File is missing ‘moov’ atom.

WARN server comment demo2\_0.mp4 MediaReaderH264.open[2]: java.lang.Exception: QTUtils.parseQTMediaContainer: File is missing ‘moov’ atom.

I have read some of the discussion here and applied … patch but this does not help.

These files are not static files (that means content of these files are not getting changed or recorded live).

Please suggest an way-out.

Note: I have uploaded one such video in youtube.Please check that for reference.

[video=youtube;4Ge\_YwaUxos][http://www.youtube.com/watch?v=4Ge\_YwaUxos&feature=youtu.be[/video]](http://www.youtube.com/watch?v=4Ge_YwaUxos&feature=youtu.be%5B/video%5D)

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [October 31, 2012, 1:38pm UTC](https://community.wowza.com/t/file-is-missing-moov-atom/39367/2 "2012-10-31T13:38:45Z")

</div>

How were these files recorded, exactly? With Wowza? What recording method? What is the source?

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [November 5, 2012, 3:28pm UTC](https://community.wowza.com/t/file-is-missing-moov-atom/39367/3 "2012-11-05T15:28:33Z")

</div>

I can’t get to those files because my anti-virus program says that site is known spyware site.

Try using flv: prefix instead of mp4:

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [November 6, 2012, 2:43pm UTC](https://community.wowza.com/t/file-is-missing-moov-atom/39367/4 "2012-11-06T14:43:00Z")

</div>

I tested demo2.mp4. It appears to be h.264 video/AAC audio in a FLV container with a .mp4 prefix.

I opened it in VLC and looked at Tools \> Codec info, which shows h.264 and AAC. Good so far, however…

Then I played it back in Wowza SimpleVideoStreaming RTMP client with vod application and stream name “mp4:demo2.mp4”, which resulted in no playback and this error in Wowza logs:

> QTUtils.parseQTMediaContainer: File is missing ‘moov’ atom.

Then I played it back in Wowza SimpleVideoStreaming RTMP client with vod application and stream name “fly:demo2.mp4”, and it played back fine without error in client or Wowza server.

I was able to fix it with ffmpeg:

```auto
ffmpeg -i demo2.mp4 -acodec copy -vcodec copy new.mp4

```

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [November 7, 2012, 12:26pm UTC](https://community.wowza.com/t/file-is-missing-moov-atom/39367/5 "2012-11-07T12:26:41Z")

</div>

That file is using vp6 video and mp3 audio, according to VLC.

You will have to transcode the video to h.264.

Richard

---

<div class="post-metadata">

**Author:** ![Randall\_Auriemma](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@Randall\_Auriemma](https://community.wowza.com/u/Randall_Auriemma)\
**Post date:** [November 5, 2012, 5:27am UTC](https://community.wowza.com/t/file-is-missing-moov-atom/39367/6 "2012-11-05T05:27:55Z")

</div>

Hi dbhattacharjee,

You would have to re-encode to create the moov atom. Perhaps: ffmpeg -i input.mp4 -c:v copy -c:a copy output.mp4

More info here: [understanding-the-moov-atom-once-and-for-all](http://learnfromlisa.com/2010/10/understanding-the-moov-atom-once-and-for-all/)

---

<div class="post-metadata">

**Author:** ![Dipanjan\_B](https://avatars.discourse-cdn.com/v4/letter/d/5f9b8f/32.png) [@Dipanjan\_B](https://community.wowza.com/u/Dipanjan_B)\
**Post date:** [November 5, 2012, 2:20am UTC](https://community.wowza.com/t/file-is-missing-moov-atom/39367/7 "2012-11-05T02:20:56Z")

</div>

Hi Richard,

These files are not recorded but they are downloaded from different sites to test playback with WOWZA and Flowplayer.

You can get one of the source file from here:

[http://www.freefilehosting.net/demo2](http://www.freefilehosting.net/demo2)

---

<div class="post-metadata">

**Author:** ![Dipanjan\_B](https://avatars.discourse-cdn.com/v4/letter/d/5f9b8f/32.png) [@Dipanjan\_B](https://community.wowza.com/u/Dipanjan_B)\
**Post date:** [November 6, 2012, 1:54am UTC](https://community.wowza.com/t/file-is-missing-moov-atom/39367/8 "2012-11-06T01:54:05Z")

</div>

I can’t use fixed prefix as ‘flv:’ as file extensions are dynamic in my case and I am targeting Ipad,Iphone etc.

---

<div class="post-metadata">

**Author:** ![Dipanjan\_B](https://avatars.discourse-cdn.com/v4/letter/d/5f9b8f/32.png) [@Dipanjan\_B](https://community.wowza.com/u/Dipanjan_B)\
**Post date:** [November 6, 2012, 2:03am UTC](https://community.wowza.com/t/file-is-missing-moov-atom/39367/9 "2012-11-06T02:03:55Z")

</div>

This also does not help.

---

<div class="post-metadata">

**Author:** ![Dipanjan\_B](https://avatars.discourse-cdn.com/v4/letter/d/5f9b8f/32.png) [@Dipanjan\_B](https://community.wowza.com/u/Dipanjan_B)\
**Post date:** [November 6, 2012, 3:04am UTC](https://community.wowza.com/t/file-is-missing-moov-atom/39367/10 "2012-11-06T03:04:30Z")

</div>

I have uploaded sample file to Google Drive.

[https://docs.google.com/open?id=0B5KSS9HUjGcDemVSTnQ2cEVtVlU](https://docs.google.com/open?id=0B5KSS9HUjGcDemVSTnQ2cEVtVlU)

[https://docs.google.com/open?id=0B5KSS9HUjGcDYkpuOFZBbVU3a0k](https://docs.google.com/open?id=0B5KSS9HUjGcDYkpuOFZBbVU3a0k)

Please download files from here and have a look.

BTW,if these are corrupt files then how google is able to play them ?

---

<div class="post-metadata">

**Author:** ![Dipanjan\_B](https://avatars.discourse-cdn.com/v4/letter/d/5f9b8f/32.png) [@Dipanjan\_B](https://community.wowza.com/u/Dipanjan_B)\
**Post date:** [November 6, 2012, 9:20pm UTC](https://community.wowza.com/t/file-is-missing-moov-atom/39367/11 "2012-11-06T21:20:38Z")

</div>

Thanks for the detailed answer. 🙂

I am now able to play demo2.mp4.

But when I try to apply same technique to demo.mp4 it fails. It seems there is some problem with codecs.

can you please check ?
