2011-10-27 2 views
0

gstreamer에 대한 질문이 있습니다. gst-rtsp-server를 사용하여 스트리밍 서버를 만들었습니다. 로컬 네트워크의 다른 컴퓨터로 카메라 캡처를 보내고 .org 파일로 구문 분석하려고합니다.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 

모든 종류의 도움을 주시면 감사하겠습니다.

볼 다음과 같이 내가 파이프 라인을 디코딩 할 수
+0

누구나 아이디어가 있습니까? – Athanase

+0

여전히 최신 인 경우 RTSP 클라이언트 응용 프로그램에 표시되는 오류와 관련된 정보를 추가 할 수 있습니다. – che

답변

0

그것은 gst-launch -v rtspsrc location="rtsp://localhost:8554/test" name=demux demux. ! queue ! rtptheoradepay ! theoradec ! ffmpegcolorspace ! autovideosink

gst-launch -v rtspsrc location="rtsp://localhost:8554/test" ! application/x-rtp, payload=96 ! rtptheoradepay ! theoradec ! videorate ! ffmpegcolorspace ! theoraenc ! oggmux ! filesink location=GIBBERISH.ogg

나는 그것을 디코딩하고 기록하기 전에 다시 videorate와 그것을 인코딩 디코딩 파일. 동일한 작업을 수행하는 데 더 효과적인 방법이있을 수 있지만 해결 방법 일뿐입니다.