User Tools

Site Tools


rpi_kiosk

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
rpi_kiosk [2015/03/25 13:35]
wbeckett
rpi_kiosk [2021/06/04 02:16] (current)
Line 1: Line 1:
 ====== RPI Kiosk ====== ====== RPI Kiosk ======
 +
 +
 +<​code>​
 +
 +Upgrade:
 +sudo apt-get update
 +
 +sudo apt-get dist-upgrade
 +
 +
 +apt-get install build-essential
 +
 +</​code>​
 +
  
 [[http://​michaelteeuw.nl/​tagged/​magicmirror | Magic Mirror]] [[http://​michaelteeuw.nl/​tagged/​magicmirror | Magic Mirror]]
Line 38: Line 52:
  
 [[http://​www.instructables.com/​id/​View-RTMP-Stream-on-Raspberry-Pi/​ | RTMP Stream]] [[http://​www.instructables.com/​id/​View-RTMP-Stream-on-Raspberry-Pi/​ | RTMP Stream]]
 +
 +[[http://​raspi.tv/​2012/​get_iplayer-installation-on-raspberry-pi-with-raspbian | Recording a Stream ]]
 +
 +[[http://​stackoverflow.com/​questions/​14087135/​how-would-i-use-rtmpdump-to-download-this-stream | Downloading the stream]]
 +
 +[[http://​www.raspberrypi-spy.co.uk/​2013/​05/​capturing-hd-video-with-the-pi-camera-module/​ | RPI Camera]]
 +
 +[[http://​wiki.elphel.com/​index.php?​title=Using_FFmpeg_with_Video_API | ffmpeg ​ usage]]
  
 <​code>​ <​code>​
Line 47: Line 69:
  
 sudo apt-get update && apt-get upgrade -y sudo apt-get update && apt-get upgrade -y
 +
 +
 +
 +    sudo apt-get update
 +
 +    sudo apt-get upgrade -y
 +
 +    sudo apt-get dist-upgrade -y
 +
 +    sudo rpi-update
 +
 +
 No it’s time to actually install apache: No it’s time to actually install apache:
  
Line 153: Line 187:
  
 ssh pi@raspberrypi.local ssh pi@raspberrypi.local
 +</​code>​
 +
 +<​code>​
 + I managed to stream from my PI to a Web server with the compiled in module nginx-rtmp. To save hassles with ffmpeg I recommend a rolling distribution like Archlinux Arm. raspivid -vf -t 0 -fps 25 -b 2000000 -o - | ffmpeg -i - -vcodec copy -an -r 25 -f flv rtmp://​x220/​myapp/​mystream Some notes: The hardware encoded h264 video stream takes about ...
 +webcam streaming-video camera
 +answered Aug 3 '13 at 4:36
 +hendry
 +1694
 +
 +
 +4
 +
 +What streaming solution for the Picam has the smallest lag?
 +With Ubuntu 14.10 and Gstreamer I reach 100 to 116 ms latency with 1280 x 720 @ 60Hz. Tanks to @Antonvh who puts me on the right way. I reproduce here the solution for latter reference. To stream from the Pi : raspivid -t 0 -b 2000000 -fps 60 -w 1280 -h 720 -o - \ | gst-launch-1.0 -e -vvv fdsrc ! h264parse ! rtph264pay pt=96 config-interval=5 \ ! ... 
 +
 +http://​raspberrypi.stackexchange.com/​tags/​streaming-video/​hot
 +</​code>​
 +
 +<​code>​
 +flash tests
 +
 +apt-get install xmms2-plugin-flv
 +
 +apt-get install xul-ext-flashblock
 +
 +</​code>​
 +
 +<​code>​
 + ​Installing Flash Player
 +The usual flashplugin-nonfree for Linux is not available for ARM devices. The solution is to use PepperFlash plugin. It's not available for the public from the Google team, but thanks to Lee Harris we can download it from his site. It's a link for the plugin for ARMv7 ripped from original Google OS from Chromebook. If you don't trust the link above you may try to rip it out yourself. After you download the archive you should extract the Pepperflash dir to /usr/lib. After that you need to do the following changes to the Chromium config file /​etc/​chromium-browser/​default. You should modify it, so it has a line:
 +CHROMIUM_FLAGS="​--ppapi-flash-path=/​usr/​lib/​PepperFlash/​libpepflashplayer.so --ppapi-flash-version=12.0.0.77"​
 +Running Chromium with root rights
 +The Chromium browser doesn'​t launch as a root. You can change that behavior by editing it's config file /​etc/​chromium-browser/​default. You should modify it, so it has a line:
 +CHROMIUM_FLAGS="​-password-store=detect -user-data-dir"​
 +If you need flash support, the line should look like this:
 +CHROMIUM_FLAGS="​--ppapi-flash-path=/​usr/​lib/​PepperFlash/​libpepflashplayer.so --ppapi-flash-version=12.0.0.77 -password-store=detect -user-data-dir"​
 +
 +
 +    wget http://​odroidxu.leeharris.me.uk/​PepperFlash-12.0.0.77-armv7h.tar.gz
 +    tar -xzf PepperFlash-12.0.0.77-armv7h.tar.gz
 +    cd PepperFlash
 +    chmod +x *
 +    sudo cp * /​usr/​lib/​chromium/​plugins
 +    sudo nano  /​etc/​chromium/​default
 +    ​
 +    Open Chromium
 +enter
 +chrome://​plugins
 +
 +The pepperflash-plugin should be visible. Enable it.
 +Done.
 +
 +http://​www.raspberrypi.org/​forums/​viewtopic.php?​f=66&​t=99202
 +
 +</​code>​
 +
 +<​code>​
 +http://​www.thisismyrobot.com/​2012/​08/​getting-logitech-c270-webcam-working-on.html
 +
 +1. Add UVC support to the image
 +Download and run rpi-update as described here. This will update your image to include the initially-missing UVC support. Reboot as suggested.
 +
 +2. Update your packages
 +sudo apt-get update
 +sudo apt-get upgrade ​
 +
 +3. Install the guvcview webcam viewer
 +sudo apt-get install guvcview
 +
 +4. Set up your permissions and enable the driver
 +sudo usermod -a -G video pi
 +sudo modprobe uvcvideo
 +
 +Reboot the Pi.
 +
 +5. Open up the cam (these are the settings that worked for me)
 +guvcview --size=544x288 --format=yuyv
 +</​code>​
 +
 +<​code>​
 +# apt-get install php5-curl
 +
 +</​code>​
 +
 +<​code>​
 +compile sqlite3 ​
 +sqlite3-build $ ./sqlite3 -version
 +3.8.10.1 2015-05-09 12:14:55 05b4b1f2a937c06c90db70c09890038f6c98ec40
 +
 +sqlite-autoconf-3081001.tar ​
 +
 +apt-get remove sqlite3
 +</​code>​
 +{{::​sqlite-autoconf-3081001.tar.gz|}}
 +
 +[[https://​console.aws.amazon.com/​ec2/​v2/​home?​region=us-east-1#​Instances:​sort=instanceId | EC2 east]]
 +
 +<​code>​
 +apt-get install ntp
 +
 +insserv ntp
 +
 +/​etc/​timezone
 +
 +/​usr/​bin/​tzselect
 +
 +</​code>​
 +
 +<​code>​
 +/​etc/​apache2/​envvars
 +
 +change RUN_USER/​RUN_GROUP
 +
 </​code>​ </​code>​
rpi_kiosk.1427290550.txt.gz · Last modified: 2021/06/04 02:16 (external edit)