Opened 7 years ago

Closed 7 years ago

Last modified 7 years 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 by Carl Eugen Hoyos, 7 years ago

Component: avfilterundetermined
Keywords: aac resample avfilter removed
Priority: wishnormal
Resolution: invalid
Status: newclosed
Version: 2.8.11unspecified

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 by TopsLuo, 7 years ago

Component: undeterminedavfilter
Priority: normalwish
Version: unspecified2.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 llogan, 7 years ago

Component: avfilterundetermined
Priority: wishnormal
Version: 2.8.11unspecified

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.