Gstreamer mux, caps refused



我正在使用以下管道(简化)gstreamer oss构建0.10.7在Win 7 x64上:

udpsrc ! application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264,        payload=(int)96 !
gstrtpjitterbuffer latency=200 ! rtph264depay ! tee name=h264Tee 
h264Tee. ! queue ! h264parse ! mux. 
matroskamux name=mux ! filesink location=rec.mkv sync=false // same for avimux/mp4/qt
h264Tee. ! queue ! ffdec_h264 ! tee name=videoTee 
//.videoTee ! queue ! dx9videosink
//.videoTee ! queue ! appsink
//udpsrc ! queue ! directsoundsink
audiotestsrc ! mux. //only for testing, should be connected to udpsrc

该管道是通过GSTREAMER-SHARP启动的。这是管道的控制台输出:

WARN default xoverlay.c:354:gst_x_overlay_set_xwindow_id:<videoSink> Using deprecated gst_x_overlay_set_xwindow_id()
ERROR d3dvideosink d3dvideosink.c:2204:gst_d3dvideosink_release_swap_chain: Direct3D device has not been initialized
WARN bin gstbin.c:2378:gst_bin_do_latency_func:<pipeline0> failed to query latency
WARN matroskamux matroska-mux.c:970:gst_matroska_mux_video_pad_setcaps:<mux> pad video_0 refused caps 05370C40

,只要我遗漏了Muxer,视频和音频都可以播放。当将Muxer包括在管道中时,视频即时冻结,无法听到声音。怎么了,为什么Muxer拒绝盖子?

好的,我的自我解决了:上面的视频帽不包含Sprop-Caremet-Sets,而播放不需要。对于编码而需要编码,因为这些流的各种特性都在其中编码:

中。
udpsrc ! 
application/x-rtp, media=(string)video, clock-rate=(int)90000, 
encoding-name=(string)H264, 
sprop-parameter-sets= (string)"Z0LADdkBQfsBEAAAAwAQAAADAyjxQqSA\,aMuMTIA\=", 
payload=(int)96, 
ssrc (uint)2332354585, 
clock-base=(uint)1158355497, 
seqnum-base=(uint)10049 !
gstrtpjitterbuffer latency=200 ! rtph264depay ! tee name=h264Tee 
...

相关内容

最新更新