Need Help to send GStreamer H264/AAC packets to Wowza Streaming Engine

Ignas Brašiškis ignas.brasiskis at gmail.com
Tue Feb 21 15:19:37 UTC 2017


You can start here: https://gstreamer.freedesktop.org/data/doc/
gstreamer/head/gst-plugins-bad-libs/html/gst-plugins-bad-
libs-h264parser.html
You need access parser class and get slice types with macros like
GST_H264_IS_P_SLICE
and similar functions. I am not sure how it works thought,
Did you tried to stream AAC only. It seems like your problem not gstreamer,
but inability to config wowza
(Audio codec:PCM_BE isCompatible:false
Video codec:UNKNOWN[0] isCompatible:false) tells something,
 where neither I, neither most of here can help you.

On Tue, Feb 21, 2017 at 4:14 PM, Nicolas Castillejos <djos06 at gmail.com>
wrote:

> Hello everyone,
>
> I'm trying to start a stream on Wowza programmaticaly by feeding the
> stream myself with packets comming from GStreamer.
> Wowza provides an API called "Publisher API" : (
> http://www.wowza.com/resources/serverapi/4.5.0/com/wowza/wm
> s/stream/publish/Publisher.html)
> it enables you to publish a stream on Wowza with Java Code by feeding the
> stream with byte[] (packets).
> What I'm trying to do is to read a mkv file on disk with gstreamer and
> send packets to Wowza using this API.
> My Problem is that Wowza seems to doesn't recognize what's inside the
> packet I'm sending, see logs :
>
> Audio codec:PCM_BE isCompatible:false
> Video codec:UNKNOWN[0] isCompatible:false
>
> For information my video and audio packets are in h264 and aac codecs. it
> is 2 format that Wowza knows to read.
> I Think, maybe the packets coming from GStreamer can't be sent to Wowza
> directly without some king of transformation or adaptation.
> 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
> respecting this format or if I have to do something myself with gstreamer
> packets before giving it to Wowza.
>
> For more detail, this is the GStreamer Pipeline I'm using :
>
> <http://nicolas.castillejos.free.fr/gstreamer/PostWowza.png>
>
>
>
> I'm trying to repacketize data coming from Gstreamer (AppSink buffers)
> before sending it to Wowza.
> Threre is a description of Wowza Packets requirements on this page:
> http://www.wowza.com/resources/serverapi/4.5.0/com/wowza/wms
> /stream/publish/Publisher.html.
> And I need for Video Packets to know the type of frame (Key, P or B) to
> set it in the Wowza header.
> 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.
> Is There a way to know it ?
>
> Nicolas Castillejos
>
>
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170221/eb0b48b7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PostWowza.png
Type: image/png
Size: 8834 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170221/eb0b48b7/attachment.png>


More information about the gstreamer-devel mailing list