[FFmpeg-user] Broken metadata handling with ogg vorbis?

Andrzej Nikitorowicz andrzej.nikitorowicz at gmail.com
Sun Oct 13 15:41:21 CEST 2013



andynek_15:26:37 z $ ffmpeg -i J.Fijor-2013.10.09.Wed-21.00-1.ogg -frames 1 -f ffmetadata metadata.txt

ffmpeg version N-56841-g4d5d905 Copyright (c) 2000-2013 the FFmpeg developers
  built on Oct  3 2013 18:40:50 with gcc 4.7.2 (Gentoo 4.7.2-r1 p1.4, pie-0.5.5)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-O2 -pipe -march=native '
 --extra-cflags='-O2 -pipe -march=native ' --extra-cxxflags='-O2 -pipe -march=native ' --disable-static --enable-gpl --enable-postproc --enable-avfilter --enable-avresample --disable-stripping --enable-nonfree --enable-version3 --enable-
nonfree --enable-version3 --enable-bzlib --disable-runtime-cpudetect --disable-debug --enable-doc --enable-gnutls --enable-hardcoded-tables --enable-iconv --enable-network --enable-openssl --enable-ffplay --enable-vaapi --enable-vdpau --
enable-zlib --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libmp3lame --enable-libfdk-aac --enable-libaacplus --enable-libfaac --enable-libtheora --enable-libtwolame --enable-libwavpack --enable-libx264 --enable-libxvid --disable
-libcdio --disable-libiec61883 --disable-libdc1394 --enable-libcaca --enable-openal --enable-libv4l2 --enable-libpulse --enable-x11grab --enable-libflite --enable-frei0r --enable-fontconfig --enable-libass --enable-libfreetype --enable-l
ibsoxr --enable-pthreads --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libopenjpeg --disable-libbluray --disable-libcelt --enable-libgme --enable-libgsm --enable-libmodplug --enable-libopus --enable-libquvi --enable-libr
tmp --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libvpx --disable-amd3dnow --disable-amd3dnowext --disable-altivec --disable-vis --disable-neon --enable-pic --cpu=host
  libavutil      52. 46.100 / 52. 46.100
  libavcodec     55. 34.100 / 55. 34.100
  libavformat    55. 19.100 / 55. 19.100
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 88.101 /  3. 88.101
  libavresample   1.  1.  0 /  1.  1.  0
  libswscale      2.  5.100 /  2.  5.100
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100
Input #0, ogg, from 'J.Fijor-2013.10.09.Wed-21.00-1.ogg':
  Duration: 00:36:51.50, start: 0.000000, bitrate: 33 kb/s
    Stream #0:0: Audio: vorbis, 44100 Hz, stereo, fltp, 48 kb/s
    Metadata:
      TITLE           : Janek Fijor - 2013.10.09.Wed-21.00-1
      ARTIST          : Radio Kontestacja
      ALBUM           : Janek Fijor
      DATE            : 2013
      GENRE           : Polityka
      track           : 1
      COMMENT         : Blacha wie co mówi
Output #0, ffmetadata, to 'metadata.txt':
Stream mapping:
Press [q] to stop, [?] for help
size=       0kB time=-577014:-32:-22.-77 bitrate=N/A
video:0kB audio:0kB subtitle:0 global headers:0kB muxing overhead inf%
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
andynek_15:26:39 z $
andynek_15:26:41 z $


cat metadata.txt

;FFMETADATA1



Another question, howto copy metadata from one file to anther?

andynek_15:36:58 z $ ffmpeg -i "concat:J.Fijor-2013.10.09.Wed-20.57.30-1.ogg|J.Fijor-2013.10.09.Wed-21.00-1.ogg" \
-i J.Fijor-2013.10.09.Wed-21.00-1.ogg -acodec copy J.Fijor-2013.10.09.Wed-20.57.30-11.ogg -map_metadata 0:1



ffmpeg version N-56841-g4d5d905 Copyright (c) 2000-2013 the FFmpeg developers
  built on Oct  3 2013 18:40:50 with gcc 4.7.2 (Gentoo 4.7.2-r1 p1.4, pie-0.5.5)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-O2 -pipe -march=native '
 --extra-cflags='-O2 -pipe -march=native ' --extra-cxxflags='-O2 -pipe -march=native ' --disable-static --enable-gpl --enable-postproc --enable-avfilter --enable-avresample --disable-stripping --enable-nonfree --enable-version3 --enable-
