2016-05-31 162 views
0

接收我有便宜的基於Ambarella soc的ip相機,我試圖從它recive rtsp流。 它與ffmpeg的Gstreamer rtsp從ipcamera

ffplay -rtsp_transport tcp -i rtsp://admin:[email protected]:80/0 

,但是當我試圖在GStreamer得到它

gst-launch-1.0 -m tcpclientsrc rtspsrc location=rtsp://admin:[email protected] port=80 ! decodebin ! autovideosink 

我有一個問題:

設置管道停頓了一下。 管道是活(狀態變化):GstMessageSta teChanged,old-state =(GstState)GST_STATE_NULL,new-state =(GstState)GST_STATE_ REA DY,pending-state =(GstState)GST_STATE_VOID_PENDING; (狀態變化):GstMessageStateChanged, old-state =(GstState)GST_STATE_NULL,new-state =(GstState)GST_STATE_READY,正在等待 -state =(GstState)GST_STATE_VOID_PENDING; (狀態變化):GstMessageStateChanged, old-state =(GstState)GST_STATE_NULL,new-state =(GstState)GST_STATE_READY,正在等待 -state =(GstState)GST_STATE_PAUSED; (狀態變化):GstMessageSta teChanged,old-state =(GstState)GST_STATE_READY,new-state =(GstState)GST_STATE_PA 已使用,pending-state =(GstState)GST_STATE_VOID_PENDING; (狀態改變):GstMessageStateChan ged,old-state =(GstState)GST_STATE_NULL,new-state =(GstState)GST_STATE_READY,pe nding-state =(GstState)GST_STATE_PAUSED;

回答

0

試試這個,

gst-launch-1.0 rtspsrc location="rtsp://admin:[email protected]:80" ! rtph264depay ! h264parse ! nv_omx_h264dec ! ffmpegcolorspace ! queue ! xvimagesink 

您可以從Web瀏覽器的源代碼獲得正確的RTSP ID,如果你試圖在那裏流呢。