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 591706 - [playbin2] Support of files with subtitle subpicture streams
[playbin2] Support of files with subtitle subpicture streams
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
0.10.24
Other All
: Normal normal
: 0.10.26
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on: 595123
Blocks:
 
 
Reported: 2009-08-13 15:54 UTC by Alex L. Mauer
Modified: 2009-11-12 12:29 UTC
See Also:
GNOME target: ---
GNOME version: 2.27/2.28


Attachments
A test file, demonstrating the problem with multiple subtitle tracks (535.19 KB, video/x-matroska)
2009-08-17 22:33 UTC, Alex L. Mauer
Details
The requested log file from totem (235.74 KB, application/x-bzip2)
2009-08-17 22:35 UTC, Alex L. Mauer
Details

Description Alex L. Mauer 2009-08-13 15:54:03 UTC
Please describe the problem:
Upon attempting to play an mkv file which contains both vobsub and srt subtitle tracks, totem reports: "An error occurred:  Can't play a text subtitles and subpictures."  

Steps to reproduce:
1. Create an mkv file with multiple subtitle tracks, at least vobsub and srt.
2. Open it in totem, and try to play it.


Actual results:
totem reports the above error, and does not play the video.

Expected results:
The video should play, and allow selection of either subtitle track

Does this happen every time?
Yes

Other information:
After the error, the video area of the screen does not refresh properly (menus appear to stay open)
Comment 1 Philip Withnall 2009-08-17 17:40:52 UTC
Could you attach a small example file which demonstrates this problem please? Could you also run Totem on the file with the following command, and attach the compressed log file which is generated?

GST_DEBUG=*:4 GST_DEBUG_NO_COLOR=1 totem --debug my_file.mkv &> totem.log
Comment 2 Alex L. Mauer 2009-08-17 22:33:09 UTC
Created attachment 141002 [details]
A test file, demonstrating the problem with multiple subtitle tracks
Comment 3 Alex L. Mauer 2009-08-17 22:35:38 UTC
Created attachment 141003 [details]
The requested log file from totem
Comment 4 Alex L. Mauer 2009-08-17 22:36:12 UTC
Please note that the embedded subtitles in the test file are not expected to match the movie.
Comment 5 Philip Withnall 2009-08-18 14:41:00 UTC
I suspect it's a problem because vobsub subtitles are essentially subpictures, and there isn't any support for playing subtitles and subpictures at the same time yet.

0:00:02.076421576 12276 0xb1d05cb8 DEBUG               playsink gstplaysink.c:1715:gst_play_sink_reconfigure:<playsink0> reconfiguring
0:00:02.076457545 12276 0xb1d05cb8 WARN                playsink gstplaysink.c:2034:gst_play_sink_reconfigure:<playsink0> error: Can't play a text subtitles and subpictures.
0:00:02.076474656 12276 0xb1d05cb8 WARN                playsink gstplaysink.c:2034:gst_play_sink_reconfigure:<playsink0> error: Have text pad and subpicture pad
0:00:02.076491208 12276 0xb1d05cb8 DEBUG            GST_MESSAGE gstelement.c:1731:gst_element_message_full:<playsink0> start
0:00:02.076531646 12276 0xb1d05cb8 INFO        GST_ERROR_SYSTEM gstelement.c:1762:gst_element_message_full:<playsink0> posting message: Can't play a text subtitles and subpictures.
0:00:02.076560491 12276 0xb1d05cb8 DEBUG                GST_BUS gstbus.c:308:gst_bus_post:<bus0> [msg 0xa333980] posting on bus, type error, GstMessageError, gerror=(GstGError)NULL, debug=(string)"gstplaysink.c\(2034\):\ gst_play_sink_reconfigure\ \(\):\ /GstPlayBin2:play/GstPlaySink:playsink0:\012Have\ text\ pad\ and\ subpicture\ pad"; from source <playsink0>
0:00:02.076595132 12276 0xb1d05cb8 DEBUG                    bin gstbin.c:2894:gst_bin_handle_message_func:<play> [msg 0xa333980] handling child playsink0 message of type error
0:00:02.076612243 12276 0xb1d05cb8 DEBUG                    bin gstbin.c:3165:gst_bin_handle_message_func:<play> posting message upward
0:00:02.076628516 12276 0xb1d05cb8 DEBUG                GST_BUS gstbus.c:308:gst_bus_post:<bus1> [msg 0xa333980] posting on bus, type error, GstMessageError, gerror=(GstGError)NULL, debug=(string)"gstplaysink.c\(2034\):\ gst_play_sink_reconfigure\ \(\):\ /GstPlayBin2:play/GstPlaySink:playsink0:\012Have\ text\ pad\ and\ subpicture\ pad"; from source <playsink0>
0:00:02.076663437 12276 0xb1d05cb8 DEBUG                GST_BUS gstbus.c:338:gst_bus_post:<bus1> [msg 0xa333980] pushing on async queue
0:00:02.076681176 12276 0xb1d05cb8 DEBUG                GST_BUS gstbus.c:343:gst_bus_post:<bus1> [msg 0xa333980] pushed on async queue
0:00:02.076698287 12276 0xb1d05cb8 DEBUG                GST_BUS gstbus.c:334:gst_bus_post:<bus0> [msg 0xa333980] dropped
0:00:02.076714421 12276 0xb1d05cb8 INFO        GST_ERROR_SYSTEM gstelement.c:1785:gst_element_message_full:<playsink0> posted error message: Can't play a text subtitles and subpictures.
Comment 6 Alex L. Mauer 2009-08-18 16:37:10 UTC
I'm sure you're right, but why is it even trying to?  Shouldn't it pick one or the other?
Comment 7 Tim-Philipp Müller 2009-08-18 16:47:51 UTC
It should, see bug #591662.
Comment 8 Sebastian Dröge (slomo) 2009-08-19 06:11:09 UTC
(In reply to comment #7)
> It should, see bug #591662.

Isn't this a dup of bug #591662 then? Nice to have a sample here though :)
Comment 9 Tim-Philipp Müller 2009-08-19 08:28:58 UTC
I guess you could mark it as duplicate, but I think of bug #591662 as the "don't be dumb" bug (don't error out, but proceed somehow) and think we'd still want a bug open to actually fix the actual issue so that all subtitles are available no matter what format they're in.
Comment 10 Sebastian Dröge (slomo) 2009-10-10 10:54:44 UTC
Updating the title to be more accurate... this should be fixed too when I've fixed bug #595123.
Comment 11 Sebastian Dröge (slomo) 2009-11-12 12:29:47 UTC
commit e91458f13caa92e5c3d15f67f1c0c8b0a23a5c33
Author: Sebastian Dröge <sebastian.droege@collabora.co.uk>
Date:   Tue Nov 3 12:47:55 2009 +0100

    playbin2: Set subtitle caps as raw caps for the uridecodebins

    This will make sure that no subparse is ever plugged and subtitleoverlay,
    that subpicture streams are handled the same was as subtitles and that
    subtitle renderers are used if available.

    Fixes bugs #595123, #570753, #591662, #591706.