You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

调试elementary Videos #32问题:ClutterGST仅加载同名外部字幕

Debugging elementary Videos Issue #32: External Subtitles Only Load When Filename Matches Video

I'm currently working through issue #32 in elementary Videos, where external subtitle files refuse to load unless their filename exactly matches the corresponding video file (ignoring file extensions). Here's a breakdown of what I've found so far:

Key Observations

  • When calling ClutterGst.Playback.set_subtitle_uri, subtitles only successfully load if the subtitle file shares the exact base name as the video. For example, video.mp4 will load video.srt, but won't recognize video_subs.srt even when the correct URI is passed.
  • Oddly enough, passing a non-existent file path to this method doesn't trigger any error messages—no warnings, no exceptions, nothing to indicate the path is invalid.
  • The subtitle-uri signal is consistently triggered every time set_subtitle_uri is called, regardless of whether the subtitle file exists or matches the video's filename.

GStreamer 1.0 Baseline Check

This behavior doesn't stem from GStreamer 1.0 itself. I ran multiple tests using gst-launch commands, and in every case, external subtitles loaded correctly even when their filenames didn't match the video's. This confirms the issue is specific to how elementary Videos is implementing ClutterGst.Playback, not the underlying multimedia framework.

Reproduction Resource

To help isolate the problem, I've put together a minimal, simplified code example that reproduces the exact behavior described. This example focuses solely on the ClutterGst.Playback subtitle handling logic, making it easier to pinpoint where the implementation is breaking down.


内容的提问来源于stack exchange,提问作者Peter Uithoven

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 09:31:47