<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>
</p>
<div class="moz-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="moz-txt-link-freetext" href="http://www.wowza.com/resources/serverapi/4.5.0/com/wowza/wms/stream/publish/Publisher.html">http://www.wowza.com/resources/serverapi/4.5.0/com/wowza/wms/stream/publish/Publisher.html</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="separator" style="text-align: center; clear: both;"><a
imageanchor="1"
href="http://nicolas.castillejos.free.fr/gstreamer/PostWowza.png"
style="margin-left: 1em; margin-right: 1em;"><img
shrinktofit="true"
src="cid:part1.4F749045.B5AE4D40@gmail.com" style=""
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="moz-txt-link-freetext" href="http://www.wowza.com/resources/serverapi/4.5.0/com/wowza/wms/stream/publish/Publisher.html">http://www.wowza.com/resources/serverapi/4.5.0/com/wowza/wms/stream/publish/Publisher.html</a>.<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: 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; display: inline ! important; float: none;
background-color: rgb(255, 255, 255);">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: 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: 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; display: inline !
important; float: none; background-color: rgb(255, 255,
255);">Is There a way to know it ?<br>
<br>
Nicolas Castillejos<br>
</span></font></div>
<div><br>
</div>
<br>
<div><br>
</div>
<br>
</div>
</div>
</body>
</html>