[FFmpeg-trac] #683(undetermined:closed): Very wrong number of channels when using libaacplus and ffmpeg
FFmpeg
trac at avcodec.org
Thu Nov 24 14:57:09 CET 2011
#683: Very wrong number of channels when using libaacplus and ffmpeg
-------------------------------------+-------------------------------------
Reporter: bradskins | Owner:
Type: defect | Status: closed
Priority: normal | Component:
Version: 0.7.7 | undetermined
Keywords: libaacplus | Resolution:
freebsd | worksforme
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Changes (by cehoyos):
* keywords: libaacplus audio stream freebsd => libaacplus freebsd
* priority: important => normal
* status: new => closed
* resolution: => worksforme
Comment:
I just tested your command line with both current git head and release/0.7
(both static and shared libaacplus 2.0.2) and it works fine.
> libaacplus: bad aac setting: br:32000, AACch:65536, AACsr:22050
Given how libavcodec/libaacplus.c sets the channels, this is an unlikely
problem:
{{{
/* number of channels */
if (avctx->channels < 1 || avctx->channels > 2) {
av_log(avctx, AV_LOG_ERROR, "encoding %d channel(s) is not
allowed\n", avctx->channels);
return -1;
}
s->aacplus_handle = aacplusEncOpen(avctx->sample_rate,
avctx->channels,
&samples_input, &max_bytes_output);
if(!s->aacplus_handle) {
av_log(avctx, AV_LOG_ERROR, "can't open encoder\n");
return -1;
}
}}}
An unrelated problem that made encoding to ADTS impossible was just fixed
in git head and all future releases.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/683#comment:1>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list