• I used this command:
/Applications/VLC.app/Contents/MacOS/VLC -I dummy "file name" \
    ":sout=#transcode{acodec=mpga,ab=192}:std{dst=output.mp3,access=file}" \
    vlc://quit
VLC media player 3.0.8 Vetinari (revision 3.0.8-0-gf350b6b5a7)
[00007fd7696155d0] dummy interface: using the dummy interface module...
[00007fd749522000] dummy mux: Open
[00007fd769563d90] idummy demux: command `quit'
  • this will produce an output file called: output.mp3