Skip to content

Commit

Permalink
Add Raspberry PI auto white balancing setting for better NOIR camera …
Browse files Browse the repository at this point in the history
…support. Both for stills and live. #360
  • Loading branch information
theyosh committed Mar 6, 2020
1 parent 7e59bbe commit 345a5fb
Show file tree
Hide file tree
Showing 8 changed files with 457 additions and 287 deletions.
12 changes: 9 additions & 3 deletions live_rpicam.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ NAME=$1
WIDTH=$2
HEIGHT=$3
ROTATION=$4
DIR=$5
AWB=$5
DIR=$6

# Test defaults
if [[ "${NAME}" == "" ]];
then
NAME="Test"
NAME="RPI Live"
fi

if [[ "${WIDTH}" == "" ]];
Expand All @@ -27,6 +28,11 @@ then
ROTATION="0"
fi

if [[ "${AWB}" == "" ]];
then
AWB="auto"
fi

if [[ "${DIR}" == "" ]];
then
DIR="/dev/shm/test"
Expand All @@ -48,5 +54,5 @@ else
ROTATION="-rot ${ROTATION}"
fi

`which raspivid` -o - -b 2000000 -t 0 -w ${WIDTH} -h ${HEIGHT} ${ROTATION} --drc low -fps 30 -g 30 -pf main -lev 4.1 -ae 16,0xff,0x808000 -a 8 -a " ${NAME} @ %d/%m/%Y %X " -a 1024 | \
`which raspivid` -o - -b 2000000 -t 0 -w ${WIDTH} -h ${HEIGHT} ${ROTATION} -awb ${AWB} --drc low -fps 30 -g 30 -pf main -lev 4.1 -ae 16,0xff,0x808000 -a 8 -a " ${NAME} @ %d/%m/%Y %X " -a 1024 | \
`which ffmpeg` -hide_banner -nostdin -re -i - -c:v copy -f hls -hls_time 2 -hls_list_size 3 -hls_flags delete_segments+split_by_time -hls_segment_filename "${DIR}/chunk_%03d.ts" "${DIR}/stream.m3u8"
Binary file modified locales/en_US/LC_MESSAGES/terrariumpi.mo
Binary file not shown.
317 changes: 185 additions & 132 deletions locales/en_US/LC_MESSAGES/terrariumpi.po

Large diffs are not rendered by default.

Loading

0 comments on commit 345a5fb

Please sign in to comment.