New parser for parsing a custom format

Nicolas Dufresne nicolas at ndufresne.ca
Wed Feb 3 15:38:37 UTC 2021


Le mercredi 03 février 2021 à 12:57 +0530, Bharath Bhushan (Kowshik) a écrit :
> Hello Gstreamers,
> 
> I am planning to write a new gstreamer parser plugin for parsing a custom
> byte-stream format. The pipeline should look something like below:-
> Example A: tcpclientsrc ! my-custom-parser ! h264parse ! fakesink 
> Example B: filesrc ! my-custom-parser ! h264parse ! fakesink
> 
> The byte-stream has the following format:
>         4 bytes: size of data segment and timestamp
>         8 bytes: timestamp
>         N-8 bytes: data segment which is a H.264 NALU
> 
> My plugin will create one GstBuffer per data segment and set the PTS/DTS based
> on the timestamp and send it to the downstream plugin (h264parse for example).
> 
> Some questions:-
> - Is there a simple parser example plugin which I can start from?

This is more like a depayloader, but indeed we sometimes call parser or demuxer.
Your format seems similar to IVF used to cary parsable VP8 and VP9 data.

> - Is vorbisparse a good example to use? Is gstttransform.c in the gst-
> templates repo a good example to use?
> - What are the options for push vs pull that are available in my parser? 
> - Is there any documentation about how to write new parsers?
> 
> Any help is greatly appreciated.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




More information about the gstreamer-devel mailing list