After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 738244 - qtdemux: add support for vorbis in MP4
qtdemux: add support for vorbis in MP4
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other All
: Normal enhancement
: 1.15.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-10-09 16:31 UTC by Matej Knopp
Modified: 2018-03-22 14:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch (4.33 KB, patch)
2014-10-09 16:31 UTC, Matej Knopp
none Details | Review
qtdemux: Handle variant of vorbis in mp4 (5.44 KB, patch)
2018-02-13 10:52 UTC, Edward Hervey
none Details | Review
qtdemux: Handle variant of vorbis in mp4 (5.80 KB, patch)
2018-02-13 15:18 UTC, Edward Hervey
committed Details | Review

Description Matej Knopp 2014-10-09 16:31:08 UTC
Created attachment 288144 [details] [review]
Patch

Apparently people mux vorbis in MP4 for some reason

Sample video:
https://s3.amazonaws.com/MatejK/Samples/Elektrolux%20UltraScilencer%20Green%20%E2%80%93%20Dammsugaren%20med%200%20markfriga%CC%8Ang.mp4
Comment 1 Edward Hervey 2018-02-13 10:52:29 UTC
Created attachment 368306 [details] [review]
qtdemux: Handle variant of vorbis in mp4

Comes from gpac apparently. The codec_data uses the same packing
mechanism as matroska.
Comment 2 Sebastian Dröge (slomo) 2018-02-13 14:07:07 UTC
Review of attachment 368306 [details] [review]:

::: gst/isomp4/qtdemux.c
@@ +13314,3 @@
+  guint *length, last;
+
+  GST_MEMDUMP ("xiph codec data", codec_data, codec_data_size);

Please parse the demuxer in here and use GST_MEMDUMP_OBJECT(), etc :)
Comment 3 Edward Hervey 2018-02-13 15:18:59 UTC
Created attachment 368317 [details] [review]
qtdemux: Handle variant of vorbis in mp4

Comes from gpac apparently. The codec_data uses the same packing
mechanism as matroska.
Comment 4 Sebastian Dröge (slomo) 2018-02-13 16:18:35 UTC
How is your patch different from Matej's in comment 0 though?
Comment 5 Edward Hervey 2018-02-13 16:41:13 UTC
I hadn't even noticed Matej had put a patch initally, I only saw the link to the buggy file *facepalm*.

 Anyway, it seems we both took the code from matroska-demux. I also added more checks for sizes and to be 100% sure it's really vorbis (and not something else using 0xDD which is a reserved type).
Comment 6 Edward Hervey 2018-03-22 14:26:46 UTC
commit d7038b9bb0d53e98f55a7df851223dd6aa117c0f (HEAD -> master, origin/master, origin/HEAD)
Author: Edward Hervey <edward@centricular.com>
Date:   Tue Feb 13 11:50:05 2018 +0100

    qtdemux: Handle variant of vorbis in mp4
    
    Comes from gpac apparently. The codec_data uses the same packing
    mechanism as matroska.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=738244