Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
gst-plugins-base
gst-plugins-base
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 633
    • Issues 633
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 101
    • Merge Requests 101
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GStreamer
  • gst-plugins-basegst-plugins-base
  • Issues
  • #741

Closed
Open
Opened Apr 02, 2020 by Mateus Rodrigues Costa@MateusRodCosta

After updating the tags of a opus file several times with Picard and EasyTAG, opusdec refuses to pick up updated metadata

This was initially reported as a bug on tracker extract, however it was pointed out that tracker-extract uses opusdec to get the metadata and I was pointed to this project.

System info:

Arch Linux 64-bits

gstreamer 1.16.2-1, gst-plugins-base 1.16.2-1, gst-plugins-base-libs 1.16.2-1

Basically, I recently decicded to have my music library as opus. So, for that I convert from flac to opus with this command: parallel opusenc --music --bitrate 128 {} {.}.opus ::: *.flac. At some point of the process I have to do things such as remove unwanted comments (which I do with EasyTAG) and update several tags (which I do with Picard); it just happens that for several of these songs I actually do the tags updates after the conversion. Problem now is that after a number of updates to the metadata, it seems that opusdec doesn't pick the new metadata at all.

The current metadata of the file according to ffprobe is:

[ogg @ 0x55cf08bec940] 1 bytes of comment header remain
Input #0, ogg, from '01. NiGHTS.opus':
  Duration: 00:04:21.01, start: -0.960000, bitrate: 230 kb/s
    Stream #0:0: Audio: opus, 48000 Hz, stereo, fltp
    Metadata:
      GENRE           : Game
      MUSICBRAINZ_RELEASEGROUPID: 5e22979b-2ef2-46a2-b8ae-c1b57371077d
      ORIGINALDATE    : 1996-07-10
      ORIGINALYEAR    : 1996
      RELEASETYPE     : album;soundtrack
      MUSICBRAINZ_ALBUMID: 0acf9e25-a4a1-4abf-bf1b-79e3beeaf016
      MUSICBRAINZ_ALBUMARTISTID: 8e986c66-2429-49a2-a32b-4ad3de114929;c77a7890-dc0e-4c5d-a7b4-96baa462c251;14b9c7f5-2c35-41ef-b389-764b0452b027
      album_artist    : Tomoko Sasaki, Naofumi Hataya & Fumie Kumatani
      ALBUMARTISTSORT : Sasaki, Tomoko, Hataya, Naofumi & Kumatani, Fumie
      RELEASECOUNTRY  : JP
      RELEASESTATUS   : official
      ALBUM           : NiGHTS Original Soundtrack
      ENGINEER        : Meiji Takamatsu
      PRODUCER        : Hiroki Horio;Yukifumi Makino;Tsuneo Satou
      ASIN            : B00005FMZ8
      LABEL           : PolyGram
      CATALOGNUMBER   : POCX-1038
      DATE            : 1996-07-10
      BARCODE         : 4988005183149
      SCRIPT          : Latn
      TOTALDISCS      : 1
      MEDIA           : CD
      TOTALTRACKS     : 24
      disc            : 1
      MUSICBRAINZ_TRACKID: 04e3bb69-fd64-42ef-8403-7b816882cd48
      MUSICBRAINZ_ARTISTID: 8e986c66-2429-49a2-a32b-4ad3de114929
      ARTIST          : Tomoko Sasaki
      ARTISTSORT      : Sasaki, Tomoko
      ARTISTS         : Tomoko Sasaki
      ISRC            : JPX300830810
      TITLE           : NiGHTS
      MUSICBRAINZ_RELEASETRACKID: 407897eb-67e0-4fb4-9806-c69ac7085208
      track           : 1
      TRACKTOTAL      : 24
      DISCTOTAL       : 1
    Stream #0:1: Video: png, rgba(pc), 940x935 [SAR 3780:3780 DAR 188:187], 90k tbr, 90k tbn, 90k tbc (attached pic)
    Metadata:
      comment         : Cover (front)

And the metadata according to opusdec is:

[mateusrc@delart NiGHTS Original Soundtrack]$ gst-launch-1.0 --tags filesrc location=/archive/Music/NiGHTS\ Original\ Soundtrack/01.\ NiGHTS.opus  ! decodebin ! fakesink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
FOUND TAG      : found by element "fakesink0".
application name: opusenc from opus-tools 0.2
extended comment: ENCODER_OPTIONS=--music --bitrate 128
                : MUSICBRAINZ_RELEASEGROUPID=5e22979b-2ef2-46a2-b8ae-c1b57371077d
                : ORIGINALDATE=1996-07-10
                : ORIGINALYEAR=1996
                : RELEASETYPE=album
                : RELEASETYPE=soundtrack
                : BARCODE=4988005183149
                : ASIN=B00005FMZ8
                : RELEASESTATUS=official
                : SCRIPT=Latn
                : ENGINEER=高松明治
                : PRODUCER=堀尾裕樹
                : PRODUCER=牧野幸文
                : PRODUCER=佐藤恒夫
                : LABEL=PolyGram
                : CATALOGNUMBER=POCX-1038
                : RELEASECOUNTRY=JP
                : MEDIA=CD
                : ARTISTS=佐々木朋子
                : MUSICBRAINZ_RELEASETRACKID=407897eb-67e0-4fb4-9806-c69ac7085208
         comment: http://<snip>
           genre: Game Soundtrack
    organization: PolyGram
           image: buffer of 1194438 bytes, type: image/png
        album ID: 0acf9e25-a4a1-4abf-bf1b-79e3beeaf016
        datetime: 1996-07-10
 album artist ID: 8e986c66-2429-49a2-a32b-4ad3de114929
    album artist: 佐々木朋子, 幡谷尚史 & 熊谷文恵
album artist sortname: Sasaki, Tomoko, Hataya, Naofumi & Kumatani, Fumie
           album: NiGHTS Original Soundtrack
      disc count: 1
     track count: 24
     disc number: 1
        track ID: 04e3bb69-fd64-42ef-8403-7b816882cd48
       artist ID: 8e986c66-2429-49a2-a32b-4ad3de114929
          artist: Tomoko Sasaki
 artist sortname: Sasaki, Tomoko
            ISRC: JPX300830810
           title: NiGHTS
    track number: 1
         encoder: libopus 1.3.1, libopusenc 0.2.1
     audio codec: Opus
FOUND TAG      : found by element "fakesink0".
container format: Ogg
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Got EOS from element "pipeline0".
Execution ended after 0:00:00.956047753
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

Notice how things differ in such way that opusdec still sees the comment, the genre hasn't been updated and some of the artists names are still in Japanese characters.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: gstreamer/gst-plugins-base#741