Skip to content

nikstar/blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blog

Source code for nikstar.me.

Develop

hugo server -D & ; sleep 0.5 && open http://localhost:1313/ ; fg

Encoding video to VP9 and H.264:

ffmpeg -i video.mp4 -vf scale=-1:1200 -c:v libvpx-vp9 -b:v 0 -crf 31 -pass 1 -an -f null /dev/null && \
ffmpeg -i video.mp4 -vf scale=-1:1200 -c:v libvpx-vp9 -b:v 0 -crf 31 -pass 2 -an video.webm

ffmpeg -i video-orig.mp4 -vf scale=-2:1200 -c:v libx264 -crf 21 -preset veryslow -an video.mp4

Generate

hugo

Publish

rm -rf public && hugo && rsync -aO public/ nikstar.me:/var/www/blog