<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>1493</bug_id>
          
          <creation_ts>2024-01-31 10:54:26 +0100</creation_ts>
          <short_desc>GLMediaPlayer/GraphUI: Support Displaying Text/ASS Subtitles</short_desc>
          <delta_ts>2024-02-05 11:59:07 +0100</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>graph</component>
          <version>2.6.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>1492</dependson>
          <blocked>805</blocked>
          <everconfirmed>0</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          <cc>sgothel</cc>
          
          <cf_type>FEATURE</cf_type>
          <cf_scm_refs>6c67d73dc6b9e49bdd406902e533be91db1a3b0a
f92f72adef6abc76dce7eecf6c058e8d43d3add9
0f30aa0995aed0afa610efd49ab8f7ea26fa6db0
9aeff8cb3113729adcb5910061015a88ac827002
28e5b66e6e201259c6ad240552045314d2072595
c5bca1f0dba2540088e8e2a90d720fdbc4870b30
3e95c1994d363bc137ffcf548fd3751ac500ac7b
9a21e23b3296eb481bcb407d740e822ad11ac7cd
020f998cad685ce2267751196528b31ce939764c
020f998cad685ce2267751196528b31ce939764c
7928ed90104f71fb53ae8201b3140b8e347b83ee
4ba099b97df41be220c4b2816c728e6b8cc1b037
gluegen 36f595b37220976125222f7f5b3dbfc74df163e0
gluegen d9604cf4687c3f4e14967ee748749c784fd1578f
119a9bf8c474ec8d7db11235f90a3e266c911e1e</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>7078</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2024-01-31 10:54:26 +0100</bug_when>
    <thetext>Text/ASS &amp; Bitmap Subtitles shall be made available via FFMPEGMediaPlayer implementation and utilized via GraphUI MediaButton as well as via the full feature widget MediaPlayer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7079</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2024-01-31 10:58:58 +0100</bug_when>
    <thetext>Will address bitmap&apos;ed subtitles in a followup issue.

+++

commit 6c67d73dc6b9e49bdd406902e533be91db1a3b0a

    GLMediaPlayer/FFMPEGMediaPlayer: Add working subtitle (text + ass/saa) support via FFMpeg
    
    TODO:
    - We may want to refine subtitle PTS handling
    - We may want to support bitmapped subtitles

+++

commit f92f72adef6abc76dce7eecf6c058e8d43d3add9

    GraphUI MediaButton/MediaPlayer-Widget: Add working subtitle (text + ass/saa) support via GLMediaPlayer/FFMPEGMediaPlayer


+++

commit 0f30aa0995aed0afa610efd49ab8f7ea26fa6db0

    FFMPEGMediaPlayer (native): Set used sid to none if not selected (missed)

+++

commit 9aeff8cb3113729adcb5910061015a88ac827002

    FFMPEGMediaPlayer (native): Simplify subtitle handling in readNextPacket0()

+++

commit 28e5b66e6e201259c6ad240552045314d2072595

    GraphUI MediaButton: Clear cached subtitle data on uninit and init from GLMediaPlayer

+++

commit c5bca1f0dba2540088e8e2a90d720fdbc4870b30

    Cleanup GLMediaPlayer.EventMask.Bit handling in GLMediaEventListener implementations: Either Uninit, Init, Pause or Play (exclusive)


++

commit 3e95c1994d363bc137ffcf548fd3751ac500ac7b

    FFMPEGMediaPlayer/GraphUI MediaButton: AVSubtitles&apos;s start/end are relative to pts [ms] (fixed); Use ASSEventLine packets within proper pts only.


+++</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7082</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2024-01-31 11:02:34 +0100</bug_when>
    <thetext>commit 9a21e23b3296eb481bcb407d740e822ad11ac7cd (HEAD -&gt; jausoft_01)

    GraphUI MediaButton: Add blending below subtitle, allow setting color/blending and subLineDY; MediaPlayer: Add full infoLine toggle with click on infoBox</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7097</commentid>
    <comment_count>3</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2024-02-02 12:12:28 +0100</bug_when>
    <thetext>commit 020f998cad685ce2267751196528b31ce939764c (HEAD -&gt; jausoft_01, jordan/jausoft_01)

    Bug 1493 - Text/ASS Subtitle via MediaButton/MediaPlayer Alignment defaults to CenterHoriz, also support Left.
    
    MediaButton: Also cleanup local vars in layout</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7101</commentid>
    <comment_count>4</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2024-02-03 03:04:23 +0100</bug_when>
    <thetext>commit 020f998cad685ce2267751196528b31ce939764c (jordan/jausoft_01)

    Bug 1493 - Text/ASS Subtitle via MediaButton/MediaPlayer Alignment defaults to CenterHoriz, also support Left.
    
    MediaButton: Also cleanup local vars in layout

+++

commit 7928ed90104f71fb53ae8201b3140b8e347b83ee

    Bug 1493: Supply language code to SubtitleEvent, perhaps allowsing player to select font for ASS/Text rendering; Remove GLMediaPlayer&apos;s getStreamLang() as replaced by getLang()

+++

commit 4ba099b97df41be220c4b2816c728e6b8cc1b037

    Graph/GraphUI: Move getDefault*() to FontFactory and add {get,set}FallbackFont() + Font.getBestCoverage(..); Use fallback-font in MediaButton in case chosen font doesn&apos;t match (foreign languages, e.g. &apos;zho&apos; Chinese .. )</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7106</commentid>
    <comment_count>5</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2024-02-05 11:58:29 +0100</bug_when>
    <thetext>GlueGen:

commit 36f595b37220976125222f7f5b3dbfc74df163e0

    Adding StringUtil, containing basic utility functions as well as unicode space (whitespace) and full- and halfwidth tests.

+++

commit d9604cf4687c3f4e14967ee748749c784fd1578f 

    Rename StringUtil.strip() -&gt; StringUtil.trim(), refine API doc



+++</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7107</commentid>
    <comment_count>6</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2024-02-05 11:59:07 +0100</bug_when>
    <thetext>commit 119a9bf8c474ec8d7db11235f90a3e266c911e1e

    Bug 1493: Enhance Text/ASS subtitle layout: Split too wide text into multiple lines (max 4) fitting into box, trimming it beforehand
    
    Not always are Text/ASS subtitles well formed with newline character.
    Use new StringUtil to re-layout if their width doesn&apos;t fit into the box,
    by trimming all whitespace and splitting them into up-to 4 lines.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>