Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
live_cam [2017/09/07 15:36] admin created |
live_cam [2017/09/08 21:12] (current) admin [HDMI settings] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ==== Py Live Cam ==== | + | ===== Py Live Cam ===== |
| Setup for a Raspberry Pi live camera with Python. | Setup for a Raspberry Pi live camera with Python. | ||
| Line 5: | Line 5: | ||
| [[https:// | [[https:// | ||
| - | For the VGA hat check the modifications here:\\ | + | For the VGA Hat check the modifications here:\\ |
| [[http:// | [[http:// | ||
| ---- | ---- | ||
| - | === Modifications | + | ==== Some Mods ==== |
| **Remove the splash screen:** | **Remove the splash screen:** | ||
| $ sudo nano / | $ sudo nano / | ||
| Line 19: | Line 19: | ||
| enable camera | enable camera | ||
| - | **disable | + | **Disable |
| sudo nano / | sudo nano / | ||
| add: | add: | ||
| + | # Disable camera light | ||
| disable_camera_led=1 | disable_camera_led=1 | ||
| + | **Install some software:** | ||
| + | $ sudo apt-get install git htop cmake | ||
| ---- | ---- | ||
| - | === Install | + | ==== Install |
| - | sudo apt-get install | + | |
| + | **Install Pip:** | ||
| + | $ sudo apt-get install | ||
| + | |||
| + | **Install python picamera: | ||
| + | [[PiCamera]]\\ | ||
| + | $ sudo apt-get install python-picamera | ||
| + | |||
| + | **Install python omxplayer: | ||
| + | [[python_omxplayer|Python OMXPlayer]]\\ | ||
| + | |||
| + | ---- | ||
| + | ==== Python Live Cam ==== | ||
| + | |||
| + | $ mkdir picam | ||
| + | $ cd picam | ||
| + | |||
| + | **Download the program:** | ||
| autostart: | autostart: | ||
| Line 40: | Line 60: | ||
| ---- | ---- | ||
| - | === HDMI settings === | + | ==== Network configuration ==== |
| + | [[IP and Network]]\\ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ==== SD card read-only ==== | ||
| + | Set the SD card to a read-only mode.\\ | ||
| + | [[SD_card_read-only|Read-Only SDcard]] | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ==== HDMI settings | ||
| Check the current HDMI state: | Check the current HDMI state: | ||
| Line 69: | Line 100: | ||
| ---- | ---- | ||
| + | ==== Change H264 to mp4 ==== | ||
| + | |||
| + | $ sudo apt-get install gpac | ||
| + | $ MP4Box -add filename.h264 filename.mp4 | ||
| + | | ||
| + | ---- | ||
| + | ==== Links ==== | ||
| + | [[http:// | ||