Cov txheej txheem:

Raspberry Pi Web Stream Kit - Ntu 2 (Pi Video Streaming): 6 Cov Kauj Ruam
Raspberry Pi Web Stream Kit - Ntu 2 (Pi Video Streaming): 6 Cov Kauj Ruam

Video: Raspberry Pi Web Stream Kit - Ntu 2 (Pi Video Streaming): 6 Cov Kauj Ruam

Video: Raspberry Pi Web Stream Kit - Ntu 2 (Pi Video Streaming): 6 Cov Kauj Ruam
Video: It Became Unliveable! ~ Abandoned Home Of The Spenser's In The USA 2024, Hlis ntuj nqeg
Anonim
Raspberry Pi Web Stream Kit - Ntu 2 (Pi Video Streaming)
Raspberry Pi Web Stream Kit - Ntu 2 (Pi Video Streaming)
Raspberry Pi Web Stream Kit - Ntu 2 (Pi Video Streaming)
Raspberry Pi Web Stream Kit - Ntu 2 (Pi Video Streaming)
Raspberry Pi Web Stream Kit - Ntu 2 (Pi Video Streaming)
Raspberry Pi Web Stream Kit - Ntu 2 (Pi Video Streaming)

Okay, kuv tsis xav tias qhov no xav tau cov duab, tab sis lub vev xaib nyiam cov duab. Cov no feem ntau yog cov lus txib thiab cov kauj ruam rau koj. Muaj tus lej ntawm lwm qhov chaw uas tuaj yeem hais txog txhua yam tshwj xeeb.

Nov yog qhov ua haujlwm rau kuv. Qhov no suav nrog lwm daim los ntawm txhua qhov mus rau teeb tsa lub webcam & raspberry pi system kom tso cov zis rau qee lub khoos phis tawj, qhov no, OBS Studio khiav.

Kuv siv lub koob yees duab los muab ntau lub ntsiab lus pom ntawm FIRST LEGO League kev sib tw. Kuv kuj tseem muab 4 lub koob yees duab tso rau kuv cov menyuam kawm ntawv theem siab kom tso tau cov xwm txheej (kev hais kwv txhiaj, kev kawm tiav, thiab lwm yam) rau Facebook. Kuv kuj tau sim nrog Twitch thiab Youtube. OBS Studio muab ntau txoj kev xaiv

Tsis muaj qhov txwv tiag rau cov koob yees duab, tsis yog siv bandwidth. Kuv nyiam siv cov kab nyuaj, vim nws khaws cov bandwidth zoo dua. Wireless muaj teeb meem latency, tshwj xeeb tshaj yog nyob rau hauv ib puag ncig teeb liab teeb liab nrog ntau ntawm cov hlau (nrhiav tau qhov no thaum lub sij hawm qhuav ntawm lub tsev kawm ntawv cov nyiaj pab txhawb nqa).

Khoom siv

Computer nrog Kev Siv Internet

Raspberry Pi, nrog cov keyboard/nas/video nkag tau. Ethernet nkag mus rau Is Taws Nem ib yam.

Logitech c920 webcam

Kauj Ruam 1: Kho RPi Memory Card

Rau Daim Npav nrog NOOBs teeb tsa

Kuv tab tom pib nrog daim npav uas tuaj nrog cov khoom kuv nyuam qhuav tau txais los ntawm ABOX. Noobs v3.0.0 nyob ntawm daim npav.

Kuv muaj daim npav uSD 32GB. Ib 16 GB tseem yuav ua haujlwm. Kuv xav tias me me tuaj yeem ua haujlwm, tab sis rau tus nqi sib txawv, tsuas yog tau txais 16, 32, lossis daim npav loj dua.

Yog tias koj muaj daim npav, koj tuaj yeem hla mus rau Kauj Ruam 2

Rau kev teeb tsa tshiab los ntawm kos,

Download NOOBS latest from

  • Rub cov cuab yeej rau SD Card teeb tsa
    • Txhawm rau format SD Card nkaus xwb: SD Card Formatter

      https://www.sdcard.org/downloads/formatter/index.html

    • Rau kev nyeem los ntawm daim npav / sau ntawv rau SD daim npav

      https://sourceforge.net/projects/win32diskimager/files/latest/download

  • Siv uSD adapter rau USB, lossis SD daim npav los txuas rau koj lub PC Windows
  • Format SD card, siv SD Card Formatter
  • Load NOOBs.zip mus rau SD card, siv win32diskimager,
  • Tshem daim npav SD ntawm koj lub cuab yeej

Qhov no zoo ib yam li cov kauj ruam ntawm

Kauj ruam 2: Teeb RPi Installation

Teeb RPi Installation
Teeb RPi Installation
Teeb RPi Installation
Teeb RPi Installation
Teeb RPi Installation
Teeb RPi Installation

Ntxig daim npav SD rau hauv rPi

  • Xyuas kom rPi muaj cov vis dis aus tso tawm, Enet, Keyboard, Mouse, thiab Video txuas
  • Siv lub zog rau chav tsev
  • Ntawm lub qhov rais teeb tsa, Xaiv OS los nruab (Raspbian tau siv rau qhov piv txwv no)

    • Qhov no yuav siv qee lub sijhawm (li 20 feeb)
    • Kho lub tebchaws, lus, keyboard …
    • Ua ib qho kev hloov tshiab (tau txheeb xyuas ntawm teeb)
  • Tom qab Reboot, ua lwm yam teeb tsa ntawm Raspberry Pi Configuration Dialog

    • Hloov kho tus tswv tsev lub npe rau tus nqi uas xav tau
    • Pab kom SSH, VNC, chaw nres nkoj txuas, txuas txuas

      Lov tes taw lwm yam khoom

    • Tsis muaj kev hloov kho tshiab
    • Tsis muaj kev hloov chaw (yuav tsum tau teeb tsa zoo los ntawm kev teeb tsa thawj zaug)

Kauj Ruam 3: Nruab Qhov Software Xav Tau

Nruab qhov Software Xav Tau
Nruab qhov Software Xav Tau
Nruab qhov Software Xav Tau
Nruab qhov Software Xav Tau
Nruab qhov Software Xav Tau
Nruab qhov Software Xav Tau

FIRST - Tua lub qhov rai davhlau ya nyob twg thiab hloov kho rPi distro

sudo apt-tau hloov tshiab

sudo apt-tau nruab dist-upgrade

Qhov thib ob - Rub tawm cov tsev qiv ntawv yooj yim xav tau thiab tsim

sudo apt-tau nruab tsim-qhov tseem ceeb libjpeg8-dev imagemagick libv4l-dev cmake -y

sudo ln -s /usr/include/linux/videodev2.h /usr/include/linux/videodev.h

(Kuv tsis nco qab qhov txuas rau videodev2.h txuas. Nws nyob hauv keeb kwm ntawm kuv qhov kev teeb tsa qub ib xyoos dhau los. Nws zoo li tsis mob rau qhov siv no)

Kawg - Rub tawm-j.webp" />

ua cd

git clone https://github.com/jacksonliam/mjpg-streamer.git cd mjpg-streamer/mjpg-streamer-sim ua sudo ua nruab

Kauj Ruam 4: Xeem Kev Tshaj Tawm

Kuaj Cov Streaming
Kuaj Cov Streaming
Kuaj Cov Streaming
Kuaj Cov Streaming

Ntawm lub qhov rais davhlau ya nyob twg, ua cov hauv qab no

/usr/local/bin/mjpg_streamer -i "input_uvc.so -r 1280x720 -d/dev/video0 -f 30 -q 80" -o "output_http.so -p 8080 -w/usr/local/share/mjpg- xov xwm/www"

Saib kwj ntawm rPi

qhib lub brower rau "localhost: 8080/? action = stream"

Saib kwj ntawm koj lub PC

Ntawm rPi, tau txais IP chaw nyob rau chav tsev (ifconfig) (eth0: 192.168.1.36, piv txwv)

Qhib koj lub PC brower rau "https://192.168.1.36:8080/?action=stream"

Kauj ruam 5: Kho rau Autostart

Kho kom raug rau Autostart
Kho kom raug rau Autostart
Kho rau Autostart
Kho rau Autostart
Kho kom raug rau Autostart
Kho kom raug rau Autostart

Hloov tshiab ~/mjpg-streamer/mjpg-streamer-experimental/start.sh

Nco ntsoov kab ntawv no tau ntxiv thiab tsis tawm lus:

./mjpg_streamer -i "./input_uvc.so -r HD -f 30" -o "./output_http.so -w./www"

Hloov tshiab /etc/rc.local

Hloov qhov "tawm 0" tom kawg ntawm cov ntawv nrog:

cd/tsev/pi/mjpg-streamer/mjpg-streamer-sim

sudo./start.sh & tawm 0

Rov pib dua raspberry pi thiab rov ua Kauj Ruam 4, txhawm rau txheeb xyuas yam

Kauj Ruam 6: Yeem Tsis Nyob IP Qhov Chaw Nyob

Lub hauv paus DHCP qhov chaw nyob yuav txaus rau koj xav tau.

Koj kuj tseem yuav xav teeb tsa koj tus kheej IP teeb tsa zoo li qub. Kuv kev teeb tsa rau kuv cov cuab yeej kho mob txhais tau tias muaj lub network kaw.

Kuv LAN teeb tsa yog:

  • (4 qty) Logitech C920 USB lub koob yees duab RPi
  • Txhua RPi txuas nrog qhov hloov pauv uas tsis muaj kev tswj hwm.
  • Lub khoos phis tawj nrog OBS Studio tseem txuas rau qhov hloov pauv.
  • Txhua qhov chaw nres nkoj no tau teeb tsa rau kuv tus kheej tus IP chaw teeb tsa.
  • Ntawm RPi, hauv /etc/dhcpcd.conf, kuv teeb tsa cov chaw no

eth0 ua

qhia 8.11.2.12

routers zoo li qub = 8.11.1.1

wb wl0

qhia 8.11.2.102

routers zoo li qub = 8.11.1.1

Txhawm rau kom tau txais OBS lub suab xa mus rau "ntiaj teb sab nrauv", siv koj lub khoos phis tawj lossis USB Ethernet adapter txhawm rau thawb cov khoom tso tawm rau Facebook, YouTube, Twitch, lossis lwm yam kev pabcuam video server.

Pom zoo: