commit e9378780f5431196267f257750701ee8bb5b3c64
parent 0eca4884e3df8e19f41ba32ae60b8455afe20a0c
Author: Robin Bäckman <robinbackman@gmail.com>
Date: Fri, 29 Jul 2016 23:19:24 +0300
make thumbnail folder for new film
Diffstat:
2 files changed, 47 insertions(+), 2 deletions(-)
diff --git a/INSTALL b/INSTALL
@@ -0,0 +1,46 @@
+Installing Tarina on Raspbian Jessie
+
+1.Installing Adafruit pitft35
+curl -SLs https://apt.adafruit.com/add-pin | sudo bash
+sudo apt-get install raspberrypi-bootloader
+sudo apt-get install adafruit-pitft-helper
+sudo adafruit-pitft-helper -t 35r
+
+2.change line in /boot/config.txt
+dtoverlay=pitft35r,rotate=90,speed=42000000,fps=20
+to
+dtoverlay=pitft35r,rotate=90,speed=62000000,fps=50
+
+
+Configure Raspberry pi
+
+1. raspi-config
+enable camera, extend filesystem and reboot
+
+2. sudo apt-get update
+3. sudo apt-get upgrade
+
+4. sudo apt-get install git python-picamera python-imaging python-pexpect libav-tools gpac omxplayer sox cpufrequtils
+
+5. git clone https://rbckman@bitbucket.org/rbckman/tarina.git
+
+6. put this line in the end of /etc/fstab
+tmpfs /mnt/tmp tmpfs defaults 0 0
+
+7. change cpu to performance. open /etc/default/cpufrequtils and paste in this:
+GOVERNOR="performance"
+
+
+if USB soundcard
+
+1. place this in /etc/asound.conf
+
+pcm.!default {
+ type hw
+ card 1
+}
+
+ctl.!default {
+ type hw
+ card 1
+}
diff --git a/tarina.py b/tarina.py
@@ -789,11 +789,9 @@ def playthis(filename, camera):
if rightbutton == False:
if selected < (len(settings) - 1):
selected = selected + 1
- time.sleep(0.1)
if leftbutton == False:
if selected > 0:
selected = selected - 1
- time.sleep(0.1)
if middlebutton == False:
time.sleep(0.2)
if selected == 0:
@@ -1166,6 +1164,7 @@ def main():
selectedaction = 0
filmname = nameyourfilm()
os.system('mkdir -p ' + filmfolder + filmname + '/' + 'scene' + str(scene).zfill(3) + '/shot' + str(shot).zfill(3))
+ os.system('mkdir ' + filmfolder + filmname + '/.thumbnails')
writemessage('Good luck with your film ' + filmname + '!')
time.sleep(2)
savesetting(camera.brightness, camera.contrast, camera.saturation, camera.shutter_speed, camera.iso, camera.awb_mode, camera.awb_gains, awb_lock, miclevel, headphoneslevel, filmfolder, filmname, scene, shot, take, thefile, beeps, flip, renderedshots)