New post with some pictures :)

This commit is contained in:
shockrah 2023-10-19 19:25:32 -07:00
parent 422a560f4e
commit f293d8354f
10 changed files with 123 additions and 0 deletions

View File

@ -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" >}}

View File

@ -8,4 +8,16 @@ to what is going on. Other wise "dev" content goes on [shockrah.xyz](https://sho
Use `hugo new content feed/<name>md`
## Shortcodes
> `pic PATH`
Example usage:
```
{{< pic /img/sample.jpg >}}
```

View File

@ -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"

View File

@ -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"

Binary file not shown.

After

Width:  |  Height:  |  Size: 353 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 337 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 435 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 271 KiB

View File

@ -0,0 +1,2 @@
<video controls src="{{ .Get 0}}" alt="{{ .Get 1 }}"></video>

View File

@ -0,0 +1 @@
<img class="card-img" src="{{ .Get 0 }}">