GNOME Bugzilla – Bug 581379
ffenc_alac not working
Last modified: 2009-09-10 08:47:22 UTC
Please describe the problem: TItle is self-explicative Steps to reproduce: 1. gst-launch audiotestsrc ! ffenc_alac ! fakesink -v Actual results: Errors, a series of: 0:00:01.462853587 13665 0xe666a0 ERROR ffmpeg :0:: buffer size is too small 0:00:01.462886542 13665 0xe666a0 ERROR ffmpeg gstffmpegenc.c:772:gst_ffmpegenc_chain_audio:<ffenc_alac0> Failed to encode buffer 0:00:01.463406258 13665 0xe666a0 ERROR ffmpeg :0:: alac: expected 36 extradata bytes Expected results: ffenc_alac to work properly. Does this happen every time? Yes Other information:
Seems that the alac encoder requires the input buffer size to be in some interval... not sure if we want to fix this in gst-ffmpeg. IMHO this should better be fixed in ffmpeg. Edward, what do you think? Relevant part of code from alacenc.c: if(avctx->frame_size > DEFAULT_FRAME_SIZE) { av_log(avctx, AV_LOG_ERROR, "input frame size exceeded\n"); return -1; } if(buf_size < 2*s->max_coded_frame_size) { av_log(avctx, AV_LOG_ERROR, "buffer size is too small\n"); return -1; }
Closing this, this should be fixed in ffmpeg: https://roundup.ffmpeg.org/roundup/ffmpeg/issue1371