according to some tests it works, but some hw decoders (in tv) migh refuse stream (

https://www.reddit.com/r/ffmpeg/comments/k3z9i9/how_bad_is_ffmpegs_eac3_encoder/

it also does not support more than 6 channels
https://trac.ffmpeg.org/ticket/3595?cversion=0&cnum_hist=7

command line and bitrates possible here:
https://ffmpeg-user.ffmpeg.narkive.com/JJ0ohMKA/eac3-encoding
 -acodec eac3, up to 6 mbps... 

testing should be as simple as copying ffmpeg/audio ac3 profile with new name and replacing ac3 with eac3