timestamping in mpegtsparse.

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

timestamping in mpegtsparse.

Jyoti-2
Hi all,

I am writing an application to stream MPEG-2 TS RTP Payloaded packets over UDP.
My server was sending the packets at too high rate.

I looked upon a mail by Wim saying the timestamping on mpegtsparse is the solution
for the controlling the rate.

Is the timestamping implemented in latest version of mpegtsparse?

Regards
Jyoti

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: timestamping in mpegtsparse.

Vincent Génieux
Jyoti wrote:

> Hi all,
>
> I am writing an application to stream MPEG-2 TS RTP Payloaded packets
> over UDP.
> My server was sending the packets at too high rate.
>
> I looked upon a mail by Wim saying the timestamping on mpegtsparse is
> the solution
> for the controlling the rate.
>
> Is the timestamping implemented in latest version of mpegtsparse?
Hello,

Your pipeline seems correct, but since the input stream comes from a
file, your pipeline is playing as fast as possible. You should try to
add sync=true on your  udpsink.

gst-launch filesrc location=stream.ts ! mpegtsparse ! rtpmp2tpay !
udpsink port=1234 sync=true

--
Vincent GENIEUX
R&D Engineer
ENENSYS Technologies
Le Germanium
80 avenue des Buttes de Coësmes
35700 Rennes - FRANCE


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: timestamping in mpegtsparse.

Jyoti-2
Hi,

Thanks for the reply. I did add sync=true on udpsink but there is no change.
Is there any other method where I can stream properly.

Thanks,
jyoti

2009/11/16 Vincent Génieux <[hidden email]>
Jyoti wrote:
> Hi all,
>
> I am writing an application to stream MPEG-2 TS RTP Payloaded packets
> over UDP.
> My server was sending the packets at too high rate.
>
> I looked upon a mail by Wim saying the timestamping on mpegtsparse is
> the solution
> for the controlling the rate.
>
> Is the timestamping implemented in latest version of mpegtsparse?
Hello,

Your pipeline seems correct, but since the input stream comes from a
file, your pipeline is playing as fast as possible. You should try to
add sync=true on your  udpsink.

gst-launch filesrc location=stream.ts ! mpegtsparse ! rtpmp2tpay !
udpsink port=1234 sync=true

--
Vincent GENIEUX
R&D Engineer
ENENSYS Technologies
Le Germanium
80 avenue des Buttes de Coësmes
35700 Rennes - FRANCE


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: timestamping in mpegtsparse.

Marc Leeman
> Thanks for the reply. I did add sync=true on udpsink but there is no change.
> Is there any other method where I can stream properly.

this should work:

gst-launch \
  filesrc location=ksc_062707_sts117_launch_1080i-29-97.ps.mpg \
  ! tee name=splitter  \
  ! queue \
  ! udpsink host=226.226.226.100 port=2266 \
  splitter. \
  ! queue \
  ! mpegpsdemux \
  ! fakesink sync=True


--
  greetz, marc
It's hard to think of you as the end result of millions of years of evolution.
crichton 2.6.26 #1 PREEMPT Tue Jul 29 21:17:59 CDT 2008 GNU/Linux

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: timestamping in mpegtsparse.

Jyoti-2
Thanks Marc. It worked..


On Mon, Nov 16, 2009 at 4:31 PM, Marc Leeman <[hidden email]> wrote:
> Thanks for the reply. I did add sync=true on udpsink but there is no change.
> Is there any other method where I can stream properly.

this should work:

gst-launch \
 filesrc location=ksc_062707_sts117_launch_1080i-29-97.ps.mpg \
 ! tee name=splitter  \
 ! queue \
 ! udpsink host=226.226.226.100 port=2266 \
 splitter. \
 ! queue \
 ! mpegpsdemux \
 ! fakesink sync=True


--
 greetz, marc
It's hard to think of you as the end result of millions of years of evolution.
crichton 2.6.26 #1 PREEMPT Tue Jul 29 21:17:59 CDT 2008 GNU/Linux

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFLATDxUQpj09NWLeERAm96AJ9Q4WEdjwnf9PNIGI3q/76+KlcXPACgx5pW
eQZyTWAF8j8/4uiaOmo/9eo=
=gWM9
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: timestamping in mpegtsparse.

Jyoti-2
Hi Marc,

While writing an application equivalent to the below pipeline. The pipeline hangs after setting itself to GST_STATE_CHANGE_ASYNC. I do wait state change using gst_element_get_state.

gst-launch filesrc location=collateral.ts ! tee name=splitter  \
splitter.  ! queue  ! mpegtsparse ! rtpmp2tpay ! udpsink host=226.226.226.100 port=2266 \
 splitter.  ! queue  ! mpegpsdemux  ! fakesink sync=TRUE

Whenever I am adding the branch containing demux, fakesink the pipeline never changes its state to PLAYING.
I add the fakesink element in the "pad-added" signal callback function.

I individually request src pads & then connect separately to mpegtsparse sinkpad and also to mpegtsdemux sinkpad.

Can someone hint if the method am following is proper? or is there any obvious mistake..

Thanks,
Jyoti

On Mon, Nov 16, 2009 at 5:38 PM, Jyoti <[hidden email]> wrote:
Thanks Marc. It worked..


On Mon, Nov 16, 2009 at 4:31 PM, Marc Leeman <[hidden email]> wrote:
> Thanks for the reply. I did add sync=true on udpsink but there is no change.
> Is there any other method where I can stream properly.

this should work:

gst-launch \
 filesrc location=ksc_062707_sts117_launch_1080i-29-97.ps.mpg \
 ! tee name=splitter  \
 ! queue \
 ! udpsink host=226.226.226.100 port=2266 \
 splitter. \
 ! queue \
 ! mpegpsdemux \
 ! fakesink sync=True


--
 greetz, marc
It's hard to think of you as the end result of millions of years of evolution.
crichton 2.6.26 #1 PREEMPT Tue Jul 29 21:17:59 CDT 2008 GNU/Linux

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFLATDxUQpj09NWLeERAm96AJ9Q4WEdjwnf9PNIGI3q/76+KlcXPACgx5pW
eQZyTWAF8j8/4uiaOmo/9eo=
=gWM9
-----END PGP SIGNATURE-----


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel




------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel