user-1: I am use FFmpeg v4.1 .
How can I convert all '.mp3' files in the "ab1" folder to the "cd2" folder with the same file names as '.mp3'?
The process I'm going to do is:
-acodec libmp3lame -b:a 192k -ar 48000 -map_metadata -1


user1760: You can use a bash for loop.
cd ab1
mkdir cd2
for f in *.mp3; do ffmpeg -i "$f" -c:a libmp3lame -b:a 192k -ar 48000 -map_metadata -1 "cd2/${f%.*}.mp3"; done

This assumes your OS supports bash shell scripting.

-1: <p>I am use FFmpeg v4.1 .</p>

<p>How can I convert all '.mp3' files in the "ab1" folder to the "cd2" folder with the same file names as '.mp3'?</p>

<p>The process I'm going to do is:</p>

<pre><code>-acodec libmp3lame -b:a 192k -ar 48000 -map_metadata -1
</code></pre>
 1760: <p>You can use a bash <em>for loop</em>.</p>

<pre><code>cd ab1
mkdir cd2
for f in *.mp3; do ffmpeg -i "$f" -c:a libmp3lame -b:a 192k -ar 48000 -map_metadata -1 "cd2/${f%.*}.mp3"; done
</code></pre>

<p>This assumes your OS supports bash shell scripting.</p>
