Is this possible with ffmpeg? Do you have any links that explain how to do this?

I have searched with Google but had not many results.

I just want to be able to convert a CD or DVD to MP3 audio files.

  • 3
    You want to convert audio CD to mp3 and DVD to mp4? Could you explain? And if this about 2 things- DVD and CD- maybe 2 separate questions are better. – Rajib May 4 '14 at 7:17

From DVDs, you can access the VOB files directly though, but you have to concatenate them:

cd /path/to/dvd/
cat VOB1.VOB VOB2.VOB VOB3.VOB | ffmpeg -i - -c:a libmp3lame -vn /path/to/output.mp3

For CD, if your ffmpeg was compiled with libcdio support, @M132 gives us a solution:

ffmpeg -f libcdio -ss 0 -i /dev/sr0 dump.flac

To get libcdio with ffmpeg under Windows, check out the Media Autobuild Suite. It can then read from a .cue file.

  • 1
    There is this in configure: --enable-libcdio enable audio CD grabbing with libcdio, but I know nothing of it and haven't investigated. Might be worth a look. – llogan May 6 '14 at 3:48
  • ffmpeg -f libcdio -ss 0 -i /dev/sr0 dump.flac (works at least on Linux) – m132 Aug 23 '14 at 5:44
  • @M132 Thanks, sounds good. I added it to the post. Will have to try to compile it again at some point. – slhck Aug 23 '14 at 5:47
  • 1
    @Shimmy As written above, this only works under Linux (/dev/sr0 is Linux-specific) and requires libcdio to be installed on your system as well as ffmpeg compiled with --enable-libcdio. – slhck Oct 31 '17 at 16:08
  • 1
    @Shimmy This building suite works for Windows: github.com/jb-alvarado/media-autobuild_suite — but you have to compile yourself. – slhck Oct 31 '17 at 17:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.