Migrate to blowfish

This commit is contained in:
2024-05-29 01:42:22 +02:00
parent 3bc65cfb5d
commit 16bd960b2e
10 changed files with 40 additions and 20 deletions

View File

@@ -3,6 +3,8 @@ languageCode = 'en'
paginate = 50 paginate = 50
enableRobotsTXT = true enableRobotsTXT = true
googleAnalytics = "G-KK12E7TNEC" googleAnalytics = "G-KK12E7TNEC"
enableEmoji = false
titleCaseStyle = 'none'
[outputs] [outputs]
home = ["HTML", "RSS", "JSON"] home = ["HTML", "RSS", "JSON"]

View File

@@ -1,6 +1,9 @@
title = "Zoe's blog" title = "Zoe's blog"
[params.author] [params]
# logo = "img/author.png"
[author]
name = "Zoe Roux" name = "Zoe Roux"
image = "img/author.png" image = "img/author.png"
headline = "I'm not a dev, I'm a sorceress." headline = "I'm not a dev, I'm a sorceress."
@@ -9,4 +12,5 @@ links = [
{ github = "https://github.com/zoriya" }, { github = "https://github.com/zoriya" },
{ linkedin = "https://www.linkedin.com/in/zoe-roux/" }, { linkedin = "https://www.linkedin.com/in/zoe-roux/" },
{ twitter = "https://twitter.com/zoriya_dev" }, { twitter = "https://twitter.com/zoriya_dev" },
{ rss = "https://zoriya.dev/index.xml" },
] ]

View File

@@ -4,20 +4,21 @@
weight = 10 weight = 10
[[main]] [[main]]
name = "GitHub" name = "Tags"
url = "https://github.com/zoriya" pageRef = "tags"
weight = 30 weight = 10
[main.params]
icon = "github"
showName = false
target = "_blank"
[[main]] [[main]]
identifier = "search" identifier = "github"
weight = 99 pre = "github"
[main.params] url = "https://github.com/zoriya"
action = "search" weight = 30
icon = "search"
[[footer]]
name = "Blogs"
pageRef = "blogs"
weight = 20
[[footer]] [[footer]]
name = "Tags" name = "Tags"

View File

@@ -1,2 +1,2 @@
[[imports]] [[imports]]
path = "github.com/jpanther/congo/v2" path = "github.com/nunocoracao/blowfish/v2"

View File

@@ -1,13 +1,21 @@
colorScheme = "sapphire" # colorScheme = "princess"
# enableSearch = true autoSwitchAppearance = true
enableSearch = true
enableCodeCopy = true enableCodeCopy = true
smartTOC = true
robots = "all" robots = "all"
footer.showAppearanceSwitcher = true
homepage.layout = "profile" homepage.layout = "profile"
homepage.showRecent = true homepage.showRecent = true
footer.showAppearanceSwitcher = true
article.showTableOfContents = true article.showTableOfContents = true
article.showEdit = true article.showEdit = true
article.editURL = "https://github.com/zoriya/blog/tree/master/content/" article.editURL = "https://github.com/zoriya/blog/tree/master/content/"
article.showWordCount = false
article.showAuthorBottom = true
article.showTaxonomies = true
article.showRelatedContent = true
article.relatedContentLimit = 3
list.showSummary = false list.showSummary = false

View File

