Discussion:
Accessing non-video streams in MPEGTS [SEC=UNCLASSIFIED]
Durrand, Paul (Contractor)
2011-07-18 03:53:54 UTC
Permalink
UNCLASSIFIED

I am working with GStreamer to read and write MPEG TS files ultimately
in an application. I am able to play the video stream using the
following command:

gst-launch-0.10 -e filesrc location=cars.mpg ! mpegtsdemux !
ffdec_mpeg2video ! xvimagesink

What I am now trying to understand is how to read and write to non
audio/video streams. I have a stream in the MPEGTS which contains KLV
metadata. I have code which will decode and encode the information but I
am unsure how to select the specific stream which contains the data with
GStreamer.

Can anyone provide some guidance?

Thanks,
Paul


IMPORTANT: This email remains the property of the Department of Defence
and is subject to the jurisdiction of section 70 of the Crimes Act 1914.
If you have received this email in error, you are requested to contact
the sender and delete the email.
Edward Hervey
2011-07-18 08:14:04 UTC
Permalink
Hi,

Unfortunately private streams aren't exposed in mpeg-ts demuxers.

If those private streams contain only metadata, you can 'just' push
them as tags on the other audio/video streams.

And you'd have to do the same thing for muxing (collect the tags and
create your private streams).

What metadata exactly do those contain ?

Edward
Post by Durrand, Paul (Contractor)
UNCLASSIFIED
I am working with GStreamer to read and write MPEG TS files ultimately
in an application. I am able to play the video stream using the
gst-launch-0.10 -e filesrc location=cars.mpg ! mpegtsdemux !
ffdec_mpeg2video ! xvimagesink
What I am now trying to understand is how to read and write to non
audio/video streams. I have a stream in the MPEGTS which contains KLV
metadata. I have code which will decode and encode the information but
I am unsure how to select the specific stream which contains the data
with GStreamer.
Can anyone provide some guidance?
Thanks,
Paul
IMPORTANT: This email remains the property of the Department of
Defence and is subject to the jurisdiction of section 70 of the Crimes
Act 1914. If you have received this email in error, you are requested
to contact the sender and delete the email.
_______________________________________________
gstreamer-devel mailing list
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Durrand, Paul (Contractor)
2011-07-19 00:34:49 UTC
Permalink
UNCLASSIFIED

Thanks for the response Edward.

We are using the SMPTE-336M
(http://store.smpte.org/product-p/st%200336-2007.htm) for KLV and then
using MISB 0601.4
(http://www.gwg.nga.mil/misb/docs/standards/Standard060104.pdf) and MISB
0102.6 (http://www.gwg.nga.mil/misb/docs/standards/Standard010206.pdf)
local data sets. This stream has timecoding to ensure the metadata is
associated with the appropriate frame.

I am doing the encoding and decoding myself, I just need access to the
raw data in the specific stream to read and write to.

Paul

-----Original Message-----
From:
gstreamer-devel-bounces+paul.durrand=***@lists.freedeskt
op.org
[mailto:gstreamer-devel-bounces+paul.durrand=***@lists.f
reedesktop.org] On Behalf Of Edward Hervey
Sent: Monday, 18 July 2011 5:44 PM
To: Discussion of the development of and with GStreamer
Subject: Re: Accessing non-video streams in MPEGTS [SEC=UNCLASSIFIED]

Hi,

Unfortunately private streams aren't exposed in mpeg-ts demuxers.

If those private streams contain only metadata, you can 'just' push
them as tags on the other audio/video streams.

And you'd have to do the same thing for muxing (collect the tags and
create your private streams).

What metadata exactly do those contain ?

Edward
Post by Durrand, Paul (Contractor)
UNCLASSIFIED
I am working with GStreamer to read and write MPEG TS files ultimately
in an application. I am able to play the video stream using the
gst-launch-0.10 -e filesrc location=cars.mpg ! mpegtsdemux !
ffdec_mpeg2video ! xvimagesink What I am now trying to
understand is how to read and write to non audio/video streams. I have
a stream in the MPEGTS which contains KLV metadata. I have code which
will decode and encode the information but I am unsure how to select
the specific stream which contains the data with GStreamer.
Can anyone provide some guidance?
Thanks,
Paul
IMPORTANT: This email remains the property of the Department of
Defence and is subject to the jurisdiction of section 70 of the Crimes
Act 1914. If you have received this email in error, you are requested
to contact the sender and delete the email.
_______________________________________________
gstreamer-devel mailing list
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
gstreamer-***@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

IMPORTANT: This email remains the property of the Department of Defence
and is subject to the jurisdiction of section 70 of the Crimes Act 1914.
If you have received this email in error, you are requested to contact
the sender and delete the email.

Loading...