Is it possible to download a YouTube video as e.g. mp3 and then convert it to flac with ffmpeg? I can specify the arguments that ffmpeg shall use after the download with --postprocessor-args but I don't know how to get the file name there.
--postprocessor-args "-i downloadedfile.xxx -c:a flac downloadedfile.flac"
This would be the argument I want to use. Is this possible?