简体   繁体   English

ffmpeg 当我想在 RTP 中发送时不支持的编解码器 adpcm_ima_wav

[英]ffmpeg Unsupported codec adpcm_ima_wav when i want sending in RTP

when i want encode a wav file and send it with rtp in ffmpeg i receive an error that say "Unsupported codec adpcm_ima_wav" but i can encode this file with adpcm_ima_wav and save this file but i can not send with rtp in ffmpeg.当我想对一个 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"

below show this error:下面显示此错误:

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!

ffmpeg Support decode and encode adpcm_ima_wav but When you want to convert any codec to adpcm_ima_wav,chunk is important for you so you need to pay attentions to calculation of chunk. ffmpeg 支持解码和编码 adpcm_ima_wav 但是当你想将任何编解码器转换为 adpcm_ima_wav 时,chunk 对你很重要,所以你需要注意 chunk 的计算。 I understood that i forgot calculation chunk of That voice i want to convert.我知道我忘记了要转换的那个声音的计算块。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM