Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> สมาร์ทโฟน >> Linux

วิธีแปลงไฟล์ FLAC เป็น MP3 ใน Ubuntu Linux ด้วย SoundConverter

คู่มือนี้แนะนำวิธีแปลงไฟล์เสียง .flac → .mp3 ใน Ubuntu ด้วย GUI Tool SoundConverter (ง่าย ไม่ต้อง CLI)

ติดตั้ง SoundConverter

  1. เปิด Ubuntu Software (หรือ Software Center)
  2. ค้นหา soundconverter
  3. กด Install

หรือ Terminal:

sudo apt update && sudo apt install soundconverter

ตั้งค่า SoundConverter

  1. เปิด SoundConverter จาก Application Menu
  2. กดปุ่ม Preferences (ไอคอนเฟือง/ค้อน)
  3. Where to place results? → เลือกโฟลเดอร์ Output (เช่น ~/Music/Converted)
  4. How to name files? → ค่าเริ่มต้น "Save as input, but replace the suffix" (แนะนำ)
  5. Type of results? → เลือก MP3
  6. Bitrate mode: Constant / Variable (แนะนำ Variable)
  7. Quality: High / Medium / Low (แนะนำ High: 256-320 kbps)
  8. กด Close

แปลงไฟล์

  1. กด Add File (ไฟล์เดี่ยว) หรือ Add Folder (โฟลเดอร์ทั้งโฟลเดอร์)
  2. เลือกไฟล์ .flac หรือโฟลเดอร์ที่มี .flac
  3. กด Open
  4. กด Convert (Toolbar)
  5. ดู Progress ที่มุมซ้ายล่าง
  6. เสร็จแล้ว ไฟล์ .mp3 จะอยู่ใน Output Folder

ตัวเลือก CLI (สำหรับ Power User)


# ffmpeg (แนะนำ - ทรงพลังที่สุด)
ffmpeg -i input.flac -codec:a libmp3lame -qscale:a 2 output.mp3
# -qscale:a 2 = VBR ~190 kbps (High Quality)
# -b:a 320k = CBR 320 kbps

# แปลงหลายไฟล์
for f in *.flac; do
  ffmpeg -i "$f" -codec:a libmp3lame -qscale:a 2 "${f%.flac}.mp3"
done

# parallel (เร็วขึ้น หลาย Core)
parallel ffmpeg -i {} -codec:a libmp3lame -qscale:a 2 {.}.mp3 ::: *.flac

คุณภาพเสียง (Bitrate Guide)

เล่นไฟล์เสียงใน Ubuntu

  • Rhythmbox - Default GNOME Music Player
  • VLC - เล่นทุก Format, Equalizer, Effects (แนะนำ)
  • Lollypop - Modern GTK Music Player
  • mpv - Minimal, Keyboard-driven

SoundConverter ใช้งานง่าย มี GUI สวย เหมาะสำหรับผู้ใช้ทั่วไป ffmpeg เหมาะสำหรับ Batch/Automation

Bitrateคุณภาพใช้งาน
320 kbps CBRสูงสุดArchive, Audiophile
256 kbps VBRดีมากGeneral Music
192 kbps VBRดีPortable, Streaming
128 kbpsพอใช้Voice, Low Storage