To extract audio from a .webm file, using the ffmpeg tool:
ffmpeg -i "input.webm" -acodec copy "output.opus"
The command above works perfectly, however it extracts only one file at the time. What would be a command to extract all .webm files in specific directory, keeping the original names of the files and only changing the file extension from .webm to .opus? I also need to extract .aac audio from .mp4 files using ffmpeg. What would be the proper command for that?