static-go

command
v1.0.32 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2020 License: MIT Imports: 10 Imported by: 0

README

Zone plate generation - Go

Generate images and .mp4 with go.

Operating

make mp4
make gif
FFMpeg in docker
# ffmpeg -loop 1 -i images/zone-%03d.png -preset slow -crf 22 -t 10 zone.mp4
ffmpeg -i images/zone-%03d.png -preset slow -crf 0 zone.mp4

docker run -v $(pwd)/images:/images jrottenberg/ffmpeg \
  -i /images/zone-%03d.png \
  -preset slow -crf 0 -stats \
  /images/zone.mp4

Gif

docker run -v $(pwd)/images:/images --rm -it v4tech/imagemagick convert  -delay 1 /images/zone-*png -loop 0 /images/zone.gif

docker run -v $(pwd)/images:/images --rm -it v4tech/imagemagick identify /images/zone.gif
open zone-*png

ffmpeg on OSX (with all options) to get drawtext!

See this gist for homebrew magic to install ffmpeg with all options

brew install ffmpeg $(brew options ffmpeg | grep -vE '\s' | grep -- '--with-' | tr '\n' ' ')
ffmpeg with drawtext

This works on MacOS

ffmpeg -i data/video.mp4 -vf drawtext="fontfile=./assets/NotoSans-Bold.ttf: text='Stack Overflow': fontcolor=white: fontsize=24: box=1: boxcolor=black@0.5: boxborderw=5: x=(w-text_w)/2: y=(h-text_h)/2" -codec:a copy output.mp4

## References
- CRC Code: `/archive/personal/CRC/CRC-daniel-2001-12-06.tar`
  - `Code/zone/zone.cc` and `makefile`
- [FFmpeg quality](https://trac.ffmpeg.org/wiki/Encode/H.264)

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL