RasberryPi에 H.264 이미지를 게시합니다.Mac에서 수신
2931 단어 RaspberryPiMac
나는 raspi의 카메라로 영상 발표에 도전했다.왜 USB 카메라로 잘 안 돌아가는지 모르겠다(T T)
설치하다.
설치(RasberryPi 측면)
이 전제하에 카메라 모듈은 이미 이동으로 설정되었다.
Gstreamer 설치
설치하다.
sudo su -
echo "deb http://vontaene.de/raspbian-updates/ . main" >> /etc/apt/sources.list
apt-get update
apt-get install libgstreamer1.0-0 libgstreamer1.0-0-dbg libgstreamer1.0-dev liborc-0.4-0 liborc-0.4-0-dbg liborc-0.4-dev liborc-0.4-doc gir1.2-gst-plugins-base-1.0 gir1.2-gstreamer-1.0 gstreamer1.0-alsa gstreamer1.0-doc gstreamer1.0-omx gstreamer1.0-plugins-bad gstreamer1.0-plugins-bad-dbg gstreamer1.0-plugins-bad-doc gstreamer1.0-plugins-base gstreamer1.0-plugins-base-apps gstreamer1.0-plugins-base-dbg gstreamer1.0-plugins-base-doc gstreamer1.0-plugins-good gstreamer1.0-plugins-good-dbg gstreamer1.0-plugins-good-doc gstreamer1.0-plugins-ugly gstreamer1.0-plugins-ugly-dbg gstreamer1.0-plugins-ugly-doc gstreamer1.0-pulseaudio gstreamer1.0-tools gstreamer1.0-x libgstreamer-plugins-bad1.0-0 libgstreamer-plugins-bad1.0-dev libgstreamer-plugins-base1.0-0 libgstreamer-plugins-base1.0-dev
설치(Mac 측 10.9 시스템)
Gstreamer 설치
설치하다.
brew install gstreamer
실행
배포 처리
RasberryPi의 IP 주소는
192.168.0.3
입니다.발포
raspivid -t 999999 -w 1080 -h 720 -fps 25 -hf -b 2000000 -o - | gst-launch-1.0 -v fdsrc ! h264parse ! rtph264pay config-interval=1 pt=96 ! gdppay ! tcpserversink host=192.168.0.3 port=5555
Mac에서 수신
접수
gst-launch-1.0 -v tcpclientsrc host=192.168.0.3 port=5555 ! gdpdepay ! rtph264depay ! avdec_h264 ! videoconvert ! osxvideosink
라스피의 CPU 부하는 풀 HD에서도 20% 정도다.Reference
이 문제에 관하여(RasberryPi에 H.264 이미지를 게시합니다.Mac에서 수신), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/m0a/items/4e9f537e54b849be2391텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)