summaryrefslogtreecommitdiff
path: root/internal/media/ffmpeg.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2024-08-23 15:15:35 +0000
committerLibravatar GitHub <noreply@github.com>2024-08-23 17:15:35 +0200
commit8e5a72ac5c37f26b49f5fdd02726ea13e3aac6b0 (patch)
tree041139f1883541411c9bb4b6738dee64b51b197a /internal/media/ffmpeg.go
parent[feature] Use `local_only` field, deprecate `federated` field (#3222) (diff)
downloadgotosocial-8e5a72ac5c37f26b49f5fdd02726ea13e3aac6b0.tar.xz
[performance] ffmpeg ffprobe wrapper improvements (#3225)
* use a single instance of wazero runtime and compiled modules * remove test output :facepalm: * undo process-{media,emoji} changes * update test runner to include wazero compilation cache * sign drone.yml --------- Co-authored-by: tobi <tobi.smethurst@protonmail.com>
Diffstat (limited to 'internal/media/ffmpeg.go')
-rw-r--r--internal/media/ffmpeg.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/media/ffmpeg.go b/internal/media/ffmpeg.go
index f88908196..0443f95b8 100644
--- a/internal/media/ffmpeg.go
+++ b/internal/media/ffmpeg.go
@@ -27,7 +27,6 @@ import (
"codeberg.org/gruf/go-byteutil"
- "codeberg.org/gruf/go-ffmpreg/wasm"
_ffmpeg "github.com/superseriousbusiness/gotosocial/internal/media/ffmpeg"
"github.com/superseriousbusiness/gotosocial/internal/gtserror"
@@ -161,7 +160,7 @@ func ffmpegGenerateStatic(ctx context.Context, filepath string) (string, error)
// ffmpeg calls `ffmpeg [args...]` (WASM) with directory path mounted in runtime.
func ffmpeg(ctx context.Context, dirpath string, args ...string) error {
var stderr byteutil.Buffer
- rc, err := _ffmpeg.Ffmpeg(ctx, wasm.Args{
+ rc, err := _ffmpeg.Ffmpeg(ctx, _ffmpeg.Args{
Stderr: &stderr,
Args: args,
Config: func(modcfg wazero.ModuleConfig) wazero.ModuleConfig {
@@ -188,7 +187,7 @@ func ffprobe(ctx context.Context, filepath string) (*result, error) {
dirpath := path.Dir(filepath)
// Run ffprobe on our given file at path.
- _, err := _ffmpeg.Ffprobe(ctx, wasm.Args{
+ _, err := _ffmpeg.Ffprobe(ctx, _ffmpeg.Args{
Stdout: &stdout,
Args: []string{