[gst-devel] Trickplay problem on streaming RTP data

Jyoti jyoti.d at allaboutif.com
Tue Jun 16 13:28:28 CEST 2009


Hi all,

I have written application to save a live incoming RTP data
send by the server.
The pipelines am using are as below:

SERVER:
gst-launch gstrtpbin name=rtpbin filesrc
location=~/Desktop/h264-aac/staurt.mp4 ! qtdemux name=d d. ! rtph264pay !
rtpbin.send_rtp_sink_0 rtpbin.send_rtp_src_0 ! udpsink port=5002
host=224.0.0.1 rtpbin.send_rtcp_src_0 ! udpsink port=5003 host=224.0.0.1
sync=false async=false udpsrc port=5007 ! rtpbin.recv_rtcp_sink_0
-v


CLIENT incorrect framerate:
gst-launch gstrtpbin name=rtpbin udpsrc caps="application/x-rtp,
media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264,
profile-level-id=(string)4d400d,
sprop-parameter-sets=(string)\"Z01ADZJSAoP2AiAAAAMDACAAAAeR4oVJ\\,aO4Cssg\\=\",
ssrc=(guint)1263364558, payload=(int)96, clock-base=(guint)651034802,
seqnum-base=(guint)43734" uri=udp://224.0.0.1:5002 ! rtpbin.recv_rtp_sink_0
rtpbin. ! rtph264depay ! ffdec_h264 ! ffmpegcolorspace ! x264enc ! mpegtsmux
! filesink location=~/Desktop/test-h264-in-mpeg2ts.ts -e -v

ISSUES:
1. The frame rate in the ffdec_h264 srccaps is
"framerate=(fraction)1048576/3" which is incorrect.
2. When I start playing the file which is still been written on the client
side
   the duration is the duration the point we started playing file.
3. The duration doesn't give the value for the duration of the whole file.
4. This creates problem during seeking.
5. The client with the below pipeline works fine and outputs the proper
frame rate.
   But the seeking is still a problem.


P.S. The trickmode operations can be done properly once the whole file is
saved.

CLIENT correct framerate:
gst-launch gstrtpbin name=rtpbin udpsrc caps="application/x-rtp,
media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264,
profile-level-id=(string)4d400d,
sprop-parameter-sets=(string)\"Z01ADZJSAoP2AiAAAAMDACAAAAeR4oVJ\\,aO4Cssg\\=\",
ssrc=(guint)1263364558, payload=(int)96, clock-base=(guint)651034802,
seqnum-base=(guint)43734" uri=udp://224.0.0.1:5002 port=5002 !
rtpbin.recv_rtp_sink_0 rtpbin. ! rtph264depay ! "video/x-h264,
width=(int)320, height=(int)240, framerate=(fraction)30/1" ! ffdec_h264 !
ffmpegcolorspace ! x264enc ! "video/x-h264, width=(int)320, height=(int)240,
framerate=(fraction)30/1,
codec_data=(buffer)014d4015ffe10017674d401592540a0fd80880000003008000001e478b175001000468ee3c80"
! mpegtsmux ! filesink location=~/Desktop/test-h264-in-mpeg2ts.ts -e -v

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090616/b3214fae/attachment.htm>


More information about the gstreamer-devel mailing list