Den 25.09.2024 00:27, skrev Andrew Randrianasulu:
try this git patch, do not forgot to make install again, or put profiles in bin/ffmpeg/video folder manually.

# cd /home/cinelerra/cinelerra-5.1
# mv /home/terje/0001-Qsv-encoders-for-testing.patch .

# git am 0001-Qsv-encoders-for-testing.patch
Applying: Qsv encoders for testing


make install > make_install.log 2&1
[1] 21180
 1: command not found
localhost:/home/cinelerra/cinelerra-5.1 # make: *** No rule to make target '2'.  Stop.
^C
[1]+  Exit 2                  make install 2 > make_install.log

attach make_install.log with an email.


Qsv test 1:
-----------------

localhost:/home/cinelerra/cinelerra-5.1 # bin/cin
Cinelerra Infinity - built: Sep 23 2024 10:31:07

Loaded hdv09_04.m2t
Render:
Output to file: /Videoklipp/QSV/hdv09_04_h264_qsv.mp4
File format: FFMPEG-mp4
Compression: h264_qsv.mp4
Pixels: qsv

Cingg render error:
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_21
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_21
libva info: va_openDriver() returns 0
FFMPEG::open_encoder  err: Internal bug, should not have happened
int FFMPEG::open_encoder(const char*, const char*):
open failed h264_qsv:/Videoklipp/QSV/hdv09_04_h264_qsv.mp4
Render::render_single: Session finished.



ср, 25 сент. 2024 г., 01:02 Andrew Randrianasulu <[email protected]>:



    ср, 25 сент. 2024 г., 00:55 Terje J. Hanssen
    <[email protected]>:



        Den 24.09.2024 22:20, skrev Andrew Randrianasulu via Cin:
        >
        > got answer from ffmpeg devs
        >
        >
        https://ffmpeg.org//pipermail/ffmpeg-devel/2024-September/333906.html
        >
        >
        >

        But will it be hard to enable Cingg "presets" to utilize
        hwaccels like
        QSV decoding/encoding via the unbundled built via QSV-enabled
        system FFmpeg?



    you can try to copy vaapi profiles under new name, then replace
    codec_vaapi for codec_qsv and see how it goes .... I just did the
    same for mediacodec, seems to work but unsure if you need
    additional patch I have in tree here ...



        ffmpeg -hide_banner -codecs | grep qsv
          DEV.L. av1                  Alliance for Open Media AV1
        (decoders:
        libdav1d libaom-av1 av1 av1_cuvid av1_qsv) (encoders: libaom-av1
        librav1e libsvtav1 av1_nvenc av1_qsv av1_amf av1_vaapi)
        DEV.LS <http://DEV.LS> h264                 H.264 / AVC /
        MPEG-4 AVC / MPEG-4 part 10
        (decoders: h264 h264_v4l2m2m h264_qsv libopenh264 h264_cuvid)
        (encoders:
        libx264 libx264rgb libopenh264 h264_amf h264_nvenc h264_qsv
        h264_v4l2m2m
        h264_vaapi)
          DEV.L. hevc                 H.265 / HEVC (High Efficiency Video
        Coding) (decoders: hevc hevc_qsv hevc_v4l2m2m hevc_cuvid)
        (encoders:
        libx265 hevc_amf hevc_nvenc hevc_qsv hevc_v4l2m2m hevc_vaapi)
          DEVIL. mjpeg                Motion JPEG (decoders: mjpeg
        mjpeg_cuvid
        mjpeg_qsv) (encoders: mjpeg mjpeg_qsv mjpeg_vaapi)
          DEV.L. mpeg2video           MPEG-2 video (decoders: mpeg2video
        mpegvideo mpeg2_v4l2m2m mpeg2_qsv mpeg2_cuvid) (encoders:
        mpeg2video
        mpeg2_qsv mpeg2_vaapi)
          D.V.L. vc1                  SMPTE VC-1 (decoders: vc1 vc1_qsv
        vc1_v4l2m2m vc1_cuvid)
          DEV.L. vp8                  On2 VP8 (decoders: vp8
        vp8_v4l2m2m libvpx
        vp8_cuvid vp8_qsv) (encoders: libvpx vp8_v4l2m2m vp8_vaapi)
          DEV.L. vp9                  Google VP9 (decoders: vp9
        vp9_v4l2m2m
        libvpx-vp9 vp9_cuvid vp9_qsv) (encoders: libvpx-vp9 vp9_vaapi
        vp9_qsv)


        Applied decoding benchmarks examples from
        https://trac.ffmpeg.org/wiki/Hardware/QuickSync#Decode-only

        ffmpeg -hide_banner -hwaccel_output_format qsv -c:v hevc_qsv -i
        h265_yuv420p+opus.mp4 -f null -
        frame= 1781 fps=1745 q=-0.0 Lsize=N/A time=00:01:11.24
        bitrate=N/A
        speed=69.8x

        ffmpeg -hide_banner -hwaccel_output_format qsv -c:v hevc_qsv -i
        h265_yuv422p10le_SR.mp4 -f null -
        frame= 1779 fps=1351 q=-0.0 Lsize=N/A time=00:01:11.16
        bitrate=N/A
        speed=54.1x






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

Reply via email to