<p>This issue was fixed with <a href="//github.com/FFmpeg/FFmpeg/commit/955b818" rel="noreferrer">commit 955b818</a>:</p>

<pre><code>commit 955b818cf947473ec94a3fe8aa7f408b119fbbc9
Author: Clément Bœsch &lt;clement@stupeflix.com&gt;
Date:   Thu Sep 1 16:48:45 2016 +0200

    ffmpeg: switch to codecpar
</code></pre>

<p>You can suppress the warning on older version like so:</p>

<pre>
ffmpeg -i Miaow-02-Hidden.m4a -c copy <b>-flags global_header</b> outfile.m4a
</pre>

<p><a href="//github.com/svnpenn/a/blob/db3e32f/music/music-download.sh#L67-L68" rel="noreferrer">Example</a></p>

CC BY-SA 3.0
2016-11-25T06:05:05.770Z
You should prefix a `+` before `global_header` so that any flags set internally aren't overridden.
Gyan
CC BY-SA 4.0
2019-02-19T21:48:24.363Z
Are you saying that this is just a warning and can be ignored?
KC Baltz
CC BY-SA 4.0
2019-03-30T02:08:45.703Z
Does the same requirement apply to formats such as HLS and DASH, ie can one get away without using `-flags +global_header`?
Dennis Mungai
CC BY-SA 3.0
2016-11-25T04:42:00.227Z
2016-11-25T04:42:00.227Z
Zombo
<p>Using this FFmpeg:</p>

<pre><code>ffmpeg-20160127-git-9079e99
</code></pre>

<p>With <a href="http://jplayer.org/audio/m4a/Miaow-02-Hidden.m4a" rel="nofollow noreferrer">this file</a>, if I run this command:</p>

<pre><code>ffmpeg -i Miaow-02-Hidden.m4a -c copy outfile.m4a
</code></pre>

<p>I get this message:</p>

<pre><code>[ipod @ 0000000000694500] Codec for stream 0 does not use global headers but
container format requires global headers
</code></pre>

<p>How can I resolve this warning?</p>

<ffmpeg><codec>
Container format requires global headers
Zombo
# Container format requires global headers

(Asked by: username_0 on 2016-11-25)

Using this FFmpeg:
ffmpeg-20160127-git-9079e99

With this file, if I run this command:
ffmpeg -i Miaow-02-Hidden.m4a -c copy outfile.m4a

I get this message:
[ipod @ 0000000000694500] Codec for stream 0 does not use global headers but
container format requires global headers

How can I resolve this warning?

**Tags:** ffmpeg, codec


---

## 1 answers

### Answer by username_0 on 2016-11-25. Score: 6 | Accepted answer

This issue was fixed with commit 955b818:
commit 955b818cf947473ec94a3fe8aa7f408b119fbbc9
Author: Clément Bœsch 
Date:   Thu Sep 1 16:48:45 2016 +0200

    ffmpeg: switch to codecpar

You can suppress the warning on older version like so:

ffmpeg -i Miaow-02-Hidden.m4a -c copy -flags global_header outfile.m4a

Example

> **Comments:**
> **username_1**: You should prefix a `+` before `global_header` so that any flags set internally aren't overridden.  
> **username_2**: Are you saying that this is just a warning and can be ignored?  
> **username_3**: Does the same requirement apply to formats such as HLS and DASH, ie can one get away without using `-flags +global_header`?  

---

