Using this FFmpeg:


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?

1 Answer 1


This issue was fixed with commit 955b818:

commit 955b818cf947473ec94a3fe8aa7f408b119fbbc9
Author: Clément Bœsch <[email protected]>
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


  • 7
    You should prefix a + before global_header so that any flags set internally aren't overridden.
    – Gyan
    Nov 25, 2016 at 6:05
  • Are you saying that this is just a warning and can be ignored?
    – KC Baltz
    Feb 19, 2019 at 21:48
  • Does the same requirement apply to formats such as HLS and DASH, ie can one get away without using -flags +global_header? Mar 30, 2019 at 2:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.