<div dir="ltr">You can start here: <a href="https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-bad-libs/html/gst-plugins-bad-libs-h264parser.html" target="_blank">https://gstreamer.<wbr>freedesktop.org/data/doc/<wbr>gstreamer/head/gst-plugins-<wbr>bad-libs/html/gst-plugins-bad-<wbr>libs-h264parser.html</a><br>You need access parser class and get slice types with macros like <span style="color:rgb(0,0,0);font-family:cantarell,sans-serif">GST_H264_IS_P_SLICE and similar functions. I am not sure how it works thought,<br>Did you tried to stream AAC only. It seems like your problem not gstreamer, but inability to config wowza <br>(</span>Audio codec:PCM_BE isCompatible:false<br>Video codec:UNKNOWN[0] isCompatible:false<span style="color:rgb(0,0,0);font-family:cantarell,sans-serif">) tells something,<br> where neither I, neither most of here can help you.<br></span><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 21, 2017 at 4:14 PM, Nicolas Castillejos <span dir="ltr"><<a href="mailto:djos06@gmail.com" target="_blank">djos06@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  

    
  
  <div bgcolor="#FFFFFF">
    <p>
    </p>
    <div class="gmail-m_2155099440117251484gmail-m_-8653466576254998529m_3341666876865109683moz-text-html" lang="x-unicode">
      <div dir="ltr">
        <div>Hello everyone,</div>
        <div><br>
        </div>
        <div>I'm trying to start a stream on Wowza programmaticaly by
          feeding the stream myself with packets comming from GStreamer.</div>
        <div>Wowza provides an API called "Publisher API" :
(<a class="gmail-m_2155099440117251484gmail-m_-8653466576254998529m_3341666876865109683moz-txt-link-freetext" href="http://www.wowza.com/resources/serverapi/4.5.0/com/wowza/wms/stream/publish/Publisher.html" target="_blank">http://www.wowza.com/resource<wbr>s/serverapi/4.5.0/com/wowza/wm<wbr>s/stream/publish/Publisher.htm<wbr>l</a>)</div>
        <div>it enables you to publish a stream on Wowza with Java Code
          by feeding the stream with byte[] (packets).</div>
        <div>What I'm trying to do is to read a mkv file on disk with
          gstreamer and send packets to Wowza using this API.</div>
        <div>My Problem is that Wowza seems to doesn't recognize what's
          inside the packet I'm sending, see logs : </div>
        <div><br>
        </div>
        <div>Audio codec:PCM_BE isCompatible:false</div>
        <div>Video codec:UNKNOWN[0] isCompatible:false</div>
        <div><br>
        </div>
        <div>For information my video and audio packets are in h264 and
          aac codecs. it is 2 format that Wowza knows to read.</div>
        <div>I Think, maybe the packets coming from GStreamer can't be
          sent to Wowza directly without some king of transformation or
          adaptation.</div>
        <div>On the Publisher API page, there is the format of the
          packets for aac and h264 that is described. I don't know if
          GStreamer is already sending me the video and audio packets</div>
        <div>respecting this format or if I have to do something myself
          with gstreamer packets before giving it to Wowza.</div>
        <div><br>
        </div>
        <div>For more detail, this is the GStreamer Pipeline I'm using :</div>
        <p class="gmail-m_2155099440117251484gmail-m_-8653466576254998529m_3341666876865109683separator" style="text-align:center;clear:both"><a href="http://nicolas.castillejos.free.fr/gstreamer/PostWowza.png" style="margin-left:1em;margin-right:1em" target="_blank"><img src="cid:part1.4F749045.B5AE4D40@gmail.com" height="320" border="0" width="193"></a></p>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>  </div>
        <div>I'm trying to repacketize data coming from Gstreamer
          (AppSink buffers) before sending it to Wowza.<br>
          Threre is a description of Wowza Packets requirements on this
          page:
<a class="gmail-m_2155099440117251484gmail-m_-8653466576254998529m_3341666876865109683moz-txt-link-freetext" href="http://www.wowza.com/resources/serverapi/4.5.0/com/wowza/wms/stream/publish/Publisher.html" target="_blank">http://www.wowza.com/resources<wbr>/serverapi/4.5.0/com/wowza/wms<wbr>/stream/publish/Publisher.html</a><wbr>.<br>
          And I need for Video Packets to know the type of frame (Key, P
          or B) to set it in the Wowza header.<br>
          <font size="+2"><span style="color:rgb(34,34,34);font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;background-color:rgb(255,255,255);display:inline">I've found that
              when the buffer flag has its GST_BUFFER_FLAG_DELTA_UNIT
              bit to 1, it is not a key frame. But I don't know if it's
              a P or B Frame.</span><br style="color:rgb(34,34,34);font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
            <span style="color:rgb(34,34,34);font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;background-color:rgb(255,255,255);display:inline">Is There a way to know it ?<span class="gmail-m_2155099440117251484gmail-m_-8653466576254998529HOEnZb"><font color="#888888"><br>
              <br>
              Nicolas Castillejos<br>
            </font></span></span></font></div>
        <div><br>
        </div>
        <br>
        <div><br>
        </div>
        <br>
      </div>
    </div>
  </div>

<br>______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesk<wbr>top.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-dev<wbr>el</a><br>
<br></blockquote></div><br></div></div>