Looking for a workaroud in order to get rid of the N/A screen on a Moto G5 (cedric)

You may try it on a free cloud Windows VM, for example: https://www.cloudbik.com/resources/blog/create-windows-virtual-machine-azure/

Also, there is a ffmpeg for Ubuntu and the .bat file is very simple so you may be able to translate commands to bash. As usual, Internet is very helpful for that, for example https://tldp.org/LDP/abs/html/dosbatch.html.
Perl script should run as-is on Linux.