Installer MJPG-Streamer sur Raspberry Pi : Différence entre versions
(Premier jet) |
(Ajout scripts) |
||
Ligne 2 : | Ligne 2 : | ||
==Présentation== | ==Présentation== | ||
− | |||
− | |||
==Niveau de difficulté== | ==Niveau de difficulté== | ||
Ligne 9 : | Ligne 7 : | ||
[[Fichier:vert.png]] | [[Fichier:vert.png]] | ||
− | == | + | ==Installation== |
+ | Script : | ||
+ | |||
+ | #!/bin/bash | ||
+ | echo "Installing dependencies" | ||
+ | sudo apt-get install libjpeg8-dev imagemagick libv4l-dev | ||
+ | echo "Cleaning" | ||
+ | rm -rf mjpg-streamer* | ||
+ | echo "Creating symlink to videodev2.h" | ||
+ | sudo ln -s /usr/include/linux/videodev2.h /usr/include/linux/videodev.h | ||
+ | echo "Downloading sources" | ||
+ | wget http://sourceforge.net/code-snapshots/svn/m/mj/mjpg-streamer/code/mjpg-streamer-code-182.zip | ||
+ | echo "Extracting" | ||
+ | unzip mjpg-streamer-code-182.zip | ||
+ | echo "Building" | ||
+ | cd mjpg-streamer-code-182/mjpg-streamer | ||
+ | make mjpg_streamer input_uvc.so output_http.so | ||
+ | echo "Installing" | ||
+ | sudo cp mjpg_streamer /usr/local/bin | ||
+ | sudo cp output_http.so input_uvc.so /usr/local/lib/ | ||
+ | sudo cp -R www /usr/local/www | ||
− | == | + | ==Utilisation== |
− | + | Script : | |
− | = | + | echo "Starting MJPG-Streamer" |
+ | export LD_LIBRARY_PATH=/usr/local/lib | ||
+ | mjpg_streamer -i "input_uvc.so -d /dev/video0 -r 640x480 -f 20" -o "output_http.so -p 8080 -w /usr/local/www" > mjpgstreamer.log 2>&1 & | ||
==Liens== | ==Liens== |
Version du 25 mars 2014 à 20:15
Article en cours de rédaction |
---|
Présentation
Niveau de difficulté
Installation
Script :
#!/bin/bash echo "Installing dependencies" sudo apt-get install libjpeg8-dev imagemagick libv4l-dev echo "Cleaning" rm -rf mjpg-streamer* echo "Creating symlink to videodev2.h" sudo ln -s /usr/include/linux/videodev2.h /usr/include/linux/videodev.h echo "Downloading sources" wget http://sourceforge.net/code-snapshots/svn/m/mj/mjpg-streamer/code/mjpg-streamer-code-182.zip echo "Extracting" unzip mjpg-streamer-code-182.zip echo "Building" cd mjpg-streamer-code-182/mjpg-streamer make mjpg_streamer input_uvc.so output_http.so echo "Installing" sudo cp mjpg_streamer /usr/local/bin sudo cp output_http.so input_uvc.so /usr/local/lib/ sudo cp -R www /usr/local/www
Utilisation
Script :
echo "Starting MJPG-Streamer" export LD_LIBRARY_PATH=/usr/local/lib mjpg_streamer -i "input_uvc.so -d /dev/video0 -r 640x480 -f 20" -o "output_http.so -p 8080 -w /usr/local/www" > mjpgstreamer.log 2>&1 &
Liens
Auteurs
Pila