我有一個關於gstreamer的問題。 我使用gst-rtsp-server製作了流媒體服務器。我試圖將相機捕獲發送到另一臺機器(在本地網絡上)並將其解析爲.ogv文件。用gst-rtsp-server接收流
流傳輸工作正常,我能夠解析信息到文件;但是我無法讀取它,或者在解析之後將它用於任何應用程序。它似乎有一些信息缺失(可能與編碼技術的關係,我真的不知道很多關於它)
服務器端的命令(內C++代碼):
....
gst_rtsp_media_factory_set_launch (factory, "(v4l2src device=/dev/video0 ! videorate !
video/x-raw-yuv,width=320,height=240,framerate=30/1 ! videoscale ! ffmpegcolorspace !
theoraenc ! rtptheorapay name=pay0 pt=96)");
gst_rtsp_media_factory_set_shared (factory, TRUE);
/* attach the test factory to the /test url */
gst_rtsp_media_mapping_add_factory (mapping, "/stream", factory);
....
客戶端命令(終端命令):
gst-launch -v rtspsrc location=rtsp://192.168.0.115:8554/stream !
rtptheoradepay name=pay0 ! oggmux ! filesink location=/home/jean/Desktop/stream.ogv
任何幫助任何形式的幫助,非常感謝!
讓
有沒有人有想法? – Athanase
如果這仍然是最新的,您可能想要添加有關RTSP客戶端應用程序顯示的錯誤的信息。 – che