I'm using this script to convert mka (the audio track of a mkv) to wav. But I'm wondering - what do I have to add/remove to/from this script in order to make it rip an audio CD and make the output files WAVs with the already predetermined specs?
This script will convert any mka to a 16-bit, 44 kHz, 2 channel, 1411 audio bitrate WAV. I'm guessing there isn't much to add to (or remove from) this FFMPEG line in order to make it read the audio CD in the optical device and rip each track to a wav? Or am I wrong? The output track name doesn't matter much for as long as they're different names (Track 1, Track 2 and so on), I can change them myself after ripping is complete.
I wanna do it with CLI bc I'm honestly sick of the non-thinking KDE developers and CLI will save me a lot of nerves.
Code:
#!/usr/bin/env bash
for name in *.mka;
do
newname=$(echo "$name" | rev | cut -f 2- -d '.' | rev)
ffmpeg -i "$name" -vn -ar 44100 -ac 2 -ab 1411k -f wav "$newname".wav;
done
This script will convert any mka to a 16-bit, 44 kHz, 2 channel, 1411 audio bitrate WAV. I'm guessing there isn't much to add to (or remove from) this FFMPEG line in order to make it read the audio CD in the optical device and rip each track to a wav? Or am I wrong? The output track name doesn't matter much for as long as they're different names (Track 1, Track 2 and so on), I can change them myself after ripping is complete.
I wanna do it with CLI bc I'm honestly sick of the non-thinking KDE developers and CLI will save me a lot of nerves.