Questions tagged [libswresample]

6 questions
2
votes
1 answer

Proper use of swr_convert_frame() for audio resampling with ffmpeg

Are there any examples for using swr_convert_frame() to resample audio instead of swr_convert()? My code currently looks like (using cgo): if averr := C.swr_convert_frame(swrctx, outframe, inframe); averr < 0 { return…
kevmo314
  • 4,223
  • 4
  • 32
  • 43
1
vote
0 answers

Resampling audio using libswresample, leaves small amount of noise after resampling

I'm trying to resample audio from 44Khz to 48Khz and I'm getting s small light noise after resampling. As if someone is gently ticking the mic. This happens both ways. From 48Khz to 44Khz and vice versa. I've read that this can happen because…
Milo
  • 51
  • 5
1
vote
1 answer

How to convert same audio twice using libswresamples's swr_convert

I'm working on an audio processing system that sometimes requires that the same audio be resampled twice. The first resampling of the audio from FFmpeg works fine, the second results in distorted audio. I've reproduced this problem by modifying the…
1
vote
1 answer

FFmpeg - resampled audio with much noise

I'm not familiar with auido resampling. I tried to resample auido streams from two videos. The first one's output was close to the original but with noise, the other one was almost full of noise. Information for the first one 128 kb/s, 48.0kHz, 2…
SpellTheif
  • 715
  • 2
  • 12
  • 26
0
votes
1 answer

ffmpeg: libavformat/libswresample to transcode and resample at same time

I want to transcode and down/re-sample the audio for output using ffmpeg's libav*/libswresample - I am using ffmpeg's (4.x) transcode_aac.c and resample_audio.c as reference - but the code produces audio with glitches that is clearly not what ffmpeg…
whatdoido
  • 1
  • 1
0
votes
1 answer

PortAudio To FFmpeg Resampling Resulting in Segmentation Fault

I am getting audio from a microphone with PortAudio (PA). I need to then resample this audio to 44,100KHz. I'm attempting to do this with FFmpeg. Currently, the mic I'm testing with has a sample rate of 48,000KHz, but this won't always be the case…