#6416 closed defect (invalid)
aac resample
| Reported by: | TopsLuo | Owned by: | |
|---|---|---|---|
| Priority: | normal | Component: | undetermined |
| Version: | unspecified | Keywords: | |
| Cc: | Blocked By: | ||
| Blocking: | Reproduced by developer: | no | |
| Analyzed by developer: | no |
Description
Summary of the bug:
When I was in use transcoding.c (doc/examples),I found, if I changed the enc_ctx->sample_rate(orig: enc_ctx->sample_rate = dec_ctx->sample_rate),the encoder return error.log like this:
[aac @ 0x7f91b0294c40] more samples than frame size (avcodec_encode_audio2)
What can I do?
Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.
Change History (3)
comment:1 by , 7 years ago
| Component: | avfilter → undetermined |
|---|---|
| Keywords: | aac resample avfilter removed |
| Priority: | wish → normal |
| Resolution: | → invalid |
| Status: | new → closed |
| Version: | 2.8.11 → unspecified |
comment:2 by , 7 years ago
| Component: | undetermined → avfilter |
|---|---|
| Priority: | normal → wish |
| Version: | unspecified → 2.8.11 |
I want use transcoding.c to transcode
Stream #0:0[0x101]: Audio: aac (LC), 44100 Hz, stereo, fltp, 81 kb/s
to
Stream #0:0[0x101]: Audio: aac (LC), 48000 Hz, stereo, fltp, 81 kb/s
So I try to set 'enc_ctx->sample_rate = 48000'
,If not, How to resample? Thank you...
comment:3 by , 7 years ago
| Component: | avfilter → undetermined |
|---|---|
| Priority: | wish → normal |
| Version: | 2.8.11 → unspecified |
This is a bug tracker not a help resource. As mentioned previously you should ask for help at the libav-user mailing list or the #ffmpeg IRC channel on Freenode.
Note:
See TracTickets
for help on using tickets.



Please post all library usage questions on the libav-userr mailing list.
You have to provide the actual sample rate, you cannot use the field to change it.