diff options
| author | 2025-08-16 15:16:00 +0200 | |
|---|---|---|
| committer | 2025-08-16 15:16:00 +0200 | |
| commit | 3fad524089c2d22cfc289814ddbe4abd9ee7a76a (patch) | |
| tree | b19be722409332bc19e68a8ee6fc0b9c65a8605c /internal | |
| parent | [bugfix] media CLI list missing thumbs and statics (#4379) (diff) | |
| download | gotosocial-3fad524089c2d22cfc289814ddbe4abd9ee7a76a.tar.xz | |
[bugfix] when clearing media metadata, copy all streams not just first (#4375)
Updates our ffmpeg metadata clearing arguments to copy all streams when copying codecs, not just the first of each.
closes https://codeberg.org/superseriousbusiness/gotosocial/issues/4312
Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4375
Co-authored-by: kim <grufwub@gmail.com>
Co-committed-by: kim <grufwub@gmail.com>
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/media/ffmpeg.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/media/ffmpeg.go b/internal/media/ffmpeg.go index 05e8c69a6..d98e93baf 100644 --- a/internal/media/ffmpeg.go +++ b/internal/media/ffmpeg.go @@ -55,6 +55,12 @@ func ffmpegClearMetadata(ctx context.Context, outpath, inpath string) error { // i.e. no transcode. "-codec", "copy", + // Ensure we include + // ALL audio / video + // / subtitle streams, + // not just the first. + "-map", "0", + // Overwrite. "-y", |
