[FFmpeg-user] using flac parameters in ffmpeg

James Darnley james.darnley at gmail.com
Mon Apr 2 12:37:04 CEST 2012

On 2012-04-02 04:44, David Rice wrote:
> Hi Carl,
> On Mar 31, 2012, at 12:51 PM, Carl Eugen Hoyos wrote:
>> David Rice <daverice <at> mac.com> writes:
>>> Is it possible to use flac's --keep-foreign-metadata 
>>> feature in ffmpeg when decoding or encoding flac files?
>> (Command line and complete, uncut console output missing.)
> I placed this at https://ffmpeg.org/trac/ffmpeg/ticket/1158.
>> Isn't this the default?
> I see some of the bext tags are mapped to flac tags which is great, but is not entirely what --keep-foreign-metadata does in the flac utility. For instance, this sample http://www.gallery.co.uk/ixml/examples/usesEntireiXMLSpec.WAV has an iXML chunk. With "flac --keep-foreign-metadata usesEntireiXMLSpec.WAV" the output would contain a copy of the iXML chunk.
> Dave

This sounds like a problem of reading metadata from the input wave file.
 The flac writer of libavformat will write all the metadata tags that
are given to it into the VorbisComment block.

I will add that flac.exe doesn't even understand that wave file you
linked to.  The error is:
> usesEntireiXMLSpec.WAV: ERROR reading foreign metadata: invalid WAVE file: unexpected EOF (010)

More information about the ffmpeg-user mailing list