Den 20.10.2024 22:27, skrev Terje J. Hanssen:



Den 20.10.2024 20:59, skrev Andrew Randrianasulu:


вс, 20 окт. 2024 г., 21:55 Terje J. Hanssen <[email protected]>:




    Den 20.10.2024 18:53, skrev Andrew Randrianasulu:


    вс, 20 окт. 2024 г., 19:33 Terje J. Hanssen
    <[email protected]>:




        Den 19.10.2024 19:03, skrev Andrew Randrianasulu:


        сб, 19 окт. 2024 г., 19:53 Terje J. Hanssen
        <[email protected]>:

            Continued from another thread:

            Re: [Cin] another set of test profiles
            Den 18.10.2024 02:08, skrev Andrew Randrianasulu:
            чт, 17 окт. 2024 г., 15:06 Terje J. Hanssen
            <[email protected]>:
            If we get available a packaged Cingg test build
            (rpm/Leap for me), it would be more useful to do this
            test. Then I have available three gen. Intel, legacy
            Skylake/Kabylake iGPUs and current DG2/Arc GPU. I
            also have/had a Nvidia GPU on Skylake, but it looks
            like it past away.
            I think you can build rpm yourself, but for this we
            need to update spec file, so it will point at new
            source and add openvpl as requirements.

            In meantime you can just make your own appimage from
            just build cingg-with-system-ffmpeg, so it hopefully
            will not be lost after few system updates.


            Well, first:
            After my ffmpeg upgrade from v. 7.0.2 to the awaited v.
            7.1 on Slowroll yesterday, my "just build "
            cingg-with-system-ffmpeg won't startup.
            Apparently Cingg also has to be rebuilt or upgraded to
            the new ffmpeg 7.1 family version, as it claims at
            startup attempt:

            /home/cinelerra/cinelerra-5.1 #

            # bin/cin
            bin/cin: /lib64/libswscale.so.8: version
            `LIBSWSCALE_8.1_SUSE' not found (required by bin/cin)
            bin/cin: /lib64/libswresample.so.5: version
            `LIBSWRESAMPLE_5.1_SUSE' not found (required by bin/cin)
            bin/cin: /lib64/libavfilter.so.10: version
            `LIBAVFILTER_10.1_SUSE' not found (required by bin/cin)
            bin/cin: /lib64/libavcodec.so.61: version
            `LIBAVCODEC_61.3_SUSE' not found (required by bin/cin)
            bin/cin: /lib64/libavformat.so.61: version
            `LIBAVFORMAT_61.1_SUSE' not found (required by bin/cin)
            bin/cin: /lib64/libavutil.so.59: version
            `LIBAVUTIL_59.8_SUSE' not found (required by bin/cin)


            Verify the installed packages that now provide the
            missing lib files

            # zypper se -f /lib64/libswscale.so.8
            /lib64/libswresample.so.5 /lib64/libavfilter.so.10
            /lib64/libavcodec.so.61 /lib64/libavformat.so.61
            /lib64/libavutil.so.59
            Loading repository data...
            Reading installed packages...


            S  | Name           | Summary | Type
            
---+----------------+--------------------------------------------------------------+--------
            i+ | libavcodec61   | FFmpeg codec library | package
            i  | libavfilter10  | FFmpeg audio and video filtering
            library | package
            i+ | libavformat61  | FFmpeg's stream format library |
            package
            i+ | libavutil59    | FFmpeg's utility library | package
            i+ | libswresample5 | FFmpeg software resampling
            library | package
            i  | libswscale8    | FFmpeg image scaling and
            colorspace/pixel conversion library | package


            and to verify the new versions:

            # zypper se -is libavcodec61 libavfilter10
            libavformat61 libavutil59 libswresample5 libswscale8
            Loading repository data...
            Reading installed packages...


            S  | Name                 | Type    | Version         |
            Arch   | Repository
            
