commit 101635fdbd475aa34d5febf6a28d654357d7c62b Author: Roger Sikorski Date: Thu Jul 21 14:32:56 2022 +0200 first commit diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..5d47c21 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,12 @@ +# EditorConfig is awesome: https://EditorConfig.org + +# top-most EditorConfig file +root = true + +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..36be7a5 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.formatOnSave": true, + "editor.formatOnPaste": false +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..2d8908e --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# README.md + +Preperation script for gopro media files \ No newline at end of file diff --git a/gopro-preh.sh b/gopro-preh.sh new file mode 100755 index 0000000..67097f4 --- /dev/null +++ b/gopro-preh.sh @@ -0,0 +1,20 @@ +#!/bin/bash +mkdir -p pics +mkdir -p lrv +mkdir -p videos + +rm -f ./*.THM + +mv ./*.JPG pics/ 2>/dev/null +mv ./*.LRV lrv/ 2>/dev/null +mv ./*.MP4 videos/ 2>/dev/null + +echo "Rename all *.LRV to *.mp4" +cd lrv/ || exit +for f in *.LRV; do + mv -- "$f" "${f%.LRV}.mp4" 2>/dev/null +done + +echo "" +echo "Script done" +echo ""