About m2ts RTP

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

About m2ts RTP

liangzhihong1984
 
 Thanks a lot for everyone's help.I could capture m2ts data from a DV now.
Now I want to send them out through RTP, but some new error happens, i tried many times, but still failed.
please give me some help.

leon@leon-desktop:~/Desktop$ gst-launch-0.10 -v hdv1394src ! queue ! rtpmp2tpay ! queue! udpsink host=127.0.0.1 port=1234
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/pipeline0/hdv1394src0.src: caps = video/mpegts, systemstream=(boolean)true, packetsize=(int)188
/pipeline0/queue0.sink: caps = video/mpegts, systemstream=(boolean)true, packetsize=(int)188
/pipeline0/queue0.src: caps = video/mpegts, systemstream=(boolean)true, packetsize=(int)188
/pipeline0/rtpmp2tpay0.src: caps = application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)MP2T-ES, payload=(int)33, ssrc=(guint)3754896773, clock-base=(guint)4257362012, seqnum-base=(guint)63578
/pipeline0/rtpmp2tpay0.sink: caps = video/mpegts, systemstream=(boolean)true, packetsize=(int)188
/pipeline0/queue1.sink: caps = application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)MP2T-ES, payload=(int)33, ssrc=(guint)3754896773, clock-base=(guint)4257362012, seqnum-base=(guint)63578
/pipeline0/queue1.src: caps = application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)MP2T-ES, payload=(int)33, ssrc=(guint)3754896773, clock-base=(guint)4257362012, seqnum-base=(guint)63578
/pipeline0/udpsink0.sink: caps = application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)MP2T-ES, payload=(int)33, ssrc=(guint)3754896773, clock-base=(guint)4257362012, seqnum-base=(guint)63578
ERROR: from element /pipeline0/udpsink0: GStreamer encountered a general stream error.
Additional debug info:
gstmultiudpsinkc(394): gst_multiudpsink_render (): /pipeline0/udpsink0:
Got send error 90: Message too long
Execution ended after 61855070 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
/pipeline0/udpsink0.sink: caps = NULL
/pipeline0/queue1.src: caps = NULL
/pipeline0/queue1.sink: caps = NULL
/pipeline0/rtpmp2tpay0.sink: caps = NULL
/pipeline0/rtpmp2tpay0.src: caps = NULL
/pipeline0/queue0.src: caps = NULL
/pipeline0/queue0.sink: caps = NULL
/pipeline0/hdv1394src0src: caps = NULL
Setting pipeline to NULL ...
FREEING pipeline ...
 
 



网易首款免费3D网游“天下2”,6月6日激情公测
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: About m2ts RTP

Edward Hervey
Administrator
Hi,

  The problem is that the rtpmp2tpay element will not ensure that
outputted packets are smaller than 'mtu' bytes, and the udpsink borks
on that.
  There's one way to solve that by using mpegtsparse before the
payloader. mpegtsparse will output 188 bytes packets, which will be
properly payloaded.

     Edward

On Thu, Jul 10, 2008 at 4:17 AM, liangzhihong1984
<[hidden email]> wrote:

>
>  Thanks a lot for everyone's help.I could capture m2ts data from a DV now.
> Now I want to send them out through RTP, but some new error happens, i tried
> many times, but still failed.
> please give me some help.
>
> leon@leon-desktop:~/Desktop$ gst-launch-0.10 -v hdv1394src ! queue !
> rtpmp2tpay ! queue! udpsink host=127.0.0.1 port=1234
> Setting pipeline to PAUSED ...
> Pipeline is live and does not need PREROLL ...
> Setting pipeline to PLAYING ...
> New clock: GstSystemClock
> /pipeline0/hdv1394src0.src: caps = video/mpegts, systemstream=(boolean)true,
> packetsize=(int)188
> /pipeline0/queue0.sink: caps = video/mpegts, systemstream=(boolean)true,
> packetsize=(int)188
> /pipeline0/queue0.src: caps = video/mpegts, systemstream=(boolean)true,
> packetsize=(int)188
> /pipeline0/rtpmp2tpay0.src: caps = application/x-rtp, media=(string)video,
> clock-rate=(int)90000, encoding-name=(string)MP2T-ES, payload=(int)33,
> ssrc=(guint)3754896773, clock-base=(guint)4257362012,
> seqnum-base=(guint)63578
> /pipeline0/rtpmp2tpay0.sink: caps = video/mpegts,
> systemstream=(boolean)true, packetsize=(int)188
> /pipeline0/queue1.sink: caps = application/x-rtp, media=(string)video,
> clock-rate=(int)90000, encoding-name=(string)MP2T-ES, payload=(int)33,
> ssrc=(guint)3754896773, clock-base=(guint)4257362012,
> seqnum-base=(guint)63578
> /pipeline0/queue1.src: caps = application/x-rtp, media=(string)video,
> clock-rate=(int)90000, encoding-name=(string)MP2T-ES, payload=(int)33,
> ssrc=(guint)3754896773, clock-base=(guint)4257362012,
> seqnum-base=(guint)63578
> /pipeline0/udpsink0.sink: caps = application/x-rtp, media=(string)video,
> clock-rate=(int)90000, encoding-name=(string)MP2T-ES, payload=(int)33,
> ssrc=(guint)3754896773, clock-base=(guint)4257362012,
> seqnum-base=(guint)63578
> ERROR: from element /pipeline0/udpsink0: GStreamer encountered a general
> stream error.
> Additional debug info:
> gstmultiudpsinkc(394): gst_multiudpsink_render (): /pipeline0/udpsink0:
> Got send error 90: Message too long
> Execution ended after 61855070 ns.
> Setting pipeline to PAUSED ...
> Setting pipeline to READY ...
> /pipeline0/udpsink0.sink: caps = NULL
> /pipeline0/queue1.src: caps = NULL
> /pipeline0/queue1.sink: caps = NULL
> /pipeline0/rtpmp2tpay0.sink: caps = NULL
> /pipeline0/rtpmp2tpay0.src: caps = NULL
> /pipeline0/queue0.src: caps = NULL
> /pipeline0/queue0.sink: caps = NULL
> /pipeline0/hdv1394src0src: caps = NULL
> Setting pipeline to NULL ...
> FREEING pipeline ...
>
>
>
> ________________________________
> 网易首款免费3D网游"天下2",6月6日激情公测
> -------------------------------------------------------------------------
> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> Studies have shown that voting for your favorite open source project,
> along with a healthy diet, reduces your potential for chronic lameness
> and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>



--
Edward Hervey
Multimedia editing developer
http://www.pitivi.org/
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel