This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# for FOMA L-02A | |
# USB Storage (Zero Installation) | |
KERNEL=="sr[0-9]*", ENV{ID_VENDOR_ID}=="1004", ENV{ID_MODEL_ID}=="610c", RUN+="/usr/bin/eject /dev/$kernel" | |
# USB Modem (ttyUSB) | |
SUBSYSTEM=="usb", ATTR{idVendor}=="1004", ATTR{idProduct}=="6109", RUN+="/sbin/modprobe usbserial vendor=0x$attr{idVendor} product=0x$attr{idProduct}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -f v4l2 -input_format yuv420p -video_size 320x240 -i /dev/video0 -an -c:v h264_omx -r:v 5 -f mpegts udp://192.168.11.4:1234 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
raspivid -n -vf -hf -t 0 -w 320 -h 240 -fps 5 -o - | ffmpeg -i - -vcodec copy -an -c:v h264_omx -f mpegts udp://192.168.11.7:1234 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/ccrisan/motioneyeos/issues/365 | |
ffmpeg -f v4l2 -input_format yuv420p -framerate 25 -video_size 640x480 -i /dev/video0 -frames 500 -an -c:v h264_omx test.mp4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -f v4l2 -input_format yuv420p -i /dev/video0 -an -c:v h264_omx -f segment -segment_format mpegts -segment_time 5 -segment_list stream/playlist.m3u8 stream/a%03d.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c_path=`pwd` | |
# x264 | |
git clone git://git.videolan.org/x264 | |
cd x264 | |
#./configure --prefix=${c_path}/output --enable-static --disable-opencl | |
#./configure --prefix=${c_path}/output --enable-shared --disable-opencl | |
./configure --enable-shared --disable-opencl | |
make -j4 | |
sudo make install | |
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://www.pyimagesearch.com/2016/04/18/install-guide-raspberry-pi-3-raspbian-jessie-opencv-3/ | |
c_path=`pwd` | |
sudo apt-get install libv4l-dev | |
cd /usr/include/linux | |
sudo ln -s ../libv4l1-videodev.h videodev.h | |
cd ${c_path} | |
sudo apt-get install build-essential cmake pkg-config | |
sudo apt-get install libjpeg-dev libtiff5-dev libjasper-dev libpng12-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://www.zedt.eu/tech/hardware/using-ds1302-real-time-clock-module-raspberry-pi/ | |
wget http://www.zedt.eu/storage/2014/07/rtc-pi-20140727.zip | |
unzip rtc-pi-20140727.zip | |
cc rtc-pi.c -o rtc-pi | |
sudo cp rtc-pi /usr/local/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NGINX, php | |
sudo apt-get install nginx | |
sudo apt-get install php5-fpm | |
sudo sed -i 's|index index.html index.htm|index index.php index.html index.htm|g' /etc/nginx/sites-enabled/default | |
sudo sed -i 's|#location ~ \\\.php$ {|location ~ \\\.php$ {|' /etc/nginx/sites-enabled/default | |
sudo sed -i 's|#\tinclude snippets/fastcgi-php.conf;|\tinclude snippets/fastcgi-php.conf;|g' /etc/nginx/sites-enabled/default | |
sudo sed -i 's|#\tfastcgi_pass unix:/var/run/php5-fpm.sock;|\tfastcgi_pass unix:/var/run/php5-fpm.sock; }|g' /etc/nginx/sites-enabled/default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://qiita.com/kwi/items/36a5233d4ab31c015f8a | |
sudo apt-get update -y | |
sudo apt-get dist-upgrade -y | |
sudo apt-get install gstreamer1.0 gstreamer1.0-tools | |
# confirm using omx | |
gst-inspect-1.0 | grep omx |