m2ts RTP streaming

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

m2ts RTP streaming

pavel1

  I try to stream video over rtp with:

gst-launch-0.10 -v filesrc location=./Garaj.mpg ! queue ! mpegtsparse ! rtpmp2tpay ! udpsink host=224.1.0.1 port=1234

But the rate of the video is too high. This pipeline sends packets as fast as possible and does not take into account timestamps.

How can I create pipeline which will stream video with correct rate?

Thanks in advance.
Reply | Threaded
Open this post in threaded view
|

Re: m2ts RTP streaming

Ivan Murashko-2
Hello

You can try to insert

identity sync=TRUE

into your pipeline. This should help

On Thu, May 14, 2009 at 10:17 AM, pavel1 <[hidden email]> wrote:

>
>
>  I try to stream video over rtp with:
>
> gst-launch-0.10 -v filesrc location=./Garaj.mpg ! queue ! mpegtsparse !
> rtpmp2tpay ! udpsink host=224.1.0.1 port=1234
>
> But the rate of the video is too high. This pipeline sends packets as fast
> as possible and does not take into account timestamps.
>
> How can I create pipeline which will stream video with correct rate?
>
> Thanks in advance.
> --
> View this message in context: http://www.nabble.com/m2ts-RTP-streaming-tp23534994p23534994.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables
> unlimited royalty-free distribution of the report engine
> for externally facing server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>



--
Best regards,
Ivan

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: m2ts RTP streaming

Wim Taymans
On Fri, 2009-05-15 at 21:35 +0400, Ivan Murashko wrote:
> Hello
>
> You can try to insert
>
> identity sync=TRUE
>
> into your pipeline. This should help
>
It shouldn't and doesn't. mpegtsparse does not generate timestamps and
thus nothing knows how to sync. The solution is to implement
timestamping in mpegtsparse.

Wim

> On Thu, May 14, 2009 at 10:17 AM, pavel1 <[hidden email]> wrote:
> >
> >
> >  I try to stream video over rtp with:
> >
> > gst-launch-0.10 -v filesrc location=./Garaj.mpg ! queue ! mpegtsparse !
> > rtpmp2tpay ! udpsink host=224.1.0.1 port=1234
> >
> > But the rate of the video is too high. This pipeline sends packets as fast
> > as possible and does not take into account timestamps.
> >
> > How can I create pipeline which will stream video with correct rate?
> >
> > Thanks in advance.
> > --
> > View this message in context: http://www.nabble.com/m2ts-RTP-streaming-tp23534994p23534994.html
> > Sent from the GStreamer-devel mailing list archive at Nabble.com.
> >
> >
> > ------------------------------------------------------------------------------
> > Crystal Reports - New Free Runtime and 30 Day Trial
> > Check out the new simplified licensing option that enables
> > unlimited royalty-free distribution of the report engine
> > for externally facing server and web deployment.
> > http://p.sf.net/sfu/businessobjects
> > _______________________________________________
> > gstreamer-devel mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
> >
>
>
>


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: m2ts RTP streaming

Ivan Murashko-2
Hello,

Aha, I was wrong - the 'identity' will not help in such cases.

BTW: If conversion is not a problem you can try the following one
gst-launch-0.10 filesrc location=./Garaj.mpg ! decodebin !
ffmpegcolorspace ! ffenc_mpeg2video ! flutsmux ! rtpmp2tpay ! udpsink
host=224.1.0.1 port=1234

On Fri, May 15, 2009 at 9:46 PM, Wim Taymans <[hidden email]> wrote:

