Opened 5 years ago

Closed 5 years ago

#7532 closed defect (fixed)

copying chapter markers doesn't work with ogg

Reported by: Thomas Schneider Owned by:
Priority: minor Component: avformat
Version: git-master Keywords: chapters ogg
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Summary of the bug:
When using libopus you can't add chapter markers.

How to reproduce:

% wget https://freakshow.fm/podlove/file/5513/s/webplayer/c/episode/fs225-frontend-von-judaea.opus
% ffmpeg -i fs225-frontend-von-judaea.opus -c:a copy output.opus
ffmpeg version n4.0.3 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 8.2.1 (GCC) 20180831
  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared --enable-version3
(it's the archlinux package ffmpeg 4.0.3-1)

This is the fastest way to reproduce the problem right now. I tried different map variations (map_metadata, map_chapters, ...) extracting the metadata with ffmpeg shows the chapters.
Using other codecs like AAC doesn't have this problem.

% wget https://freakshow.fm/podlove/file/5514/s/webplayer/c/episode/fs225-frontend-von-judaea.m4a
% ffmpeg -i fs225-frontend-von-judaea.m4a -c:a copy output.m4a

just works.

PS can't select the correct version.

Change History (3)

comment:1 by Thomas Schneider, 5 years ago

Oh yeah tried using a different container as well to no affect.

comment:2 by Carl Eugen Hoyos, 5 years ago

Component: ffmpegavformat
Keywords: ogg added; libopus removed
Priority: normalminor
Reproduced by developer: set
Status: newopen
Summary: copying chapter markers doesn't work with libopuscopying chapter markers doesn't work with ogg
Version: unspecifiedgit-master

For future tickets: Please always test current FFmpeg git head (nothing else is supported here) and provide the command line you tested together with the complete, uncut console output.

The bug is that the console output claims chapters are copied when writing ogg files, the missing chapters are an enhancement request.

$ ffmpeg -i fs225-frontend-von-judaea.opus -c copy out.opus
ffmpeg version N-92356-g89a0d33 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 6.4.0 (GCC)
  configuration: --enable-gpl --enable-gnutls --enable-libxml2
  libavutil      56. 23.100 / 56. 23.100
  libavcodec     58. 36.100 / 58. 36.100
  libavformat    58. 21.100 / 58. 21.100
  libavdevice    58.  6.100 / 58.  6.100
  libavfilter     7. 43.100 /  7. 43.100
  libswscale      5.  4.100 /  5.  4.100
  libswresample   3.  4.100 /  3.  4.100
  libpostproc    55.  4.100 / 55.  4.100
[ogg @ 0x381c600] 91832 bytes of comment header remain
Input #0, ogg, from 'fs225-frontend-von-judaea.opus':
  Duration: 04:11:04.31, start: 0.000000, bitrate: 49 kb/s
    Chapter #0:0: start 0.000000, end 102.121000
    Metadata:
      title           : Intro
    Chapter #0:1: start 102.121000, end 153.598000
    Metadata:
      title           : Begrüßung
    Chapter #0:2: start 153.598000, end 347.085000
    Metadata:
      title           : Vorstellung
    Chapter #0:3: start 347.085000, end 720.691000
    Metadata:
      title           : Vorgezogene Congress-Keynote
    Chapter #0:4: start 720.691000, end 1732.181000
    Metadata:
      title           : Lastenräder und Mobilität
    Chapter #0:5: start 1732.181000, end 2255.736000
    Metadata:
      title           : Stromanbieter wechseln
    Chapter #0:6: start 2255.736000, end 2789.798000
    Metadata:
      title           : Tim wird Bundeskanzlerin
    Chapter #0:7: start 2789.798000, end 3070.649000
    Metadata:
      title           : Webkonferenzen
    Chapter #0:8: start 3070.649000, end 3164.264000
    Metadata:
      title           : Remote arbeiten
    Chapter #0:9: start 3164.264000, end 5807.392000
    Metadata:
      title           : Agile Entwicklungsmethoden
    Chapter #0:10: start 5807.392000, end 7647.350000
    Metadata:
      title           : Die Welt ist eine Google
    Chapter #0:11: start 7647.350000, end 9184.885000
    Metadata:
      title           : Open Source Development
    Chapter #0:12: start 9184.885000, end 9795.583000
    Metadata:
      title           : gigatron TTL Color Computer
    Chapter #0:13: start 9795.583000, end 10613.363000
    Metadata:
      title           : Voice Coder und Skynet
    Chapter #0:14: start 10613.363000, end 10856.938000
    Metadata:
      title           : Machine learning failures
    Chapter #0:15: start 10856.938000, end 13913.858000
    Metadata:
      title           : Der Frontend Report
    Chapter #0:16: start 13913.858000, end 14385.355000
    Metadata:
      title           : Internetprobleme in Thüringen
    Chapter #0:17: start 14385.355000, end 14530.024000
    Metadata:
      title           : JavaScript Meetup in Jena
    Chapter #0:18: start 14530.024000, end 14810.242000
    Metadata:
      title           : Ausklang
    Chapter #0:19: start 14810.242000, end 15064.308000
    Metadata:
      title           : Bonus Track
    Stream #0:0: Audio: opus, 48000 Hz, stereo, fltp
    Metadata:
      ENCODER         : opusenc from opus-tools 0.1.10
      ENCODER_OPTIONS : --quiet --bitrate 48
      ALBUM           : Freak Show
      ARTIST          : Metaebene Personal Media
      track           : 225
      TITLE           : FS225 Frontend von Judäa
      PUBLISHER       : Freak Show
      URL             : https://freakshow.fm
      DATE            : 2018
      GENRE           : Podcast
      ENCODED_BY      : auphonic.com
      ENCODED-BY      : auphonic.com
    Stream #0:1: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1400x1400 [SAR 1:1 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      comment         : Cover (front)
Output #0, opus, to 'out.opus':
  Metadata:
    encoder         : Lavf58.21.100
    Chapter #0:0: start 0.000000, end 102.121000
    Metadata:
      title           : Intro
    Chapter #0:1: start 102.121000, end 153.598000
    Metadata:
      title           : Begrüßung
    Chapter #0:2: start 153.598000, end 347.085000
    Metadata:
      title           : Vorstellung
    Chapter #0:3: start 347.085000, end 720.691000
    Metadata:
      title           : Vorgezogene Congress-Keynote
    Chapter #0:4: start 720.691000, end 1732.181000
    Metadata:
      title           : Lastenräder und Mobilität
    Chapter #0:5: start 1732.181000, end 2255.736000
    Metadata:
      title           : Stromanbieter wechseln
    Chapter #0:6: start 2255.736000, end 2789.798000
    Metadata:
      title           : Tim wird Bundeskanzlerin
    Chapter #0:7: start 2789.798000, end 3070.649000
    Metadata:
      title           : Webkonferenzen
    Chapter #0:8: start 3070.649000, end 3164.264000
    Metadata:
      title           : Remote arbeiten
    Chapter #0:9: start 3164.264000, end 5807.392000
    Metadata:
      title           : Agile Entwicklungsmethoden
    Chapter #0:10: start 5807.392000, end 7647.350000
    Metadata:
      title           : Die Welt ist eine Google
    Chapter #0:11: start 7647.350000, end 9184.885000
    Metadata:
      title           : Open Source Development
    Chapter #0:12: start 9184.885000, end 9795.583000
    Metadata:
      title           : gigatron TTL Color Computer
    Chapter #0:13: start 9795.583000, end 10613.363000
    Metadata:
      title           : Voice Coder und Skynet
    Chapter #0:14: start 10613.363000, end 10856.938000
    Metadata:
      title           : Machine learning failures
    Chapter #0:15: start 10856.938000, end 13913.858000
    Metadata:
      title           : Der Frontend Report
    Chapter #0:16: start 13913.858000, end 14385.355000
    Metadata:
      title           : Internetprobleme in Thüringen
    Chapter #0:17: start 14385.355000, end 14530.024000
    Metadata:
      title           : JavaScript Meetup in Jena
    Chapter #0:18: start 14530.024000, end 14810.242000
    Metadata:
      title           : Ausklang
    Chapter #0:19: start 14810.242000, end 15064.308000
    Metadata:
      title           : Bonus Track
    Stream #0:0: Audio: opus, 48000 Hz, stereo, fltp
    Metadata:
      ENCODER         : opusenc from opus-tools 0.1.10
      ENCODER_OPTIONS : --quiet --bitrate 48
      ALBUM           : Freak Show
      ARTIST          : Metaebene Personal Media
      TRACKNUMBER     : 225
      TITLE           : FS225 Frontend von Judäa
      PUBLISHER       : Freak Show
      URL             : https://freakshow.fm
      DATE            : 2018
      GENRE           : Podcast
      ENCODED_BY      : auphonic.com
      ENCODED-BY      : auphonic.com
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
size=   89966kB time=04:11:04.29 bitrate=  48.9kbits/s speed=6.99e+03x
video:0kB audio:88833kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.275655%

comment:3 by Elon Musk, 5 years ago

Resolution: fixed
Status: openclosed
Note: See TracTickets for help on using tickets.