Bug 47345

Summary: Утилита fs_encode не конвертирует wav -> wav, хотя {wav,gsm} -> gsm и gsm -> wav работают
Product: Sisyphus Reporter: Artem Varaksa <varaksaaa>
Component: freeswitch-daemonAssignee: Anton Farygin <rider>
Status: NEW --- QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: at, cas, crux, ender, lav, ldv, mike, qa_viy, rider, shaba, viy
Version: unstable   
Hardware: x86_64   
OS: Linux   

Description Artem Varaksa 2023-08-25 13:33:25 MSK
Описание ошибки
===============

1. Необходим тестовый файл с расширением wav, например: # wget https://example-files.online-convert.com/audio/wav/example.wav -O file.wav
2. Создать файл с расширением gsm: # ffmpeg -i file.wav -ar 8000 file.gsm
3. # fs_encode file.gsm output.gsm
4. # fs_encode file.gsm output.wav
5. # fs_encode file.wav output.gsm
6. # fs_encode file.wav output.wav
(запускаются от имени root из-за https://bugzilla.altlinux.org/47334)

Фактический результат: 3-5: успешно. 6: ошибка:

> Couldn't initialize codec for wav@8000h@20i

Ожидаемый результат: 3-6 успешно.

Воспроизводимость
=================

[p10] server-10.1-x86-64
freeswitch-daemon-1.10.9-alt1.x86_64

[sisyphus] server-10.1-x86-64
freeswitch-daemon-1.10.10-alt1.x86_64
Comment 1 Artem Varaksa 2023-08-25 13:35:17 MSK
Для полноты, версии ffmpeg:

[p10] server-10.1-x86-64
ffmpeg-4.4.4-alt1.x86_64

[sisyphus] server-10.1-x86-64
ffmpeg-4.4.4-alt1.x86_64