Original by Simon Perry: https://gist.github.com/pezz/5310082
Install Arch Linux to your PI3:
https://archlinuxarm.org/platforms/armv8/broadcom/raspberry-pi-3
Backup /boot/boot.*
| #! /usr/bin/env bash | |
| # all files "*[0-9].mp4" to menu e.g: | |
| # good : gear-v1.mp4 | |
| # bad : gear-v1m.mp4 | |
| # menuentries: "${FN} +" | |
| MENU="`ls -Rt1 *[0-9].mp4 | sed '-e s/^\(.*\)$/\1 +/'`" | |
| FN=`dialog --menu "Multiply video" 0 0 13 ${MENU} 3>&1 1>&2 2>&3 3>&-` | |
| if [ $? -eq 0 ] |
Original by Simon Perry: https://gist.github.com/pezz/5310082
Install Arch Linux to your PI3:
https://archlinuxarm.org/platforms/armv8/broadcom/raspberry-pi-3
Backup /boot/boot.*
| #! /usr/bin/env bash | |
| for F in `ls -1 *.MTS` | |
| do | |
| echo Recoding $F | |
| FILE=${F%%.*} | |
| ffmpeg -y -i ${FILE}.MTS -vn -acodec pcm_s16le -ac 2 a${FILE}.wav | |
| YUV="yuv420p" | |
| ffmpeg -y -r 24 -i ${FILE}.MTS -an -pix_fmt ${YUV} -r 24 -f rawvideo v${FILE}.yuv |
| #! /usr/bin/env bash | |
| VOL=${0##*_} | |
| DIR=${0%%_*} | |
| SRC="/Volumes/${VOL%.*}/${DIR##*/}" | |
| if [ -d "${SRC}" ] | |
| then | |
| rsync -ah -x --delete --stats --progress --exclude='.DS_Store' "${SRC}" "${0%/*}" | |
| else |