gstreamer 播放ts流

gst-launch-0.10 filesrc location=wenxiaohua.ts ! decodebin2 !  ffmpegcolorspace ! videoscale ! ximagesink  //ok

sever:

gst-launch-0.10 -v filesrc location=wfd.ts ! tsdemux  ! mpegtsmux ! rtpmp2tpay ! udpsink host=localhost port=5000

client:
gst-launch-0.10 -vm udpsrc uri=udp://127.0.0.1:5000 caps=\"application/x-rtp,media=video,clock-rate=90000,payload=33,encoding-name=MP2T\" ! .recv_rtp_sink_0 gstrtpbin latency=800 ! rtpmp2tdepay ! tsdemux name=demux demux.  ! queue ! h264parse ! ffdec_h264 ! ffmpegcolorspace ! ximagesink

你可能感兴趣的:(c)