GNOME Bugzilla – Bug 306555
chain-based text rendering element
Last modified: 2005-07-01 16:53:16 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.
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
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.
Created attachment 47610 [details] [review] oops Above patch misses type registration for the subpicture stream type, which makes Totem crash. This adds it.
Created attachment 47611 [details] [review] re-add text subtitle support
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.
Created attachment 47614 [details] [review] update * use gst_buffer_stamp()
Created attachment 47987 [details] [review] script * add gst-dvd-2 script for testing
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.
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).
Created attachment 48004 [details] [review] additional core patch
applied.