[Bug 752850] New: User-supplied metadata tags are not reported by matroskademux.

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Jul 24 17:26:51 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=752850

            Bug ID: 752850
           Summary: User-supplied metadata tags are not reported by
                    matroskademux.
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-good
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: grd at loganmill.net
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

User-supplied metadata tags are not reported by matroskademux: they are not
available on the bus.

Easily reproducible with gst-launch.  First, create an mkv with some metadata
tags (note: setting streamable to true seems to be required, see Bug 752847 ):


gst-launch-1.0 -e videotestsrc ! taginject
tags=title=Hello,comment=world,artist=sally ! matroskamux streamable=true !
filesink location=x.mkv


The title, artist, and comment tags are clearly added to the mkv, as shown by
mkvinfo:

mkvinfo x.mkv
+ EBML head
|+ Doc type: matroska
|+ Doc type version: 2
|+ Doc type read version: 2
+ Segment, size unknown
|+ Tags
| + Tag
|  + Targets
|   + TrackUID: 9875838076303193444
|  + Simple
|   + Name: TITLE
|   + String: Hello
|  + Simple
|   + Name: COMMENTS
|   + String: world
|  + Simple
|   + Name: ARTIST
|   + String: sally
|+ Segment information
| + Segment UID: 0x39 0x55 0xb0 0xa1 0x60 0x57 0x97 0xe7 0xef 0x50 0x28 0x36
0x27 0x29 0x51 0x24
| + Timecode scale: 1000000
| + Muxing application: GStreamer matroskamux version 1.5.2.1
| + Writing application: GStreamer Matroska muxer
| + Date: Sat Jul 25 00:13:52 2015 UTC
|+ Segment tracks
| + A track
|  + Track number: 1 (track ID for mkvmerge & mkvextract: 0)
|  + Track type: video
|  + Track UID: 9875838076303193444
|  + Default duration: 33.333ms (30.000 frames/fields per second for a video
track)
|  + Name: Video
|  + Video track
|   + Pixel width: 320
|   + Pixel height: 240
|   + Colour space: length 4, data: 0x49 0x34 0x32 0x30
|  + Codec ID: V_UNCOMPRESSED
|+ Cluster

...avplay sees the tags:

$ avplay x.mkv
avplay version 9.16-6:9.16-0ubuntu0.14.04.1+fdkaac, Copyright (c) 2003-2014 the
Libav developers
  built on Aug 11 2014 23:12:18 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
[matroska,webm @ 0x7f8868005c60] Estimating duration from bitrate, this may be
inaccurate
Input #0, matroska,webm, from 'x.mkv':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0.0(eng): Video: rawvideo, yuv420p, 320x240, PAR 1:1 DAR 4:3, 30
fps, 30 tbr, 1k tbn (default)
    Metadata:
      TITLE           : Hello
      COMMENTS        : world
      ARTIST          : sally


...but matroskademux, at least according go 'gst-launch -t', does not:


gst-launch-1.0 -t filesrc location=./x.mkv ! matroskademux ! fakesink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
FOUND TAG      : found by element "fakesink0".
container format: Matroska
FOUND TAG      : found by element "fakesink0".
     video codec: Uncompressed planar YUV 4:4:4
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Got EOS from element "pipeline0".
Execution ended after 0:00:00.286344133
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

...Same results using playbin:

$ gst-launch-1.0 -t playbin uri=file:///tmp/x.mkv 
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
FOUND TAG      : found by element "videosink-actual-sink-xvimage".
container format: Matroska
FOUND TAG      : found by element "videosink-actual-sink-xvimage".
     video codec: Uncompressed planar YUV 4:4:4
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list