Converting MPEG-TS to MPEG-PS

Kapil Agrawal kapil.agl at gmail.com
Mon Jun 13 23:18:26 PDT 2011


Your pipe may look like

gst-launch dvbsrc ! mpegtsdemux name=demux demux.video_0040 ! queue !
mpegpsmux name=mux ! filesink demux.audio_0040 ! queue ! mux.

So in your pipe only video pad of demux was linked with video pad of mux.
You need to link both audio & video.

Regards
Kapil

On Fri, Jun 10, 2011 at 3:17 PM, Bernhard Graaf <bernhard.graaf at gmx.de>wrote:

>  Hi,
>
>
>
> Sorry, there is a fault in my pipe. I try this:
>
> gst-launch-0.10 -v dvbsrc adapter=0 frequency=12544000 pids=97:511:512:515
> polarity='h' symbol-rate=22000 ! mpegtsdemux es-pids=511:512 ! mpegpsmux !
> filesink location=test.mpg
>
>
>
> The Messages are:
>
>
>
> New clock: MpegTSClock
>
> /GstPipeline:pipeline0/GstMpegTSDemux:mpegtsdemux0.GstPad:sink: caps =
> video/mpegts, mpegversion=(int)2, systemstream=(boolean)true
>
> /GstPipeline:pipeline0/GstMpegTSDemux:mpegtsdemux0: pat-info =
> ((GValueArray*) 0x8307b60)
>
> /GstPipeline:pipeline0/GstMpegTSDemux:mpegtsdemux0: pmt-info =
> ((MpegTsPmtInfo*) 0xb6c04680)
>
> /GstPipeline:pipeline0/MpegPsMux:mpegpsmux0.GstPad:pad0: caps = video/mpeg,
> mpegversion=(int)2, systemstream=(boolean)false
>
> /GstPipeline:pipeline0/MpegPsMux:mpegpsmux0.GstPad:src: caps = video/mpeg,
> mpegversion=(int)2, systemstream=(boolean)true
>
> /GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps =
> video/mpeg, mpegversion=(int)2, systemstream=(boolean)true
>
>
>
> And that’s what I get: Only the video-stream without any audio.
>
>
>
> What’s wrong with this pipe?
>
>
>
> Thanks’ a lot!
>
> Bernhard
>  ------------------------------
>
> *Von:* gstreamer-devel-bounces+bernhard.graaf=gmx.de at lists.freedesktop.org[mailto:
> gstreamer-devel-bounces+bernhard.graaf=gmx.de at lists.freedesktop.org] *Im
> Auftrag von *Bernhard Graaf
> *Gesendet:* Freitag, 10. Juni 2011 10:28
> *An:* 'Discussion of the development of and with GStreamer'
> *Betreff:* Converting MPEG-TS to MPEG-PS
>
>
>
> Hi,
>
>
>
> I have a problem for seeking in MPEG-TS-files (to slow) and want to convert
> a TS-Stream to PS.
>
> But it seems to be a little tricky to select the pids. My pipe looks like
> this:
>
> ‘gst-launch-0.10 dvbsrc pids=97:511:512 frequ….. ! mpegtsdemux
> es-pids=511:512 !  mpeg2dec ! filesink location=test.mpg’
>
>
>
> The pids are: 97 = PMT, 511 = Video, 512 = Audio.
>
>
>
> But it doesn’t work. The file is always 0 Bytes long.
>
>
>
> Without converting, it’s a very simple pipe:
>
> ‘gst-launch-0.10 dvbsrc pids=97:511:512 frequ….. ! filesink
> location=test.mpg’
>
>
>
> And it’s works very good.
>
>
>
> What to I wrong to convert the stream?
>
>
>
> Thanks’ a lot for helping!!
>
> Bernhard
>
>
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>


-- 
www.mediamagictechnologies.com (Gstreamer, ffmpeg, Red5, Streaming)
twitter handle: @gst_kaps
http://www.linkedin.com/in/kapilagrawal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110614/8f0c325f/attachment.html>


More information about the gstreamer-devel mailing list