<?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>1420</bug_id>
          
          <creation_ts>2020-01-03 02:24:58 +0100</creation_ts>
          <short_desc>Enable FFmpeg 4, 5 and 6 in FFMPEGMediaPlayer and allow loading provided libs (option)</short_desc>
          <delta_ts>2023-02-25 18:21:38 +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>video</component>
          <version>2.5.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>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          <cc>maxime-jogamp</cc>
          
          <cf_type>DEFECT</cf_type>
          <cf_scm_refs>2be7001101dbb16e5264c9c38b9764ba1e39ab5c
2ecf00d7733c473358b652c50b83cb95f65174ff</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>6496</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2020-01-03 02:24:58 +0100</bug_when>
    <thetext>Currently our FFMPEGMediaPlayer only supports FFmpeg up to version 3.

Support using the current FFmpeg version 4.*,
which is used in Debian-10 and other distributions today.

+++

Also take care of optional non-system ffmpeg libraries,
potential packaged w/ JogAmp. 
For this, we should provide a choice via properties and 
allow loading an internal library name upfront, e.g. &apos;internal_avutil&apos;.
This will also resolve Bug 1356.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6498</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2020-01-03 02:26:35 +0100</bug_when>
    <thetext>*** Bug 1356 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6499</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2020-01-03 02:33:48 +0100</bug_when>
    <thetext>jogl commit 2be7001101dbb16e5264c9c38b9764ba1e39ab5c

Bug 1420: Add FFMpeg 4.* versioned lib-names and provide optional internal lib lookup
    
New property &apos;jogl.ffmpeg.lib&apos; may be set to &apos;internal&apos;,
setting PREFER_SYSTEM_LIBS:=false (default it true)
    
Non system internal libraries are named &apos;internal_&lt;basename&gt;&apos;,
e.g. &apos;internal_avutil&apos;.
    
System default libraries are named &apos;&lt;basename&gt;&apos;,
e.g. &apos;avutil&apos;.
    
If PREFER_SYSTEM_LIBS is true (default),
we lookup the default library first,
then the versioned library names and last the internal library.
    
If PREFER_SYSTEM_LIBS is false,
we lookup the internal library first,
then the versioned library names and last the default library.

+++

TODO: Resolve FFmpeg 4.* API differences to previous 3.* version.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6767</commentid>
    <comment_count>3</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2023-02-25 18:21:14 +0100</bug_when>
    <thetext>commit 2ecf00d7733c473358b652c50b83cb95f65174ff
Date:   Thu Feb 23 22:18:39 2023 +0100

    FFMPEGMediaPlayer: Add implementation update for FFmpeg version 4.* (Debian 11), 5.* (Debian 12) and 6.* (Current Development trunk)
    
    From here on, libav support has been dropped.
    
    Required FFmpeg libraries to be fully matched by their major runtime- and compiletime-versions are:
    - avcodec
    - avformat
    - avutil
    - swresample
    
    Library avdevice is optional and only used for video input devices (camera).
    
    Library avresample has been removed, since FFmpeg dropped it as well in version 6.*
    and swresample is preferred for lower versions.
    
    The matching major-versions of each library to the FFmpeg version
    is documented within FFMPEGMediaPlayer class API-doc.
    
    Each implementation version uses the non-deprecated FFmpeg code-path
    and compilation using matching header files is warning-free.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>