Muxing klv metadata with splitmuxsink

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Muxing klv metadata with splitmuxsink

cbourget
Hi there,

I'm trying to develop a pipeline which could mux a metadata stream (klv) and
a video stream into multiple mpeg video file.
For the moment I have the following working pipeline which uses mpegtsmux
and filesink :

gst-launch-1.0 udpsrc uri=udp://224.0.0.1:5001 ! application/x-rtp,
enconding-name=H264, payload=96 ! rtph264depay !\
muxer. udpsrc uri=udp://224.0.0.1:5000 ! meta/x-klv ! muxer. mpegtsmux
name=muxer ! filesink location=test.mpg

This pipeline works perfectly but I also need the extra functonnality
provided by the splitmuxsink element.
But as far as I know this element does not seem to handle klv metadata.
Nonetheless I tried the following pipeline :

gst-launch-1.0 udpsrc uri=udp://224.0.0.1:5001 ! application/x-rtp,
enconding-name=H264, payload=96 ! rtph264depay !\
muxer. udpsrc uri=udp://224.0.0.1:5000 ! meta/x-klv !\
muxer. splitmuxsink muxer=mpegtsmux name=muxer sink=filesink
location=test-%05d.mpg max-size-bytes=104857600 async-handling=true
mux-overhead=0.05 message-forward=true

But when I run this pipeline I get the following error :
WARNING: erroneous pipeline: could not link udpsrc1 to muxer with caps
meta/x-klv

Is there a way to link the udpsrc for metadata to the muxer in the
splitmuxsink?

Thanks in advance for all suggestions!
Best,
Charles



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Muxing klv metadata with splitmuxsink

Tim Müller
On Wed, 2020-10-28 at 08:08 -0500, cbourget wrote:

Hi Charles,

> I'm trying to develop a pipeline which could mux a metadata stream
> (klv) and a video stream into multiple mpeg video file.
>  (...)
> This pipeline works perfectly but I also need the extra functonnality
> provided by the splitmuxsink element.
> But as far as I know this element does not seem to handle klv
> metadata.
> Nonetheless I tried the following pipeline :
>
> gst-launch-1.0 udpsrc uri=udp://224.0.0.1:5001 ! application/x-rtp,
> enconding-name=H264, payload=96 ! rtph264depay !\
> muxer. udpsrc uri=udp://224.0.0.1:5000 ! meta/x-klv !\
> muxer. splitmuxsink muxer=mpegtsmux name=muxer sink=filesink
> location=test-%05d.mpg max-size-bytes=104857600 async-handling=true
> mux-overhead=0.05 message-forward=true
>
> But when I run this pipeline I get the following error :
> WARNING: erroneous pipeline: could not link udpsrc1 to muxer with
> caps meta/x-klv
>
> Is there a way to link the udpsrc for metadata to the muxer in the
> splitmuxsink?

Not sure if that works already.

Have you tried meta/x-klv,parsed=true as well? That's what mpegtsmux
wants according to gst-inspect.

But I'm not sure if it'll work already with that or if we'd need to add
another request pad template to splitmuxsink.

Cheers
 Tim

--
Tim Müller, Centricular Ltd - http://www.centricular.com

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Muxing klv metadata with splitmuxsink

cbourget
Hi Tim,

I tried your suggestion and it gave me the same error :
WARNING: erroneous pipeline: could not link udpsrc1 to muxer

When you say add another request template you mean in the code for the
splitmuxsink plugin. Is this a merge request I could do to the codebase?

Thank you for your help,
Charles



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Muxing klv metadata with splitmuxsink

Tim Müller
On Mon, 2020-11-02 at 07:18 -0600, cbourget wrote:

Hi Charles,

> When you say add another request template you mean in the code for
> the splitmuxsink plugin. Is this a merge request I could do to the
> codebase?

Yes, that would require code changes in the splitmuxsink plugin and/or
the application - you'll probably have to do something with the "muxer-
pad-map" property, see example pipeline in

https://gstreamer.freedesktop.org/documentation/multifile/splitmuxsink.html

(You might be able to hack it that way even without modifying
splitmuxsink, not sure)

Cheers
 Tim
--
Tim Müller, Centricular Ltd - http://www.centricular.com

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel