video network streaming with rtp problem

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

video network streaming with rtp problem

citywolf
hi,all
here are my commands:

#server:
gst-launch -v videotestsrc !  ffenc_mpeg4  ! rtpmp4vpay send-config=true ! udpsink host=218.192.168.112 port=5000


#client:
gst-launch -v  udpsrc port=5000 caps=" application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)MP4V-ES, profile-level-id=(string)1,config=(string)000001b001000001b58913000001000000012000c48d8800f50a041e1463000001b24c61766331642e35312e33382e30, payload=(int)96,ssrc=(guint)3127939974, clock-base=(guint)3486206175, seqnum-base=(guint)28199" ! rtpmp4vdepay  ! ffdec_mpeg4 !  ximagesink


it causes the following problem:

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/pipeline0/rtpmp4vdepay0.src: caps = video/mpeg, mpegversion=(int)4, systemstream=(boolean)false, codec_data=(buffer)000001b001000001b58913000001000000012000c48d8800f50a041e1463000001b24c61766331642e35312e33382e30
/pipeline0/rtpmp4vdepay0.sink: caps = application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)MP4V-ES, profile-level-id=(string)1, config=(string)000001b001000001b58913000001000000012000c48d8800f50a041e1463000001b24c61766331642e35312e33382e30, payload=(int)96, ssrc=(guint)1899460306, clock-base=(guint)2925079371, seqnum-base=(guint)41662
/pipeline0/ffdec_mpeg40.sink: caps = video/mpeg, mpegversion=(int)4, systemstream=(boolean)false, codec_data=(buffer)000001b001000001b58913000001000000012000c48d8800f50a041e1463000001b24c61766331642e35312e33382e30
/pipeline0/ffdec_mpeg40.src: caps = video/x-raw-yuv, width=(int)320, height=(int)240, framerate=(fraction)30/1, format=(fourcc)I420, pixel-aspect-ratio=(fraction)1/1

ERROR: from element /GstPipeline:pipeline0/GstUDPSrc:udpsrc0: Internal data flow error.
Additional debug info:
gstbasesrc.c(2562): gst_base_src_loop (): /GstPipeline:pipeline0/GstUDPSrc:udpsrc0:
streaming task paused, reason not-negotiated (-4)
Execution ended after 107634366 ns.


can anyone help me?
Reply | Threaded
Open this post in threaded view
|

Re: video network streaming with rtp problem

Wim Taymans
On Tue, 2010-11-09 at 23:22 -0800, citywolf wrote:

> hi,all
> here are my commands:
>
> #server:
> gst-launch -v videotestsrc !  ffenc_mpeg4  ! rtpmp4vpay send-config=true !
> udpsink host=218.192.168.112 port=5000
>
>
> #client:
> gst-launch -v  udpsrc port=5000 caps=" application/x-rtp,
> media=(string)video, clock-rate=(int)90000, encoding-name=(string)MP4V-ES,
> profile-level-id=(string)1,config=(string)000001b001000001b58913000001000000012000c48d8800f50a041e1463000001b24c61766331642e35312e33382e30,
> payload=(int)96,ssrc=(guint)3127939974, clock-base=(guint)3486206175,
> seqnum-base=(guint)28199" ! rtpmp4vdepay  ! ffdec_mpeg4 !  ximagesink
>

put ffmpegcolorspace ! videoscale between the decoder and the video
sink.

Wim


>
> it causes the following problem:
>
> Setting pipeline to PAUSED ...
> Pipeline is live and does not need PREROLL ...
> Setting pipeline to PLAYING ...
> New clock: GstSystemClock
> /pipeline0/rtpmp4vdepay0.src: caps = video/mpeg, mpegversion=(int)4,
> systemstream=(boolean)false,
> codec_data=(buffer)000001b001000001b58913000001000000012000c48d8800f50a041e1463000001b24c61766331642e35312e33382e30
> /pipeline0/rtpmp4vdepay0.sink: caps = application/x-rtp,
> media=(string)video, clock-rate=(int)90000, encoding-name=(string)MP4V-ES,
> profile-level-id=(string)1,
> config=(string)000001b001000001b58913000001000000012000c48d8800f50a041e1463000001b24c61766331642e35312e33382e30,
> payload=(int)96, ssrc=(guint)1899460306, clock-base=(guint)2925079371,
> seqnum-base=(guint)41662
> /pipeline0/ffdec_mpeg40.sink: caps = video/mpeg, mpegversion=(int)4,
> systemstream=(boolean)false,
> codec_data=(buffer)000001b001000001b58913000001000000012000c48d8800f50a041e1463000001b24c61766331642e35312e33382e30
> /pipeline0/ffdec_mpeg40.src: caps = video/x-raw-yuv, width=(int)320,
> height=(int)240, framerate=(fraction)30/1, format=(fourcc)I420,
> pixel-aspect-ratio=(fraction)1/1
>
> ERROR: from element /GstPipeline:pipeline0/GstUDPSrc:udpsrc0: Internal data
> flow error.
> Additional debug info:
> gstbasesrc.c(2562): gst_base_src_loop ():
> /GstPipeline:pipeline0/GstUDPSrc:udpsrc0:
> streaming task paused, reason not-negotiated (-4)
> Execution ended after 107634366 ns.
>
>
> can anyone help me?



------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: video network streaming with rtp problem

guodecn
wim,
      follow your advice, the rtp video transmit can work normal, but can you tell me why?
      And how do you find the problem?
      Thanks.

   
Wim Taymans wrote
On Tue, 2010-11-09 at 23:22 -0800, citywolf wrote:
> hi,all
> here are my commands:
>
> #server:
> gst-launch -v videotestsrc !  ffenc_mpeg4  ! rtpmp4vpay send-config=true !
> udpsink host=218.192.168.112 port=5000
>
>
> #client:
> gst-launch -v  udpsrc port=5000 caps=" application/x-rtp,
> media=(string)video, clock-rate=(int)90000, encoding-name=(string)MP4V-ES,
> profile-level-id=(string)1,config=(string)000001b001000001b58913000001000000012000c48d8800f50a041e1463000001b24c61766331642e35312e33382e30,
> payload=(int)96,ssrc=(guint)3127939974, clock-base=(guint)3486206175,
> seqnum-base=(guint)28199" ! rtpmp4vdepay  ! ffdec_mpeg4 !  ximagesink
>

put ffmpegcolorspace ! videoscale between the decoder and the video
sink.

Wim


>
> it causes the following problem:
>
> Setting pipeline to PAUSED ...
> Pipeline is live and does not need PREROLL ...
> Setting pipeline to PLAYING ...
> New clock: GstSystemClock
> /pipeline0/rtpmp4vdepay0.src: caps = video/mpeg, mpegversion=(int)4,
> systemstream=(boolean)false,
> codec_data=(buffer)000001b001000001b58913000001000000012000c48d8800f50a041e1463000001b24c61766331642e35312e33382e30
> /pipeline0/rtpmp4vdepay0.sink: caps = application/x-rtp,
> media=(string)video, clock-rate=(int)90000, encoding-name=(string)MP4V-ES,
> profile-level-id=(string)1,
> config=(string)000001b001000001b58913000001000000012000c48d8800f50a041e1463000001b24c61766331642e35312e33382e30,
> payload=(int)96, ssrc=(guint)1899460306, clock-base=(guint)2925079371,
> seqnum-base=(guint)41662
> /pipeline0/ffdec_mpeg40.sink: caps = video/mpeg, mpegversion=(int)4,
> systemstream=(boolean)false,
> codec_data=(buffer)000001b001000001b58913000001000000012000c48d8800f50a041e1463000001b24c61766331642e35312e33382e30
> /pipeline0/ffdec_mpeg40.src: caps = video/x-raw-yuv, width=(int)320,
> height=(int)240, framerate=(fraction)30/1, format=(fourcc)I420,
> pixel-aspect-ratio=(fraction)1/1
>
> ERROR: from element /GstPipeline:pipeline0/GstUDPSrc:udpsrc0: Internal data
> flow error.
> Additional debug info:
> gstbasesrc.c(2562): gst_base_src_loop ():
> /GstPipeline:pipeline0/GstUDPSrc:udpsrc0:
> streaming task paused, reason not-negotiated (-4)
> Execution ended after 107634366 ns.
>
>
> can anyone help me?



------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel