#3525: AAC to PCM produced a lot of noise!
-------------------------------------+-------------------------------------
Reporter: kaienfr | Owner:
Type: defect | Status: reopened
Priority: normal | Component:
Version: git-master | undetermined
Keywords: | Resolution:
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Changes (by kaienfr):
* status: closed => reopened
* resolution: invalid =>
Comment:
I've tried your suggestion to use aresample filter, this is the code:
{{{
ReSampleContext *rs_ctx = NULL;
// resample to 44100, stereo, s16
rs_ctx = av_audio_resample_init(
2, pCodecCtx->channels,
44100, pCodecCtx->sample_rate,
AV_SAMPLE_FMT_S16, pCodecCtx->sample_fmt,
16, 10, 0, 1);
outbuff = (uint8_t*)av_malloc(AVCODEC_MAX_AUDIO_FRAME_SIZE);
.....................
// resampling
after_sampled_len = audio_resample(rs_ctx, (short *)outbuff,
(short *)pFrame->extended_data, pFrame->nb_samples);
}}}
I've gotten the following errors:
{{{
[audioresample @ 023AC060] Audio sample format conversion failed
}}}
The same code run perfactly with old ffmpeg and got wonderful result!
Well, what kind of problem this should be in new ffmpeg? Obviously, there
is something abnormal in the new version.
If the way to use it is changed, PLEASE clarify it. I am looking forward
to your help. Thank you very much indeed!
--
Ticket URL: <https://trac.ffmpeg.org/ticket/3525#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
[email protected]
http://avcodec.org/mailman/listinfo/ffmpeg-trac