> On Fri, 2009-05-15 at 21:35 +0400, Ivan Murashko wrote:
>> Hello
>>
>> You can try to insert
>>
>> identity sync=TRUE
>>
>> into your pipeline. This should help
>>
> It shouldn't and doesn't. mpegtsparse does not generate timestamps and
> thus nothing knows how to sync. The solution is to implement
> timestamping in mpegtsparse.
>
> Wim
>
>> On Thu, May 14, 2009 at 10:17 AM, pavel1 <[hidden email]> wrote:
>> >
>> >
>> >  I try to stream video over rtp with:
>> >
>> > gst-launch-0.10 -v filesrc location=./Garaj.mpg ! queue ! mpegtsparse !
>> > rtpmp2tpay ! udpsink host=224.1.0.1 port=1234
>> >
>> > But the rate of the video is too high. This pipeline sends packets as fast
>> > as possible and does not take into account timestamps.
>> >
>> > How can I create pipeline which will stream video with correct rate?
>> >
>> > Thanks in advance.
>> > --
>> > View this message in context: http://www.nabble.com/m2ts-RTP-streaming-tp23534994p23534994.html
>> > Sent from the GStreamer-devel mailing list archive at Nabble.com.
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > Crystal Reports - New Free Runtime and 30 Day Trial
>> > Check out the new simplified licensing option that enables
>> > unlimited royalty-free distribution of the report engine
>> > for externally facing server and web deployment.
>> > http://p.sf.net/sfu/businessobjects
>> > _______________________________________________
>> > gstreamer-devel mailing list
>> > [hidden email]
>> > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>> >
>>
>>
>>
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables
> unlimited royalty-free distribution of the report engine
> for externally facing server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>



--
Best regards,
Ivan

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: m2ts RTP streaming

Wim Taymans
On Fri, 2009-05-15 at 23:19 +0400, Ivan Murashko wrote:
> Hello,
>
> Aha, I was wrong - the 'identity' will not help in such cases.
>
> BTW: If conversion is not a problem you can try the following one
> gst-launch-0.10 filesrc location=./Garaj.mpg ! decodebin !
> ffmpegcolorspace ! ffenc_mpeg2video ! flutsmux ! rtpmp2tpay ! udpsink
> host=224.1.0.1 port=1234

And someone also had the evil idea to use the datarate property of
identity and set it to exactly the bitrate of the mpeg ts stream. Only
works for CBR streams, though...

Wim

>
> On Fri, May 15, 2009 at 9:46 PM, Wim Taymans <[hidden email]> wrote:
> > On Fri, 2009-05-15 at 21:35 +0400, Ivan Murashko wrote:
> >> Hello
> >>
> >> You can try to insert
> >>
> >> identity sync=TRUE
> >>
> >> into your pipeline. This should help
> >>
> > It shouldn't and doesn't. mpegtsparse does not generate timestamps and
> > thus nothing knows how to sync. The solution is to implement
> > timestamping in mpegtsparse.
> >
> > Wim
> >
> >> On Thu, May 14, 2009 at 10:17 AM, pavel1 <[hidden email]> wrote:
> >> >
> >> >
> >> >  I try to stream video over rtp with:
> >> >
> >> > gst-launch-0.10 -v filesrc location=./Garaj.mpg ! queue ! mpegtsparse !
> >> > rtpmp2tpay ! udpsink host=224.1.0.1 port=1234
> >> >
> >> > But the rate of the video is too high. This pipeline sends packets as fast
> >> > as possible and does not take into account timestamps.
> >> >
> >> > How can I create pipeline which will stream video with correct rate?
> >> >
> >> > Thanks in advance.
> >> > --
> >> > View this message in context: http://www.nabble.com/m2ts-RTP-streaming-tp23534994p23534994.html
> >> > Sent from the GStreamer-devel mailing list archive at Nabble.com.
> >> >
> >> >
> >> > ------------------------------------------------------------------------------
> >> > Crystal Reports - New Free Runtime and 30 Day Trial
> >> > Check out the new simplified licensing option that enables
> >> > unlimited royalty-free distribution of the report engine
> >> > for externally facing server and web deployment.
> >> > http://p.sf.net/sfu/businessobjects
> >> > _______________________________________________
> >> > gstreamer-devel mailing list
> >> > [hidden email]
> >> > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
> >> >
> >>
> >>
> >>
> >
> >
> > ------------------------------------------------------------------------------
> > Crystal Reports - New Free Runtime and 30 Day Trial
> > Check out the new simplified licensing option that enables
> > unlimited royalty-free distribution of the report engine
> > for externally facing server and web deployment.
> > http://p.sf.net/sfu/businessobjects
> > _______________________________________________
> > gstreamer-devel mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
> >
>
>
>


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel