Nп/п : 21 из 100
 От   : Paul                                2:5075/128        08 сен 23 11:12:35
 К    : Yrrah                                                 08 сен 23 18:14:02
 Тема : Re: XnView MP and AVIF
----------------------------------------------------------------------------------
                                                                                 
@MSGID: 1@dont-email.me> 7a7c46c8
@REPLY: <ep4mfili5nder5sefiivb71fs0qcvt2d1d@net.com>
322bbc7c
@REPLYADDR Paul <nospam@needed.invalid>
@REPLYTO 2:5075/128 Paul
@CHRS: CP866 2
@RFC: 1 0
@RFC-Message-ID: 1@dont-email.me>
@RFC-References:
<urejfitcd5jsinvds2mmlf3dnshnl688ud@net.com> 1@dont-email.me>
<ep4mfili5nder5sefiivb71fs0qcvt2d1d@net.com>
@TZUTC: -0400
@PID: Ratcatcher/2.0.0.25 (Windows/20130802)
@TID: FIDOGATE-5.12-ge4e8b94
On 9/8/2023 8:27 AM, Yrrah wrote:
> Paul <nospam@needed.invalid>:

>> avifenc test.png test.avif
>>
>> Then, load test.avif into your tool that needs a test

> Makes no difference. XnView MP can`t load it and keeps me wondering
> why it can`t handle these files, contrary to the list of supported
> file formats. Perhaps only the Linux build has this problem.

> Yrrah


If you do "ldd" on the executable, does it list any
sort of "AVIF" library as a dependency ? Normally with
an image application (imagemagick), you expect to see
things like "libjpeg.so", "libpng.so", and so on, a
whole bunch of image formats as libraries.

But, maybe that`s just bad advice for the year 2023, the
year of "bodge everything".

*******

https://www.xnview.com/en/xnviewmp/

   https://download.xnview.com/XnViewMP-linux-x64.deb

   Name: XnViewMP-linux-x64.deb
   Size: 48,246,406 bytes (46 MiB)
   SHA1: AA9B1B374BFFD4D83BDD12F1CFE8487B8F537AE0

   XnViewMP-linux-x64.deb/data.tar/./opt/XnView/lib/imageformats/

      36128 libqgif.so      QT5 libraries...
      51744 libqicns.so
      38080 libqico.so
     461456 libqjpeg.so
      32872 libqsvg.so
      27728 libqtga.so
     521080 libqtiff.so
      27488 libqwbmp.so
     632088 libqwebp.so

   XnViewMP-linux-x64.deb/data.tar/./opt/XnView/lib/

   12023152 libffmpeg.so.6

"Does FFmpeg currently support AVIF?"

https://stackoverflow.com/questions/73030273/does-ffmpeg-currently-support-avif

   "Yes, AVIF muxing support was added on 13th May 2022 to the master branch.
    So you need a git build since that date. Or wait for v5.1 which
    should be out in a few days."  [Gyan]

Now, getting support in libffmpeg would only be part of the story,
because the software still has to recognize the format and pass it
to the FFMPEG library for conversion.

But for the other formats, there are discrete libraries included in the .deb .
And maybe using "ldd" on the main executable, would show what it has
for a library manifest. When we see libffmpeg, we don`t really know what
is being used for, because it has a tiny bit of functional overlap with
the other libraries.

Summary:

1) Modern enough version of libffmpeg.so . Libraries like that,
   may not be as "capable" as the entire application would be, and
   the person building the library, can exclude anything they want
   (like say, the ASCII Art library). That`s how you go from 90MB to 12MB.

2) Actual call in code, to trigger AVIF handling.

The format support list is here.

https://www.xnview.com/en/image_formats/

           Read     Write     File-Extension
    AVIF    Yes       No      avif

*******

Unpacked the TGZ. Moved the XnView binary into the lib folder, along
with my test.avif file.

   cd /home/bullwinkle/Downloads/XnView/lib

   LD_LIBRARY_PATH=/home/bullwinkle/Downloads/XnView/lib  ./XnView test.avif

Tells me this via a little toast dialog onscreen.

   "File can`t be loaded!"

In the launching terminal, it has printed out:

   my_error_exit...

*******

In an ldd check, there`s no reference to ffmpeg.

 b@T:~/Downloads/XnView/lib$
LD_LIBRARY_PATH=/home/bullwinkle/Downloads/XnView/lib ./XnView test.avif

 b@T:~/Downloads/XnView/lib$
LD_LIBRARY_PATH=/home/bullwinkle/Downloads/XnView/lib ldd ./XnView
linux-vdso.so.1 (0x00007ffe8b7bd000)
 liblibraw.so.1 => /home/bullwinkle/Downloads/XnView/lib/liblibraw.so.1
(0x00007efc04600000)
 libmdk.so.0 => /home/bullwinkle/Downloads/XnView/lib/libmdk.so.0
(0x00007efc04486000)
 libc++.so.1 => /home/bullwinkle/Downloads/XnView/lib/libc++.so.1
(0x00007efc043bd000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007efc049bc000)
libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007efc0427d000)
 libQt5MultimediaWidgets.so.5 =>
/home/bullwinkle/Downloads/XnView/lib/libQt5MultimediaWidgets.so.5 (0x00007efc04000000)
 libQt5PrintSupport.so.5 =>
/home/bullwinkle/Downloads/XnView/lib/libQt5PrintSupport.so.5 (0x00007efc03c00000)
 libQt5Svg.so.5 => /home/bullwinkle/Downloads/XnView/lib/libQt5Svg.so.5
(0x00007efc03800000)
 libQt5QuickWidgets.so.5 =>
/home/bullwinkle/Downloads/XnView/lib/libQt5QuickWidgets.so.5 (0x00007efc03400000)
 libQt5Widgets.so.5 =>
/home/bullwinkle/Downloads/XnView/lib/libQt5Widgets.so.5 (0x00007efc02a00000)
 libQt5Multimedia.so.5 =>
/home/bullwinkle/Downloads/XnView/lib/libQt5Multimedia.so.5 (0x00007efc02600000)
 libQt5X11Extras.so.5 =>
/home/bullwinkle/Downloads/XnView/lib/libQt5X11Extras.so.5 (0x00007efc02200000)
 libQt5Gui.so.5 => /home/bullwinkle/Downloads/XnView/lib/libQt5Gui.so.5
(0x00007efc01800000)
 libQt5Qml.so.5 => /home/bullwinkle/Downloads/XnView/lib/libQt5Qml.so.5
(0x00007efc01000000)
 libQt5Network.so.5 =>
/home/bullwinkle/Downloads/XnView/lib/libQt5Network.so.5 (0x00007efc00c00000)
 libQt5Concurrent.so.5 =>
/home/bullwinkle/Downloads/XnView/lib/libQt5Concurrent.so.5 (0x00007efc00800000)
 libQt5Xml.so.5 => /home/bullwinkle/Downloads/XnView/lib/libQt5Xml.so.5
(0x00007efc00400000)
 libQt5Core.so.5 => /home/bullwinkle/Downloads/XnView/lib/libQt5Core.so.5
(0x00007efbffa00000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007efc049b1000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007efc03f19000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007efc04991000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007efbff7d8000)
/lib64/ld-linux-x86-64.so.2 (0x00007efc049d7000)
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007efbff5ae000)
libpulse.so.0 => /lib/x86_64-linux-gnu/libpulse.so.0 (0x00007efc0493a000)
libasound.so.2 => /lib/x86_64-linux-gnu/libasound.so.2 (0x00007efc03afd000)
libGL.so.1 => /lib/x86_64-linux-gnu/libGL.so.1 (0x00007efc03e92000)
 libwayland-client.so.0 => /lib/x86_64-linux-gnu/libwayland-client.so.0
(0x00007efc04929000)
libgbm.so.1 => /lib/x86_64-linux-gnu/libgbm.so.1 (0x00007efc04918000)
libdrm.so.2 => /lib/x86_64-linux-gnu/libdrm.so.2 (0x00007efc04267000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007efc04262000)
libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007efc04238000)
 libQt5OpenGL.so.5 => /home/bullwinkle/Downloads/XnView/lib/libQt5OpenGL.so.5
(0x00007efbff200000)
 libpulse-mainloop-glib.so.0 =>
/lib/x86_64-linux-gnu/libpulse-mainloop-glib.so.0 (0x00007efc04232000)
libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007efc036c6000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007efc03e76000)
 libQt5Quick.so.5 => /home/bullwinkle/Downloads/XnView/lib/libQt5Quick.so.5
(0x00007efbfea00000)
 libQt5QmlModels.so.5 =>
/home/bullwinkle/Downloads/XnView/lib/libQt5QmlModels.so.5 (0x00007efbfe600000)
 libgssapi_krb5.so.2 => /lib/x86_64-linux-gnu/libgssapi_krb5.so.2
(0x00007efc03aa9000)
 libicui18n.so.56 => /home/bullwinkle/Downloads/XnView/lib/libicui18n.so.56
(0x00007efbfe000000)
 libicuuc.so.56 => /home/bullwinkle/Downloads/XnView/lib/libicuuc.so.56
(0x00007efbfdc00000)
 libicudata.so.56 => /home/bullwinkle/Downloads/XnView/lib/libicudata.so.56
(0x00007efbfc200000)
 libgthread-2.0.so.0 => /lib/x86_64-linux-gnu/libgthread-2.0.so.0
(0x00007efc0422b000)
 libpulsecommon-15.99.so =>
/usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-15.99.so (0x00007efc03641000)
libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007efc03a5b000)
 libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0
(0x00007efc03348000)
libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007efc03314000)
libffi.so.8 => /lib/x86_64-linux-gnu/libffi.so.8 (0x00007efc03634000)
 libwayland-server.so.0 => /lib/x86_64-linux-gnu/libwayland-server.so.0
(0x00007efc0361e000)
libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007efc032e3000)
libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007efc04221000)
libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007efc03616000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007efc0326d000)
libkrb5.so.3 => /lib/x86_64-linux-gnu/libkrb5.so.3 (0x00007efc02935000)
libk5crypto.so.3 => /lib/x86_64-linux-gnu/libk5crypto.so.3 (0x00007efc025d1000)
libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x00007efc03267000)
 libkrb5support.so.0 => /lib/x86_64-linux-gnu/libkrb5support.so.0
(0x00007efc02927000)
libsndfile.so.1 => /lib/x86_64-linux-gnu/libsndfile.so.1 (0x00007efc02552000)
libX11-xcb.so.1 => /lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007efc02922000)
libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007efc0248b000)
libasyncns.so.0 => /lib/x86_64-linux-gnu/libasyncns.so.0 (0x00007efc0291a000)
libapparmor.so.1 => /lib/x86_64-linux-gnu/libapparmor.so.1 (0x00007efc02476000)
libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007efc0245e000)
libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x00007efc02457000)
libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007efc02443000)
libFLAC.so.8 => /lib/x86_64-linux-gnu/libFLAC.so.8 (0x00007efc02407000)
libvorbis.so.0 => /lib/x86_64-linux-gnu/libvorbis.so.0 (0x00007efc021d3000)
 libvorbisenc.so.2 => /lib/x86_64-linux-gnu/libvorbisenc.so.2
(0x00007efc01755000)
libopus.so.0 => /lib/x86_64-linux-gnu/libopus.so.0 (0x00007efc02175000)
libogg.so.0 => /lib/x86_64-linux-gnu/libogg.so.0 (0x00007efc0216a000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007efc0213f000)
libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x00007efc01686000)
liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007efc00fe0000)
libcap.so.2 => /lib/x86_64-linux-gnu/libcap.so.2 (0x00007efc00fd5000)
libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007efc00ac2000)
libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0 (0x00007efc00fc8000)
 libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0
(0x00007efc00a9c000)
b@T:~/Downloads/XnView/lib$

 I need something in this software to tell me it`s using the
libffmpeg.so.6 file.

  Paul

--- Ratcatcher/2.0.0.25 (Windows/20130802)
 * Origin: A noiseless patient Spider (2:5075/128)
SEEN-BY: 5001/100 5005/49 5015/255 5019/40 5020/715
848 1042 4441 12000
SEEN-BY: 5030/49 1081 5058/104 5075/128
@PATH: 5075/128 5020/1042 4441



   GoldED+ VK   │                                                 │   09:55:30    
                                                                                
В этой области больше нет сообщений.

Остаться здесь
Перейти к списку сообщений
Перейти к списку эх