Opened 5 years ago

Last modified 4 years ago

#1158 open enhancement

support iXML riff chunk

Reported by: dericed Owned by:
Priority: wish Component: avformat
Version: git-master Keywords: metadata iXML riff
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

This sample file contains metadata in a bext chunk and iXML chunk.

http://www.gallery.co.uk/ixml/examples/usesEntireiXMLSpec.WAV

With the flac utility there is an option called --keep-foreign-metadata that allows these chunks to be copied to the flac output. When I use ffmpeg to transcode the wav to a flac file there is no means to keep the bext chunk or ixml chunk of source file.

ffmpeg -i usesEntireiXMLSpec.WAV usesEntireiXMLSpec.flac
ffmpeg version N-35765-gf9143d2 Copyright (c) 2000-2012 the FFmpeg developers
  built on Mar 31 2012 12:44:33 with llvm_gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-libfreetype --cc=/usr/bin/llvm-gcc --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libass --disable-ffplay
  libavutil      51. 44.100 / 51. 44.100
  libavcodec     54. 12.100 / 54. 12.100
  libavformat    54.  3.100 / 54.  3.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 66.101 /  2. 66.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 10.100 /  0. 10.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, wav, from 'usesEntireiXMLSpec.WAV':
  Metadata:
    comment         : gSCENE=66a 
                    : gTAKE=002 
                    : gTAPE=007 
                    : gNOTE=Circle  
                    : gUBITS=00000000 
                    : 
    encoded_by      : Gallery Metacorder
    date            : 2005:08:04
    creation_time   : 16:55:54
    time_reference  : 4090608000
    coding_history  : 
  Duration: 00:00:02.18, bitrate: 781 kb/s
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, 1 channels, s16, 768 kb/s
Output #0, flac, to 'usesEntireiXMLSpec.flac':
  Metadata:
    comment         : gSCENE=66a 
                    : gTAKE=002 
                    : gTAPE=007 
                    : gNOTE=Circle  
                    : gUBITS=00000000 
                    : 
    encoded_by      : Gallery Metacorder
    date            : 2005:08:04
    creation_time   : 16:55:54
    time_reference  : 4090608000
    coding_history  : 
    encoder         : Lavf54.3.100
    Stream #0:0: Audio: flac, 48000 Hz, 1 channels, s16, 128 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_s16le -> flac)
Press [q] to stop, [?] for help
size=      42kB time=00:00:02.20 bitrate= 155.8kbits/s    
video:0kB audio:34kB global headers:0kB muxing overhead 24.469009%

Change History (4)

comment:1 Changed 5 years ago by cehoyos

(Could we agree that this ticket is not related in any way to flac?)

Isn't this a request to support reading iXML?
Or is there a part of the bext chunk that is not read correctly?

comment:2 Changed 4 years ago by richardpl

bext chunk metadata is supported.

flac 1.2.1 fails to parse wav if i give --keep-foreign-metadata

comment:3 Changed 4 years ago by richardpl

  • Component changed from undetermined to avformat
  • Keywords iXML riff added; flac removed
  • Priority changed from normal to wish
  • Status changed from new to open
  • Summary changed from allow use of flac's --keep-foreign-metadata when encoding or decoding flac format to support iXML riff chunk

comment:4 Changed 4 years ago by richardpl

Do you want that iXML chunk is just added as metadata without any parsing? - which is trivial to implement.

Note: See TracTickets for help on using tickets.