HydrogenAudio

Lossy Audio Compression => AAC => AAC - Tech => Topic started by: Wally Walters on 2017-02-17 03:18:35

Title: How to pipe FLACs to fdkaac in ffmpeg and keep tags?
Post by: Wally Walters on 2017-02-17 03:18:35
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?
Title: Re: How to pipe FLACs to fdkaac in ffmpeg and keep tags?
Post by: Heliologue on 2017-02-17 04:50:22
I don't know if it's possible with ffmpeg, but I believe Tag (http://wiki.hydrogenaud.io/index.php?title=Tag_(tagger)) can transfer tags from one file to the other.
Title: Re: How to pipe FLACs to fdkaac in ffmpeg and keep tags?
Post by: nu774 on 2017-02-17 06:23:21
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.
Title: Re: How to pipe FLACs to fdkaac in ffmpeg and keep tags?
Post by: Wally Walters on 2017-02-17 07:48:24
That did it.  Thank you.