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 696244 - qtdemux: send GAP events for subtitles, handle subtitles with SBLT subtype
qtdemux: send GAP events for subtitles, handle subtitles with SBLT subtype
Status: VERIFIED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other All
: Normal normal
: 1.1.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-03-21 01:59 UTC by Matej Knopp
Modified: 2013-03-23 11:38 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to recognize SBTL subtype (2.28 KB, patch)
2013-03-21 02:00 UTC, Matej Knopp
committed Details | Review
Patch to ignore empty subtitle buffer (1.66 KB, patch)
2013-03-21 02:01 UTC, Matej Knopp
committed Details | Review
Path to send GAP events (2.08 KB, patch)
2013-03-21 02:01 UTC, Matej Knopp
committed Details | Review
Additional patch to make recognition of empty subtitles buffer more robust (1.73 KB, patch)
2013-03-23 04:11 UTC, Matej Knopp
committed Details | Review

Description Matej Knopp 2013-03-21 01:59:39 UTC
1. qtdemux doesn't recognize SBLT subtype. SBLT is used by handbrake and subler and is recognized by quicktime player.

2. qtdemux should ignore empty subtitle buffers. Those can be send to end previous buffer, but gstreamer has duration set on it so another buffer is not really necessary. Also it doesn't handle empty buffers (len = 2) well which results in sending garbage as data.

3. qtdemux doesn't send GAP event for subtitle streams.
Comment 1 Matej Knopp 2013-03-21 02:00:15 UTC
Created attachment 239432 [details] [review]
Patch to recognize SBTL subtype
Comment 2 Matej Knopp 2013-03-21 02:01:12 UTC
Created attachment 239433 [details] [review]
Patch to ignore empty subtitle buffer
Comment 3 Matej Knopp 2013-03-21 02:01:44 UTC
Created attachment 239434 [details] [review]
Path to send GAP events
Comment 4 Tim-Philipp Müller 2013-03-21 10:06:41 UTC
Looks fine, thanks for the patches! Pushed:


commit 49d9050e9ac829b685d2e999b2805132d1c181f7
Author: Matej Knopp <matej.knopp@gmail.com>
Date:   Thu Mar 21 02:55:06 2013 +0100

    qtdemux: send GAP events for subtitle streams
    
    https://bugzilla.gnome.org/show_bug.cgi?id=696244

commit 516a0b8acb423c16fd207ac2463c261f869f9f4f
Author: Matej Knopp <matej.knopp@gmail.com>
Date:   Thu Mar 21 02:53:24 2013 +0100

    qtdemux: ignore empty subtitle buffers
    
    https://bugzilla.gnome.org/show_bug.cgi?id=696244

commit f494635126b6a1ae5c240b70e0f7c58a2ba1c35e
Author: Matej Knopp <matej.knopp@gmail.com>
Date:   Thu Mar 21 02:52:07 2013 +0100

    qtdemux: recognize SBTL subtype for subtitles
    
    https://bugzilla.gnome.org/show_bug.cgi?id=696244


I'm not sure if I have a sample file for these though, any chance you could make one available somewhere or point me to one?
Comment 5 Matej Knopp 2013-03-23 04:11:33 UTC
Created attachment 239605 [details] [review]
Additional patch to make recognition of empty subtitles buffer more robust

For possibly misbehaving streams that don't include text length.
Comment 6 Matej Knopp 2013-03-23 04:33:25 UTC
I'll provide sample file tomorrow, or you can test #696437 :)