Injecting metadata from file MISP

Tim Müller tim at centricular.com
Tue Jun 11 11:15:11 UTC 2019


On Tue, 2019-06-11 at 11:29 +0200, Fran Raga wrote:

Hi Fran,

> gst-launch-1.0.exe mpegtsmux name=mux ! filesink location=MISB2.ts
> filesrc location=DJI_0047_MISB_F.klv ! meta/x-klv ! mux.
> filesrc location=DJI_0047.ts
>  ! video/x-h264, stream-format=byte-stream, alignment=au ! mux.
> 
> But I receive these errors:
> (snip)

So this part

 filesrc location=DJI_0047_MISB_F.klv ! meta/x-klv ! mux.

isn't going to work like that. meta/x-klv is supposed to be a parsed
format with one buffer per KLV chunk. People usually don't feed this in
from a file, but inject it live via an appsrc or such as they go along.
So you would need a klv parser here.

Then this part

 filesrc location=DJI_0047.ts ! video/x-h264, ... ! mux.

that's not really how things work. The file looks like it is an MPEG-TS 
stream. So if you want to get to the video data inside that MPEG-TS
file you need to demux it, with the tsdemux element. So something like

 filesrc location=foo.ts ! tsdemux ! video/x-h264 ! mux.

might work, but usually one would put in a parser as well, in this case
h264parse:

 filesrc location=foo.ts ! tsdemux ! h264parse ! mux.

Cheers
 Tim

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



More information about the gstreamer-devel mailing list