-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Amazon S3 support for file uploading in ftp-settings-sh.repo, s…
…aveImageDay.sh, SaveImageNight.sh, endOfNight.sh, timelapse.sh, postData.sh, uploadForDay.sh, README.md. Added asynchronous subshell to all lftp / s3 upload operations as was inconsistently used in some places but not others.
- Loading branch information
1 parent
1b64c0b
commit 156b252
Showing
8 changed files
with
78 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,13 +39,17 @@ ffmpeg -y -f image2 \ | |
-i images/$1/sequence/%04d.$EXTENSION \ | ||
-vcodec libx264 \ | ||
-b:v 2000k \ | ||
-pix_fmt yuv420p \ | ||
-pix_fmt yuv420p \./i | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
IanLauwerys
Author
Contributor
|
||
-movflags +faststart \ | ||
$SCALE \ | ||
images/$1/allsky-$1.mp4 | ||
|
||
if [ "$UPLOAD_VIDEO" = true ] ; then | ||
lftp "$PROTOCOL"://"$USER":"$PASSWORD"@"$HOST":"$MP4DIR" -e "set net:max-retries 1; put images/$1/allsky-$1.mp4; bye" | ||
if [[ "$PROTOCOL" == "S3" ]] ; then | ||
$AWS_CLI_DIR/aws s3 cp images/$1/allsky-$1.mp4 s3://$S3_BUCKET$MP4DIR --acl $S3_ACL & | ||
else | ||
lftp "$PROTOCOL"://"$USER":"$PASSWORD"@"$HOST":"$MP4DIR" -e "set net:max-retries 1; put images/$1/allsky-$1.mp4; bye" & | ||
fi | ||
fi | ||
|
||
echo -en "* ${GREEN}Deleting sequence${NC}\n" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hi @IanLauwerys, Do you see a use for the
./i
at the end of this line? Or is this a typo?