Skip to content

Commit 401adaf

Browse files
committed
msgconv: remove video stream when converting voice messages
1 parent d55190b commit 401adaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/connector/msgconv.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ func (tc *TwitterClient) twitterAttachmentToMatrix(ctx context.Context, portal *
192192
return nil, err
193193
}
194194
if audioOnly && ffmpeg.Supported() {
195-
outFile, err := ffmpeg.ConvertPath(ctx, file.(*os.File).Name(), ".ogg", []string{}, []string{"-c:a", "libopus"}, false)
195+
outFile, err := ffmpeg.ConvertPath(ctx, file.(*os.File).Name(), ".ogg", []string{}, []string{"-vn", "-c:a", "libopus"}, false)
196196
if err == nil {
197197
mimeType = "audio/ogg"
198198
content.Info.MimeType = mimeType

0 commit comments

Comments
 (0)