diff --git a/main-site/content/feed/pov-bodyboard-shots.md b/main-site/content/feed/pov-bodyboard-shots.md new file mode 100644 index 0000000..8ef7b99 --- /dev/null +++ b/main-site/content/feed/pov-bodyboard-shots.md @@ -0,0 +1,29 @@ +--- +title: 'Pov Bodyboard Shots' +description: Snagged some nice POV shots while bodyboarding the other day :3 +date: 2023-10-19T16:49:51-07:00 +thumbnail: /img/horseshoe-drop.jpg +article: true +--- + +Decided to take out my camera for a quick bodyboarding session again and managed +to snap a couple of neato shots :water_wave: + +For some reason I don't take the camera out often enough :shrug: Guess I'm not +used to it anymore but I really should considering how cool some of the angles I +get to see are when you're up close and personal with them :smile: + +Anyway here's a couple of pics and clips :camera: + +A nice little barrel that I got at the start of my session. Managed to escape +getting caught inside after this one. +{{< pic "/img/horseshoe-blurry-barrel.jpg" >}} + + +Coming up from a duckdive at golden hour :sun: + +{{< pic "/img/horseshoe-coming-up.jpg" >}} + +Back of the white water is so chunky sometimes + +{{< pic "/img/horseshoe-turbulent.jpg" >}} \ No newline at end of file diff --git a/main-site/readme.md b/main-site/readme.md index 3bdbd65..7e210ec 100644 --- a/main-site/readme.md +++ b/main-site/readme.md @@ -8,4 +8,16 @@ to what is going on. Other wise "dev" content goes on [shockrah.xyz](https://sho Use `hugo new content feed/md` +## Shortcodes + +> `pic PATH` + +Example usage: + +``` +{{< pic /img/sample.jpg >}} +``` + + + diff --git a/main-site/scripts/slow-mo-video.sh b/main-site/scripts/slow-mo-video.sh new file mode 100644 index 0000000..be781f9 --- /dev/null +++ b/main-site/scripts/slow-mo-video.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +set -e + +if [ -z "$3" ]; then + cat <<- EOF + Usage: slow-mo.sh /input.mp4 /outputm.mp4 RATE + Alternative flags( environment variables ): + REMOVE_AUDIO + When this is set the audio output is disabled + SLOW_RATE + 2.0 => Half speed + 3.0 => 3x slower + Formula is 1 / RATE => OutputRate + EOF + exit 0 +fi + +# If this gets set then we do not create the first clip with audio +# Default to having no audio +if [ ! -z "$REMOVE_AUDIO" ]; then + echo "Audio: DISABLED" + FFMPEG_COPY="-c copy -an" +else + echo "Audio: ENABLED" + FFMPEG_COPY="-c:v copy" +fi + +# Aliasing input variables +input="$1" +output="$2" + +SLOW_RATE=2.0 +LOG="-loglevel error" + +ffmpeg $LOG -y -i "$input" -vf "setpts=$SLOW_RATE*PTS" "$output" + diff --git a/main-site/scripts/trim-video.sh b/main-site/scripts/trim-video.sh new file mode 100644 index 0000000..fa88998 --- /dev/null +++ b/main-site/scripts/trim-video.sh @@ -0,0 +1,42 @@ +#!/bin/bash + +set -e + +if [ -z "$3" ]; then + cat <<- EOF + Usage: trim.sh /path/to/file.mp4 HH:MM:SS[.ms] HH:MM:SS[.ms] [/path/to/output.mp4] + NOTE: + .ms (miliseconds) are optional and default .000 + Alternate flags ( environment variables ): + REMOVE_AUDIO + When this is set audio output is disabled + EOF + exit 0 +fi + +input="$1" +start="$2" +end="$3" + +# Figure out the output file name +out="$(dirname $input)/$(basename -s .mp4 $input).slow.mp4" +if [ ! -z "$4" ]; then + out="$4" +fi + +# Figure out the copy options for audio +if [ ! -z "$REMOVE_AUDIO" ]; then + echo "Audio: DISABLED" + COPY_OPT="-c copy -an" +else + echo "Audio: ENABLED" + COPY_OPT="-c:v copy" +fi + +LOG="-loglevel error" + +echo Trimming video +ffmpeg $LOG -y -i "$input" -ss "$start" -to "$end" $COPY_OPT "$out" + +echo File here $(pwd) +ls -la "$out" \ No newline at end of file diff --git a/main-site/static/img/horseshoe-blurry-barrel.jpg b/main-site/static/img/horseshoe-blurry-barrel.jpg new file mode 100644 index 0000000..358420d Binary files /dev/null and b/main-site/static/img/horseshoe-blurry-barrel.jpg differ diff --git a/main-site/static/img/horseshoe-coming-up.jpg b/main-site/static/img/horseshoe-coming-up.jpg new file mode 100755 index 0000000..b454333 Binary files /dev/null and b/main-site/static/img/horseshoe-coming-up.jpg differ diff --git a/main-site/static/img/horseshoe-drop.jpg b/main-site/static/img/horseshoe-drop.jpg new file mode 100644 index 0000000..cf95bdb Binary files /dev/null and b/main-site/static/img/horseshoe-drop.jpg differ diff --git a/main-site/static/img/horseshoe-turbulent.jpg b/main-site/static/img/horseshoe-turbulent.jpg new file mode 100755 index 0000000..d427e05 Binary files /dev/null and b/main-site/static/img/horseshoe-turbulent.jpg differ diff --git a/main-site/themes/temper/layouts/shortcodes/clip.html b/main-site/themes/temper/layouts/shortcodes/clip.html new file mode 100644 index 0000000..114b722 --- /dev/null +++ b/main-site/themes/temper/layouts/shortcodes/clip.html @@ -0,0 +1,2 @@ + + diff --git a/main-site/themes/temper/layouts/shortcodes/pic.html b/main-site/themes/temper/layouts/shortcodes/pic.html new file mode 100644 index 0000000..b2ad5b1 --- /dev/null +++ b/main-site/themes/temper/layouts/shortcodes/pic.html @@ -0,0 +1 @@ +