User Tools

Site Tools


linux:rip-audio-cd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux:rip-audio-cd [2016/07/12 12:37] – created Wulf Rajeklinux:rip-audio-cd [2023/05/29 11:55] (current) – external edit 127.0.0.1
Line 20: Line 20:
 </code> </code>
  
 +
 +====== Flac to MP3 conversion ======
 +
 +To convert lossless FLAC files to mp3, the easiest option is using ffmpeg which will most likely already be installed. This script/command converts all flac files in a directory to MP3 V0 with variable bitrate between 220-260kbps. The resulting compacted audio file cannot be distinguished from the lossless version.
 +<code>
 +#!/bin/bash
 +for a in ./*.flac; do
 +  < /dev/null ffmpeg -i "$a" -qscale:a 0 "${a[@]/%flac/mp3}"
 +done
 +</code>
  
linux/rip-audio-cd.1468323455.txt.gz · Last modified: 2023/05/29 11:53 (external edit)