Skip to main content

Topic: How to pipe FLACs to fdkaac in ffmpeg and keep tags? (Read 2297 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
How to pipe FLACs to fdkaac in ffmpeg and keep tags?
I can convert FLAC files to m4as with the following command line, piping ffmpeg output to fdkacc, but the FLAC's ID3 tags get lost in the process.

Code: [Select]
ffmpeg.exe -i input.flac -f wav - | fdkaac.exe -I -p 29 -m 0  -G 2 - -o "%~n1.m4a"

What do I add to this command line to transfer the tags to the new m4a file -- hopefully without resorting to an intermediate text file?

  • Heliologue
  • [*][*][*]
Re: How to pipe FLACs to fdkaac in ffmpeg and keep tags?
Reply #1
I don't know if it's possible with ffmpeg, but I believe Tag can transfer tags from one file to the other.

  • nu774
  • [*][*][*][*][*]
  • Developer
Re: How to pipe FLACs to fdkaac in ffmpeg and keep tags?
Reply #2
I can convert FLAC files to m4as with the following command line, piping ffmpeg output to fdkacc, but the FLAC's ID3 tags get lost in the process.
Code: [Select]
ffmpeg.exe -i input.flac -f wav - | fdkaac.exe -I -p 29 -m 0  -G 2 - -o "%~n1.m4a"
Try -f caf instead of -f wav. fdkaac is able to read only CAF tags.

Re: How to pipe FLACs to fdkaac in ffmpeg and keep tags?
Reply #3
That did it.  Thank you.