<div dir="ltr"><span style="font-size:12.8000001907349px">I am compressing movies from bitmaps and audio files. With AAC files it is working correctly. But when I have AMR_WB files sound is corrupted. I can recognise correct words in video file but it is delayed and with very bad quality.</span><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">My AMR files are recorded with parameters:</span><div><div><span style="font-size:12.8000001907349px">- sampling rate: 16000,</span></div><div><span style="font-size:12.8000001907349px">- bitrate: 23000.</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">I am setting this parameters in audio stream which is added to video. Sample format is set to </span>AV_SAMPLE_FMT_FLT. When using other formats app crashes with "Unsupported sample format". </div><div><br></div><div>What needs to be done to correctly add AMR stream to video file? Do I have to reencode it to AAC and add as AAC audio stream?? Thank you for all hints.</div></div></div></div>