当我想对 wav 文件进行编码并在 ffmpeg 中使用 rtp 发送时,我收到一条错误消息,提示“不支持的编解码器 adpcm_ima_wav”,但我可以使用 adpcm_ima_wav 对该文件进行编码并保存该文件,但我无法在 ffmpeg 中使用 rtp 发送。
ffmpeg -hide_banner -y -re -thread_queue_size 4 -i audio -acodec adpcm_ima_wav -sdp_file test.sdp -f rtp "rtp://127.0.0.1:2222"
下面显示此错误:
Input #0, wav, from 'audio':
Metadata:
encoded_by : Pro Tools
originator_reference: !jtMVHCThOfaaaGk
date : 2010-09-14
creation_time : 08:04:58
time_reference : 0
Duration: 00:00:30.03, bitrate: 2304 kb/s
Stream #0:0: Audio: pcm_s24le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s32 (24 bit), 2304 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (pcm_s24le (native) -> adpcm_ima_wav (native))
Press [q] to stop, [?] for help
[rtp @ 0x55867efcd380] Unsupported codec adpcm_ima_wav
Could not write header for output file #0 (incorrect codec parameters ?): Operation not permitted
Error initializing output stream 0:0 --
Conversion failed!