nonfree --enable-version3 --enable-bzlib --disable-runtime-cpudetect --disable-debug --enable-doc --enable-gnutls --enable-hardcoded-tables --enable-iconv --enable-network --enable-openssl --enable-ffplay --enable-vaapi --enable-vdpau --
enable-zlib --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libmp3lame --enable-libfdk-aac --enable-libaacplus --enable-libfaac --enable-libtheora --enable-libtwolame --enable-libwavpack --enable-libx264 --enable-libxvid --disable
-libcdio --disable-libiec61883 --disable-libdc1394 --enable-libcaca --enable-openal --enable-libv4l2 --enable-libpulse --enable-x11grab --enable-libflite --enable-frei0r --enable-fontconfig --enable-libass --enable-libfreetype --enable-l
ibsoxr --enable-pthreads --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libopenjpeg --disable-libbluray --disable-libcelt --enable-libgme --enable-libgsm --enable-libmodplug --enable-libopus --enable-libquvi --enable-libr
tmp --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libvpx --disable-amd3dnow --disable-amd3dnowext --disable-altivec --disable-vis --disable-neon --enable-pic --cpu=host
  libavutil      52. 46.100 / 52. 46.100
  libavcodec     55. 34.100 / 55. 34.100
  libavformat    55. 19.100 / 55. 19.100
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 88.101 /  3. 88.101
  libavresample   1.  1.  0 /  1.  1.  0
  libswscale      2.  5.100 /  2.  5.100
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100
Trailing options were found on the commandline.
[ogg @ 0x667620] Cannot identify new stream
[ogg @ 0x667620] failed to create or replace stream
Input #0, ogg, from 'concat:J.Fijor-2013.10.09.Wed-20.57.30-1.ogg|J.Fijor-2013.10.09.Wed-21.00-1.ogg':
  Duration: 159957:47:02.63, start: 0.019252, bitrate: N/A
    Stream #0:0: Audio: vorbis, 44100 Hz, stereo, fltp, 48 kb/s
    Metadata:
      ALBUM           : Kontestacja.com
      ARTIST          : Jan Fijor Kamil Cebulski
      TITLE           : Jan Fijor - Blacha wie co mówi
      ENCODER         : Lavf55.19.100
Input #1, ogg, from 'J.Fijor-2013.10.09.Wed-21.00-1.ogg':
  Duration: 00:36:51.50, start: 0.000000, bitrate: 33 kb/s
    Stream #1:0: Audio: vorbis, 44100 Hz, stereo, fltp, 48 kb/s
    Metadata:
      TITLE           : Janek Fijor - 2013.10.09.Wed-21.00-1
      ARTIST          : Radio Kontestacja
      ALBUM           : Janek Fijor
      DATE            : 2013
      GENRE           : Polityka
      track           : 1
      COMMENT         : Blacha wie co mówi
File 'J.Fijor-2013.10.09.Wed-20.57.30-11.ogg' already exists. Overwrite ? [y/N] y
Output #0, ogg, to 'J.Fijor-2013.10.09.Wed-20.57.30-11.ogg':
  Metadata:
    encoder         : Lavf55.19.100
    Stream #0:0: Audio: vorbis, 44100 Hz, stereo, 48 kb/s
    Metadata:
      ALBUM           : Kontestacja.com
      ARTIST          : Jan Fijor Kamil Cebulski
      TITLE           : Jan Fijor - Blacha wie co mówi
      ENCODER         : Lavf55.19.100
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[NULL @ 0x630e40] Invalid packet bitrate=  40.8kbits/s
    Last message repeated 2 times
[ogg @ 0x63b2c0] Non-monotonous DTS in output stream 0:0; previous: 6834690, current: 6834688; changing to 6834691. This may result in incorrect timestamps in the output file.
size=    9895kB time=00:39:26.46 bitrate=  34.3kbits/s
video:0kB audio:9775kB subtitle:0 global headers:0kB muxing overhead 1.227961%
andynek_15:37:37 z $

Result is copy metadata from J.Fijor-2013.10.09.Wed-20.57.30-1.ogg, but I want metadata from J.Fijor-2013.10.09.Wed-21.00-1.ogg









More information about the ffmpeg-user mailing list