---+----------------------+---------+-----------------+--------+-----------
            i+ | libavcodec61         | package | 7.1-1699.6.pm.1 |
            x86_64 | Packman
            i  | libavcodec61-32bit   | package | 7.1-1699.6.pm.1 |
            x86_64 | Packman
            i  | libavfilter10        | package | 7.1-1699.6.pm.1 |
            x86_64 | Packman
            i+ | libavformat61        | package | 7.1-1699.6.pm.1 |
            x86_64 | Packman
            i+ | libavutil59          | package | 7.1-1699.6.pm.1 |
            x86_64 | Packman
            i  | libavutil59-32bit    | package | 7.1-1699.6.pm.1 |
            x86_64 | Packman
            i+ | libswresample5       | package | 7.1-1699.6.pm.1 |
            x86_64 | Packman
            i  | libswresample5-32bit | package | 7.1-1699.6.pm.1 |
            x86_64 | Packman
            i  | libswscale8          | package | 7.1-1699.6.pm.1 |
            x86_64 | Packman


            My question is which steps (back) to rebuild Cingg for
            the new ffmpeg 7.1 ?



        yeah, fragility of system build.

        make sure you have working qsv/vaapi profiles in some safe
        dir away from cinelerra-5.1

        cd cinelerra-5.1

        as always, note configure parameters you used

        head config.log

        copy command line ( ./configure ... ) into some easy to
        open document

        make clean

        ./autogen.sh

        paste configure line you copied to easy to find document
        before.

        ./configure --with-single-user --disable-static-build
        --without-thirdparty --without-libdpx


        OR

        enter new configure line with all needed switches < they
        start with "--" >  (for example if you patched source with
        my libvpl.patch)

        make

        Unhappily I got several fatal errors like:

            ffmpeg.h:48:10: fatal error: libavformat/avformat.h: No
            such file or directory
               48 | #include "libavformat/avformat.h"
                  | ^~~~~~~~~~~~~~~~~~~~~~~~
            compilation terminated.


        During the testinstalls of ffmpeg 7.1 first from obs: and
        lastly from Packman, I had to deinstall several packages due
        to dependice errors.
        So I think there may be some missing packages. I tried to
        add ffmpeg


    you can try to locate libavformat either by pkg-config

    pkg-config --cflags libavformat


    or find /usr -name avformat.h

    then add CFLAGS=-I/path_to_dir_where_avformat dir_located/ and
    re-run ./configure and make.

    last time it was something like /usr/include/ffmpeg

    Yes, thanks - it is the same location this time, but it still
    doesn't cleanup make

    localhost:/home/cinelerra/cinelerra-5.1 #

    # pkg-config --cflags libavformat
    -I/usr/include/ffmpeg
    Rendering to av1_qsv.mp4 worked
    # CFLAGS=-I/usr/include/ffmpeg



you probably need to set it by adding export command before CFLAGS or add CFLAGS part on the same line where you run configure

Yes, thanks for the help. I used

 #export CFLAGS=-I/usr/include/ffmpeg

and then the rest worked fine.

Enough for me today !



This rebuild cingg to use ffmpeg 7.1 startup ok and testing DV rendering to  av1_qsv_nv12.mp4, av1_qsv_nv12.webm and also av1_qsv_p010le.webm work.

But the same rendering from hdv does not longer work, tried also with BT.709 setting.

The current av1_qsv profiles contents are as follows (tried to copy them from previous ffmpeg 7.0.2 backup):

localhost:/home/cinelerra/cinelerra-5.1/bin/ffmpeg/video #

cat av1_qsv.dfl
av1_qsv.webm

cat av1_qsv.mp4
mp4 av1_qsv
# only usable with ext. ffmpeg
cin_pix_fmt=nv12

cat av1_qsv.webm
webm av1_qsv
# only usable with ext. ffmpeg
cin_pix_fmt=nv12
------------

As shown in the Cingg output below:
[av1_qsv @ 0x7f4788de7200] Current picture structure is unsupported
[av1_qsv @ 0x7f4788de7200] some encoding parameters are not supported by the QSV runtime. Please double check the input parameters.
FFMPEG::open_encoder  err: Function not implemented


Output format and profile from system ffmpeg 7.1 looks similar like from previous 7.0.2

ffmpeg -hide_banner -h encoder=av1_qsv | egrep 'Supported|profile|main'
    Supported hardware devices: qsv qsv qsv
    Supported pixel formats: nv12 p010le qsv
  -profile           <int>        E..V....... (from 0 to INT_MAX) (default unknown)
     main            1            E..V.......

Any idea what cause this hd(v) rendering errors now in the built Cingg?


# bin/cin
Cinelerra Infinity - built: Oct 20 2024 21:21:06

libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
[av1_qsv @ 0x7f4788de7200] Current picture structure is unsupported
[av1_qsv @ 0x7f4788de7200] some encoding parameters are not supported by the QSV runtime. Please double check the input parameters.
FFMPEG::open_encoder  err: Function not implemented
int FFMPEG::open_encoder(const char*, const char*):
open failed av1_qsv:/Videoklipp/QSV/hdv09_04_av1_qsv_nv12.webm
Render::render_single: Session finished.

-----------------

libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
[av1_qsv @ 0x7f47b0040840] Current picture structure is unsupported
[av1_qsv @ 0x7f47b0040840] some encoding parameters are not supported by the QSV runtime. Please double check the input parameters.
FFMPEG::open_encoder  err: Function not implemented
int FFMPEG::open_encoder(const char*, const char*):
open failed av1_qsv:/Videoklipp/QSV/hdv09_04_av1_qsv_p010le.webm
Render::render_single: Session finished.
Total excess of backups: -50
Session time: 0:06:36
Cpu time: user: 0:00:08.543 sys: 0:00:03.847
unjoined tids / owner 2
  00007f47c5ffb6c0 / 00007f48377fe6c0 12RenderEngine
  00007f47c7fff6c0 / 00007f48377fe6c0 12RenderEngine




-- 
Cin mailing list
[email protected]
https://lists.cinelerra-gg.org/mailman/listinfo/cin

Reply via email to