0

How can I transcode flac to ogg-flac ? It seems that ffmpeg supports only flac, not ogg-flac.

1 Answer 1

-1

Just add -f ogg somewhere between -i the_input_file and the_output_file.flac or simply use the_output_file.ogg. (I have no idea whether using .flac is considered legal for Ogg FLAC.)

Because the output container format determines the default codec to use for the output streams (IIRC), make sure your add -c:a flac (similarly, somewhere between between -i the_input_file and the_output_file) to specify your desired audio codec, as the default one for ogg is vorbis.

-f flac is implied for the flac encoder when no muxer is specified (and when there is only an audio input).

4
  • 1
    -f flac is implied for output URLs ending in .flac. ffmpeg does not take the choice of encoder as hint for container.
    – Gyan
    Mar 7, 2022 at 4:13
  • ah right. so having .ogg would have work and -f ogg is only needed if you insists .flac.
    – Tom Yan
    Mar 7, 2022 at 4:37
  • This does not work: ffmpeg.exe -i .\103_1.flac -f ogg 103_1.flog with leads to Stream mapping: Stream #0:0 -> #0:0 (flac (native) -> vorbis (libvorbis)) which is not ogg-flac but ogg vorbis.
    – Soleil
    Mar 16, 2022 at 13:56
  • @Soleil answer updated
    – Tom Yan
    Mar 16, 2022 at 16:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .