How can I transcode flac to ogg-flac ? It seems that ffmpeg supports only flac, not ogg-flac.
1 Answer
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).
-
1
-f flac
is implied for output URLs ending in.flac
. ffmpeg does not take the choice of encoder as hint for container.– GyanMar 7, 2022 at 4:13 -
ah right. so having
.ogg
would have work and-f ogg
is only needed if you insists.flac
.– Tom YanMar 7, 2022 at 4:37 -
This does not work:
ffmpeg.exe -i .\103_1.flac -f ogg 103_1.flog
with leads toStream mapping: Stream #0:0 -> #0:0 (flac (native) -> vorbis (libvorbis))
which is not ogg-flac but ogg vorbis.– SoleilMar 16, 2022 at 13:56 -