Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-11-25T06:05:05.770Z
Answers.Text: You should prefix a `+` before `global_header` so that any flags set internally aren't overridden.
Answers.UserDisplayName: Gyan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-19T21:48:24.363Z
Answers.Text: Are you saying that this is just a warning and can be ignored?
Answers.UserDisplayName: KC Baltz
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-30T02:08:45.703Z
Answers.Text: Does the same requirement apply to formats such as HLS and DASH, ie can one get away without using `-flags +global_header`?
Answers.UserDisplayName: Dennis Mungai
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-11-25T04:42:00.227Z
Answers.LastActivityDate: 2016-11-25T04:42:00.227Z
Answers.UserDisplayName: Zombo
Body: <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>
  
Tags: <ffmpeg><codec>
Title: Container format requires global headers
UserDisplayName: Zombo
ThreadText: # Container format requires global headers
  
  (Asked by: username_0 on 2016-11-25)
  
  Using this FFmpeg:
  
  ```
  ffmpeg-20160127-git-9079e99
  
  ```
  
  With [this file](http://jplayer.org/audio/m4a/Miaow-02-Hidden.m4a), 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](//github.com/FFmpeg/FFmpeg/commit/955b818):
  
  ```
  commit 955b818cf947473ec94a3fe8aa7f408b119fbbc9
  Author: Clément Bœsch <clement@stupeflix.com>
  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](//github.com/svnpenn/a/blob/db3e32f/music/music-download.sh#L67-L68)
  
  > **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`?  
  
  ---
  
  