<?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>1173</bug_id>
          
          <creation_ts>2015-07-09 12:17:15 +0200</creation_ts>
          <short_desc>GLMediaPlayer: EOS not reported for FFMPEG video</short_desc>
          <delta_ts>2023-07-12 01:34:10 +0200</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>video</component>
          <version>2.5.0</version>
          <rep_platform>pc_all</rep_platform>
          <op_sys>windows</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>---</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>1216</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Alan Sambol">alan.zgb</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          <cc>alan.zgb</cc>
    
    <cc>gouessej</cc>
    
    <cc>kdropucic</cc>
          
          <cf_type>DEFECT</cf_type>
          <cf_scm_refs></cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>4771</commentid>
    <comment_count>0</comment_count>
    <who name="Alan Sambol">alan.zgb</who>
    <bug_when>2015-07-09 12:17:15 +0200</bug_when>
    <thetext>When using MovieSimple test demo, GLMediaEventListener doesn&apos;t getGLMediaEventListener.EVENT_CHANGE_EOS event on end of stream. Other events (pause, play, etc) are reported normally. Currently I don&apos;t see a way to detect video end, except counting frames which is impractical.

Another, possibly related issue is that when playing any MP3 file using GLMediaPlayer (STREAM_ID_NONE for video), EOS _is_ reported, but about 10 seconds before the track end.

FFmpeg version: 2014-01-15 git-785dc14
  libavutil      52. 62.100 / 52. 62.100
  libavcodec     55. 48.101 / 55. 48.101
  libavformat    55. 23.103 / 55. 23.103
  libavdevice    55.  5.102 / 55.  5.102
  libavfilter     4.  1.100 /  4.  1.100
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4772</commentid>
    <comment_count>1</comment_count>
    <who name="Alan Sambol">alan.zgb</who>
    <bug_when>2015-07-09 12:19:14 +0200</bug_when>
    <thetext>A simple way to test this is to seek to a few seconds before video end. On end, the video just stops, even though it should restart:

                if( 0 != ( GLMediaEventListener.EVENT_CHANGE_EOS &amp; event_mask ) ) {
                    new Thread() {
                        public void run() {
                            // loop for-ever ..
                            mPlayer.seek(0);
                            mPlayer.play();
                        } }.start();
                }</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4773</commentid>
    <comment_count>2</comment_count>
    <who name="Julien Gouesse">gouessej</who>
    <bug_when>2015-07-09 13:15:37 +0200</bug_when>
    <thetext>Please can you use a more recent version version of FFMPEG with JOGL 2.3.1?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5082</commentid>
    <comment_count>3</comment_count>
    <who name="Kruno Dropucic">kdropucic</who>
    <bug_when>2015-09-05 14:48:51 +0200</bug_when>
    <thetext>Hi, we tried with the latest 20150905-git-a87ada5 FFmpeg version, but the problem remains. JOGL version is 2.3.1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5083</commentid>
    <comment_count>4</comment_count>
    <who name="Kruno Dropucic">kdropucic</who>
    <bug_when>2015-09-05 16:09:43 +0200</bug_when>
    <thetext>When using Libav (tested with http://builds.libav.org/windows/release-gpl/libav-11.3-win64.7z) instead of FFmpeg EOS is detected and everything works ok, so the problem probably lies in Java wrapper or in FFmpeg itself.

The problem still persists for us because our application is deployed on Windows platform where usage of FFmpeg instead of Libav is advised by your code comments.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6148</commentid>
    <comment_count>5</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2019-03-30 02:45:22 +0100</bug_when>
    <thetext>(In reply to Kruno Dropucic from comment #4)
&gt; When using Libav (tested with
&gt; http://builds.libav.org/windows/release-gpl/libav-11.3-win64.7z) instead of
&gt; FFmpeg EOS is detected and everything works ok, so the problem probably lies
&gt; in Java wrapper or in FFmpeg itself.
&gt; 
&gt; The problem still persists for us because our application is deployed on
&gt; Windows platform where usage of FFmpeg instead of Libav is advised by your
&gt; code comments.

Yes, FFMPEG usage is recommended. 
Will need to test all our ffmpeg binding / GLMediaPlayer issued for version 2.4.0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6794</commentid>
    <comment_count>6</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2023-07-12 01:34:10 +0200</bug_when>
    <thetext>Resolved with last FFmpeg / GLMediaPlayer updates</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>