Video/Audio Transport Stream extraction from MPTS file

Nuno Martins nuno.m.g.martins at gmail.com
Tue Jan 27 09:09:01 PST 2015


Imagine you want to extract the audio from a MPTS of the service ID
(program ID) 800


gst-launch filesrc location=the_whole_ts.ts ! tsdemux program-number=800 !
mad ! audioconvert ! lame ! filesink location=audio.mp3

There we have, the tsdemuxer, the mad (audio encoded in the ts), the
audioconvert, if necessary to convert from different audio formats and the
enconding format (lame which is mp3) and the filesink where to dump mp3
data.

Br,
Nuno Martins

On Thu, Jan 22, 2015 at 1:13 PM, Thornton, Keith <keith.thornton at zeiss.com>
wrote:

>  As Nuno Mota said in his mail, if you have demuxed the from the TS to
> individual elementary streams you then need to remux these separate
> elementary streams into separate ts streams using the ts muxer.
>
> (or mp3 muxer …)
>
>
>
> *Von:* gstreamer-devel [mailto:
> gstreamer-devel-bounces at lists.freedesktop.org] *Im Auftrag von *Buchibabu
> Bandarupally
> *Gesendet:* Donnerstag, 22. Januar 2015 13:49
> *An:* Discussion of the development of and with GStreamer
> *Betreff:* Re: Video/Audio Transport Stream extraction from MPTS file
>
>
>
> i want both  Audio and Video files(both must be in TS container
> format),the output files(abc.mpg,abc,mp3) that i mentioned in above mail
> is  for just  testing purpose ,my intention is to separate audio packets
> and video packets from from container(MPEGTS) in to a separate files
>
>
>
> On Thu, Jan 22, 2015 at 5:43 PM, Nuno Mota <mundumelga at gmail.com> wrote:
>
> What do you want as a result exactly? .ts? .mp3?
>
> You will need muxers I think,  at the end of the pipeline, in order to get
> the right output container.
>
> Em 22/01/2015 11:45, "Buchibabu Bandarupally" <
> buchibabu.bandarupally at gaiatv.in> escreveu:
>
> Hi All
>
>      i am trying to Extract Audio/Video packets from Transport stream
> using  following pipeline
>
>
> for video:
> gst-launch-0.10 filesrc location=~/Desktop/TS_ES/katy.ts ! tsdemux !  filesink location = abc.mpg
>
> for audio
> gst-launch-0.10 filesrc location=~/Desktop/TS_ES/katy.ts ! tsdemux ! mpegaudioparse ! filesink location = abc.mp3
>
>  but i am getting only elementary streams but  i need to extract Transportstreams(Audio/Video)
>
> is there any way to do this using Gstreamer Plugins?..
>
>  Thanks in advance
>
>
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>


-- 
Nuno Martins
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150127/74960dc7/attachment-0001.html>


More information about the gstreamer-devel mailing list