Skip to main content
ALT Linux Bugzilla
– Attachment 23014 Details for
Bug 61670
Не записываются видеофайлы в формате WebM при использовании аудиокодировщика Opus
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
FreeSWITCH: записывать Opus с частотой 48 кГц
freeswitch-61670.patch (text/plain), 1.06 KB, created by
Anton Farygin
on 2026-11-25 21:36:52 MSK
(
hide
)
Description:
FreeSWITCH: записывать Opus с частотой 48 кГц
Filename:
MIME Type:
Creator:
Anton Farygin
Created:
2026-11-25 21:36:52 MSK
Size:
1.06 KB
patch
obsolete
>From 573441b5f11ff8e71b069275d4d0a8b74f95960c Mon Sep 17 00:00:00 2001 >From: Anton Farygin <rider@altlinux.org> >Date: Wed, 25 Nov 2026 23:20:30 +0500 >Subject: [PATCH] fix(mod_av): record Opus audio at 48 kHz > >--- > src/mod/applications/mod_av/avformat.c | 9 +++++++++ > 1 file changed, 9 insertions(+) > >diff --git a/src/mod/applications/mod_av/avformat.c b/src/mod/applications/mod_av/avformat.c >index b3abcadc4a..f34dd52e5a 100644 >--- a/src/mod/applications/mod_av/avformat.c >+++ b/src/mod/applications/mod_av/avformat.c >@@ -2437,6 +2437,15 @@ static switch_status_t av_file_open(switch_file_handle_t *handle, const char *pa > #endif > const char *issplit = 0; > >+#if (LIBAVFORMAT_VERSION_MAJOR < LIBAVFORMAT_V) >+ if (fmt->audio_codec == AV_CODEC_ID_OPUS) { >+#else >+ if (audio_codec == AV_CODEC_ID_OPUS) { >+#endif >+ /* Both FFmpeg Opus encoders accept 48 kHz; the native one requires it. */ >+ handle->samplerate = handle->mm.samplerate = 48000; >+ } >+ > context->audio_st[0].channels = handle->channels; > context->audio_st[1].sample_rate = handle->samplerate; > >-- >2.50.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 61670
:
23007
|
23008
| 23014