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 306555 - chain-based text rendering element
chain-based text rendering element
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins
git master
Other Linux
: Normal enhancement
: 0.8.11
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-06-05 14:45 UTC by Ronald Bultje
Modified: 2005-07-01 16:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (16.34 KB, patch)
2005-06-05 14:46 UTC, Ronald Bultje
none Details | Review
second patch (13.39 KB, patch)
2005-06-11 12:35 UTC, Ronald Bultje
none Details | Review
oops (14.17 KB, patch)
2005-06-11 12:55 UTC, Ronald Bultje
none Details | Review
re-add text subtitle support (14.68 KB, patch)
2005-06-11 13:14 UTC, Ronald Bultje
none Details | Review
fixes (14.89 KB, patch)
2005-06-11 14:07 UTC, Ronald Bultje
none Details | Review
update (16.34 KB, patch)
2005-06-11 14:29 UTC, Ronald Bultje
none Details | Review
script (33.50 KB, patch)
2005-06-19 11:29 UTC, Ronald Bultje
none Details | Review
fixes (36.25 KB, patch)
2005-06-19 13:36 UTC, Ronald Bultje
none Details | Review
final (42.69 KB, patch)
2005-06-19 15:39 UTC, Ronald Bultje
none Details | Review
additional core patch (824 bytes, patch)
2005-06-19 15:40 UTC, Ronald Bultje
none Details | Review

Description Ronald Bultje 2005-06-05 14:45:39 UTC
This is a chain-based pango-rendering for text->bitmap, which can be used in
combination with imagemixer (#166783) to do the same that textoverlay does now.
The nice thing is that this allows for bitmap-subtitles on the long run, too.
Comment 1 Ronald Bultje 2005-06-05 14:46:05 UTC
Created attachment 47272 [details] [review]
patch

gst-launch { filesrc location=/tmp/American_Pie_2_(Versie_1).srt ! subparse !
queue name=q } filesrc
location=/home/rbultje/samples/movies/world_of_warcraft_m480.ogg ! oggdemux !
theoradec ! queue ! { imagemixer name=i ! ffmpegcolorspace ! ximagesink q. !
textrender font-desc=Sans Bold 20 ! i.subpicture_sink_%d } -v
Comment 2 Ronald Bultje 2005-06-11 12:35:05 UTC
Created attachment 47606 [details] [review]
second patch

This needs to be installed in addition to the above. It will enable subtitles
for DVDs. Didn't test text subtitles yet, so probably needs more work.

There's a hack in the preroll for the subpicture pads where we add a timeout;
this is needed because the pads only receive fillers after the first data. I'll
try to fix that sometime soon.

"gst-launch playbin uri=dvd://" now works.
Comment 3 Ronald Bultje 2005-06-11 12:55:53 UTC
Created attachment 47610 [details] [review]
oops

Above patch misses type registration for the subpicture stream type, which
makes Totem crash. This adds it.
Comment 4 Ronald Bultje 2005-06-11 13:14:42 UTC
Created attachment 47611 [details] [review]
re-add text subtitle support
Comment 5 Ronald Bultje 2005-06-11 14:07:07 UTC
Created attachment 47612 [details] [review]
fixes

* fix some state issues with textrender setup
* text subtitles tested and working again now

This should be ready to commit.
Comment 6 Ronald Bultje 2005-06-11 14:29:22 UTC
Created attachment 47614 [details] [review]
update

* use gst_buffer_stamp()
Comment 7 Ronald Bultje 2005-06-19 11:29:03 UTC
Created attachment 47987 [details] [review]
script

* add gst-dvd-2 script for testing
Comment 8 Ronald Bultje 2005-06-19 13:36:14 UTC
Created attachment 47992 [details] [review]
fixes

Changes:
* fix for broken event emission on menus in dvdnav
* fix for broken name check for dvd events in dvddemux
* enable synchronizing in dvddemux even when PTM is missing

Means:
* first still frame works in totem. Since we don't EOS removed pads,
group-switch still hangs, but that can probably be fixed.
Comment 9 Ronald Bultje 2005-06-19 15:39:12 UTC
Created attachment 48003 [details] [review]
final

* fix group switching in playbin. When using fakesink as audiosink, it now
fully works. We'll have to fix clock progressing when no data is passed before
applying. Requires a core patch (see separately).
Comment 10 Ronald Bultje 2005-06-19 15:40:05 UTC
Created attachment 48004 [details] [review]
additional core patch
Comment 11 Ronald Bultje 2005-07-01 16:53:16 UTC
applied.