[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>
This commit is contained in:
kim 2025-08-16 15:16:00 +02:00 committed by kim
parent a6bb45e5e4
commit 3fad524089

View file

@ -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",