[MPlayer-dev-eng] lavcac3enc broken?

Reimar Döffinger Reimar.Doeffinger at gmx.de
Wed Mar 29 20:38:38 EEST 2023



> On 29 Mar 2023, at 12:51, Reimar Döffinger <Reimar.Doeffinger at gmx.de> wrote:
> 
>> 
>> On 27 Mar 2023, at 17:37, eatdirt <eatdirt at protonmail.com> wrote:
>> 
>> Hi there,
>> I am a long term user of mplayer, and my "custom" usage is to reencode audio streams to ac3 to feed my "old" amplifier.
>> 
>> Since version 1.5, it seems that the audio chain having:
>> 
>> -af lavcac3enc 1:x:y
>> 
>> is broken as soon as the stream is not ac3 (it used to work with any stream pre-version 1.5).
>> 
>> Here the errors popping out, for instance from an eac3 audio channel:
>> 
>> [ac3_fixed @ 0x7f72fd553760]Specified sample format s16p is invalid or not supported
> 
> Seems there was a FFmpeg change making the ac3 encoder only support 32-bit input.
> So the lavcac3enc code would need to be changed to take that instead of 16-bit inputs.
> It should not be hard, but might take a bit of time to do.

Unfortunately I can't test it, but I have a patch attached...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ac3enc.diff
Type: application/octet-stream
Size: 3667 bytes
Desc: not available
URL: <https://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20230329/48558d70/attachment.obj>


More information about the MPlayer-dev-eng mailing list