How to play IPTV streamer by udpsrc?

tanzhichaoanuo tanzhichaoanuo at 163.com
Mon May 14 07:25:21 PDT 2012


Now I want to play the IPTV stream which was captured by WireShark and was
saved in th pcap file,
Server:
I use the "tcpreplay -i eth0 iptv.pcap" to sent the stream on a server
computer,

Client:
and use the command:
"gst-launch-0.10 -v gstrtpbin name=rtpbin udpsrc  multicast-iface=eth0
multicast-group=225.1.2.2 port=8034 caps="application/x-rtp, \
media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, \
ssrc=(guint)1253787951, payload=(int)33, clock-base=(guint)3847989125, \
seqnum-base=(guint)25200"  ! \
rtpbin.recv_rtp_sink_0 rtpbin. ! rtpmp2tdepay ! mpegtsdemux name=d ! queue \
! 'video/x-h264' ! ffdec_h264 ! ffmpegcolorspace ! videoscale ! queue !
xvimagesink
" 

Result:
On the client,when execute the above command,I stop at:
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock

But I use VLC on the client ,then can get the server stream and can play it
normally.Wheather there is some wrong with my pipeline command?

By doing some research,I find the IPTV stream is different from the common
stream:
1.I use tcpdump -i eth0 ,and get the follow infor:
09:11:55.138926 IP 61.181.150.102.12502 > 225.1.2.2.8034: UDP, length 1348
09:11:55.142901 IP 61.181.150.102.12502 > 225.1.2.2.8034: UDP, length 1348
09:11:55.146890 IP 61.181.150.102.12502 > 225.1.2.2.8034: UDP, length 1348
09:11:55.150871 IP 61.181.150.102.12502 > 225.1.2.2.8034: UDP, length 1348
09:11:55.154911 IP 61.181.150.102.12502 > 225.1.2.2.8034: UDP, length 1348
09:11:55.160492 IP 61.181.150.102.12502 > 225.1.2.2.8034: UDP, length 1348
09:11:55.164337 IP 61.181.150.102.12502 > 225.1.2.2.8034: UDP, length 1348

As the length is 1348,If I play a pcap file(the length is 1316) use the
tcpreplay,then I use udpsrc on the client can get the stream and can play
it.So wheather the length 1348 is 
not a common rtp package ,or udpsrc can't deal with the larger then 1348
package?
 Thanks very much.For this ,I try many ways and many days,but still failed.
                           zhichao.


--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-play-IPTV-streamer-by-udpsrc-tp4632303.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list