4

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?

4

This issue was fixed with 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

  • 5
    You should prefix a + before global_header so that any flags set internally aren't overridden. – Gyan Nov 25 '16 at 6:05
  • Are you saying that this is just a warning and can be ignored? – KC Baltz Feb 19 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 at 2:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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