<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Thank you man it worked!!!!<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 14.02.18 01:44, salsaman wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAA74=eV_nb+dz775FLH7kAJuOVOvCxkMMHJzQ=cLZxdrDOUyyA@mail.gmail.com">
      <div dir="ltr">
        <div>
          <div>You may need something like:<br>
            <br>
              /* Some formats want stream headers to be separate. */<br>
              if (oc->oformat->flags & AVFMT_GLOBALHEADER)<br>
                c->flags |= AV_CODEC_FLAG_GLOBAL_HEADER;<br>
            <br>
          </div>
          where oc is your AvFormatContext * and c is your
          AvCodecContext.<br>
          <br>
          <br>
        </div>
        Gabriel.<br>
        <br>
        <div>
          <div class="gmail_extra"><br clear="all">
            <div>
              <div class="gmail_signature"
                data-smartmail="gmail_signature">
                <div dir="ltr">
                  <div>
                    <div dir="ltr"><br>
                      <a href="http://lives-video.com" target="_blank"
                        moz-do-not-send="true">http://lives-video.com</a><br>
                      <a
                        href="https://www.openhub.net/accounts/salsaman"
                        target="_blank" moz-do-not-send="true">https://www.openhub.net/accounts/salsaman</a><br>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <br>
            <div class="gmail_quote">On Tue, Feb 13, 2018 at 11:14 AM,
              Yuriy Pryyma <span dir="ltr"><<a
                  href="mailto:priymayuriy@gmail.com" target="_blank"
                  moz-do-not-send="true">priymayuriy@gmail.com</a>></span>
              wrote:<br>
              <blockquote class="gmail_quote" style="margin:0 0 0
                .8ex;border-left:1px #ccc solid;padding-left:1ex">
                <div text="#000000" bgcolor="#FFFFFF">
                  <p>I have set output format to dash in muxing.c(I have
                    removed audio stream) <br>
                    Here: <br>
                        avformat_alloc_output_<wbr>context2(&oc,
                    NULL, "dash", filename); <br>
                    Program generated "chunk-stream0-00001.m4s"
                    "init-stream0.m4s" "main.mpd" <br>
                    Looks like everything is good, but video is black
                    when playing using MP4Client <br>
                    Note that other containers(.avi, .ts) looks good. <br>
                    During generation that was warnings <br>
                        [dash @ 0xca1aa0] Codec for stream 0 does not
                    use global headers but container format requires
                    global headers <br>
                        [mp4 @ 0x11f9e00] Codec for stream 0 does not
                    use global headers but container format requires
                    global headers <br>
                    What I`m doing wrong? <br>
                    <br>
                    Thank you in advance. </p>
                  <p>Sorry by chance send to "<a
                      href="mailto:libav-user@ffmpeg.org"
                      style="font-family:"Times New
Roman";font-size:medium;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)"
                      target="_blank" moz-do-not-send="true">libav-user@ffmpeg.org</a>"<br>
                  </p>
                </div>
                <br>
                ______________________________<wbr>_________________<br>
                Libav-user mailing list<br>
                <a href="mailto:Libav-user@ffmpeg.org"
                  moz-do-not-send="true">Libav-user@ffmpeg.org</a><br>
                <a href="http://ffmpeg.org/mailman/listinfo/libav-user"
                  rel="noreferrer" target="_blank"
                  moz-do-not-send="true">http://ffmpeg.org/mailman/<wbr>listinfo/libav-user</a><br>
                <br>
              </blockquote>
            </div>
            <br>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Libav-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a>
<a class="moz-txt-link-freetext" href="http://ffmpeg.org/mailman/listinfo/libav-user">http://ffmpeg.org/mailman/listinfo/libav-user</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>