[MPlayer-dev-eng] mencoder not encoding ac3 on macOSX
Alexandre Roberto Zia
alexandre at zia.com.br
Wed Mar 2 01:37:11 CET 2011
I also added a return error code into ffmpeg: libavcodec/utils.c
Without this return error code mencoder freezes.
This way, at least mencoder dont hang forever.
Alexandre
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 7fba5c6..f83ea64 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -557,6 +557,7 @@ int attribute_align_arg avcodec_open(AVCodecContext *avctx, AVCodec *codec)
break;
if (avctx->codec->sample_fmts[i] == AV_SAMPLE_FMT_NONE) {
av_log(avctx, AV_LOG_ERROR, "Specified sample_fmt is not supported.\n");
+ ret=-1;
goto free_and_end;
}
}
On Mar 1, 2011, at 21:20 , Alexandre Roberto Zia wrote:
> Hi,
>
> Thanks for the information.
> I will try to fix by myself but I`m new to mencoder / ffmpeg so there are lots of things I need to learn first.
>
>
> On Mar 1, 2011, at 13:50 , Reimar Döffinger wrote:
>
>> On 1 Mar 2011, at 04:53, Alexandre Roberto Zia <alexandre at zia.com.br> wrote:
>>> I'm having a problem with mencoder latest svn version:
>>>
>>> ffmpeg can produce an AC3 audio file:
>>> ffmpeg -y -i video.mkv -acodec ac3 -ac 6 -ab 384k -ar 48000 -f ac3 audioout
>>>
>>> but mencoder not:
>>> mencoder" -ss 0 video.mkv -channels 6 -ovc copy -of rawaudio -mc 0 -noskip -oac lavc -lavcopts acodec=ac3:abitrate=384 -af lavcresample=48000 -srate 48000 -o audioout -v
>>
>> I suspect this has to do with the AC3 encoder now requiring float input, I suspect ae_lavc cannot yet pass through float to the encoder.
>> Shouldn't be that hard to fix (since you're posting to -dev-eng and not to -users I assume you'd like to try fixing it yourself).
>> _______________________________________________
>> MPlayer-dev-eng mailing list
>> MPlayer-dev-eng at mplayerhq.hu
>> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
>
More information about the MPlayer-dev-eng
mailing list