@@ -1,5 +1,5 @@
--- ---
--- ---
I work on [Kyoo](https://github.com/zoriya/kyoo) or other nerdy projects at night. I love weird tools ([keyboard](https://github.com/zoriya/abyss) that I designed myself, [vim](./blogs/vim-superpowers/), tiling window manager like [dwl](https://codeberg.org/dwl/dwl) or [gaze](https://github.com/zoriya/gaze)). Feel free to reach out if you want to talk! I work on [Kyoo](https://github.com/zoriya/kyoo) or other nerdy projects at night. I love weird tools (a [keyboard](https://github.com/zoriya/abyss) that I designed myself, [vim](./blogs/vim-superpowers/), tiling window manager like [dwl](https://codeberg.org/dwl/dwl) or [gaze](https://github.com/zoriya/gaze)). Feel free to reach out if you want to talk!
<!-- vim: set wrap : --> <!-- vim: set wrap : -->

View File

@@ -251,7 +251,7 @@ For example, hardware acceleration, aka using your graphics card for faster tran
I iterated a lot on this transcoder, my first implementation was written in C and used ffmpeg's library directly (this was also my first C and low level project, I had never heard of a pointer before). Everybody told me this was a bad idea and I should just create a node process that would call ffmpeg. While this was the right call if I wanted to quickly create a transcoder, learning to read the ffmpeg's source code and how it worked inside gave me lots of insights. Insights I still use today when working in today's transcoder, after rewriting everything in Rust and then in Go. Each rewrite originated from perspective shift on how to process state and streams, leading to the current implementation that finally archived every goal. I iterated a lot on this transcoder, my first implementation was written in C and used ffmpeg's library directly (this was also my first C and low level project, I had never heard of a pointer before). Everybody told me this was a bad idea and I should just create a node process that would call ffmpeg. While this was the right call if I wanted to quickly create a transcoder, learning to read the ffmpeg's source code and how it worked inside gave me lots of insights. Insights I still use today when working in today's transcoder, after rewriting everything in Rust and then in Go. Each rewrite originated from perspective shift on how to process state and streams, leading to the current implementation that finally archived every goal.
Kyoo's transcoder also has other features that resolve around video like extracting subtitles, fonts or media thumbnails for seeking (see picture below). Kyoo's transcoder also has other features that resolve around video like extracting subtitles, fonts or media thumbnails for seeking (see picture below).
![thumbnail for seeking](./kyoo-thumbnail-seek.png) ![thumbnail for seeking](./kyoo-seek.png)
It's still a moving project with new features coming, but the core transcoding process is done and fully working! The next feature that will probably come is intro/outro detection using audio fingerprints. It's still a moving project with new features coming, but the core transcoding process is done and fully working! The next feature that will probably come is intro/outro detection using audio fingerprints.

View File

Before

Width:  |  Height:  |  Size: 108 KiB

After

Width:  |  Height:  |  Size: 108 KiB

5
go.mod
View File

@@ -2,4 +2,7 @@ module github.com/zoriya/blog
go 1.21.7 go 1.21.7
require github.com/jpanther/congo/v2 v2.8.2 // indirect require (
github.com/jpanther/congo/v2 v2.8.2 // indirect
github.com/nunocoracao/blowfish/v2 v2.68.0 // indirect
)

2
go.sum
View File

@@ -1,2 +1,4 @@
github.com/jpanther/congo/v2 v2.8.2 h1:UNg7225ZqLSt9zu0xBOh5iM9TXnuNG1Ta9eSsioHTEE= github.com/jpanther/congo/v2 v2.8.2 h1:UNg7225ZqLSt9zu0xBOh5iM9TXnuNG1Ta9eSsioHTEE=
github.com/jpanther/congo/v2 v2.8.2/go.mod h1:1S7DRoO1ZYS4YUdFd1LjTkdyjQwsjFWd8TqSfz3Jd+M= github.com/jpanther/congo/v2 v2.8.2/go.mod h1:1S7DRoO1ZYS4YUdFd1LjTkdyjQwsjFWd8TqSfz3Jd+M=
github.com/nunocoracao/blowfish/v2 v2.68.0 h1:t6UNVY+EQgA5K3gLqnR/VLIxmjnbD7VpMyjW36T/C1c=
github.com/nunocoracao/blowfish/v2 v2.68.0/go.mod h1:4SkMc+Ht8gpQCwArqiHMBDP3soxi2OWuAhVney+cuyk=