Opened 2 months ago

Closed 2 months ago

Last modified 2 months ago

#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 Changed 2 months ago by cehoyos

  • Component changed from avfilter to undetermined
  • Keywords aac resample avfilter removed
  • Priority changed from wish to normal
  • Resolution set to invalid
  • Status changed from new to closed
  • Version changed from 2.8.11 to unspecified

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.

comment:2 Changed 2 months ago by TopsLuo

  • Component changed from undetermined to avfilter
  • Priority changed from normal to wish
  • Version changed from unspecified to 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 Changed 2 months ago by llogan

  • Component changed from avfilter to undetermined
  • Priority changed from wish to normal
  • Version changed from 2.8.11 to 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.