[Cin] so, it looks like qsv integration a bit harder than just adding few lines ....

Andrew Randrianasulu randrianasulu at gmail.com
Wed Sep 25 23:22:13 CEST 2024


чт, 26 сент. 2024 г., 00:16 Terje J. Hanssen <terjejhanssen at gmail.com>:

>
>
> Den 25.09.2024 21:33, skrev Andrew Randrianasulu:
>
>
>
> ср, 25 сент. 2024 г., 18:25 Terje J. Hanssen <terjejhanssen at gmail.com>:
>
>>
>>
>> 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
>>
>
>
> make install > make_install.log 2>&1 ?
>
> Sorry. I should cleanup all ">" with Find & Replace in my note, and
> oversaw here should be two of them in this  command ;(
>
> Now make install went through without faults as I could see, but attach it
> by email again.
>
> But unhappily, no success with testing Cingg Qsv Rendering.
> All attempts so far breaks with the output below:
>
> FFMPEG::open_encoder  err: Internal bug, should not have happened
> int FFMPEG::open_encoder(const char*, const char*):
>
> ----------
> localhost:/home/cinelerra/cinelerra-5.1 # bin/cin
> Cinelerra Infinity - built: Sep 23 2024 10:31:07
> ----------
> 1)
> 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
>
> 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.
> --------------
> 2a)
> Loaded hdv09_04.m2t
> Render:
> Output to file: /Videoklipp/QSV/hdv09_04_h265_qsv.mp4
> File format: FFMPEG-mp4
>
> Compression: h265_qsv.mp4
> Pixels: qsv
>
> [hevc_qsv encoder @ 0x7f44e0d0bd80] [Eval @ 0x7f44e57eb6f0] Undefined
> constant or missing '(' in 'high'
> [hevc_qsv encoder @ 0x7f44e0d0bd80] Unable to parse option value "high"
> [hevc_qsv encoder @ 0x7f44e0d0bd80] Error setting option profile to value
> high.
> FFMPEG::open_encoder  err: Invalid argument
> int FFMPEG::open_encoder(const char*, const char*):
> open failed hevc_qsv:/Videoklipp/QSV/hdv09_04_h265_qsv.mp4
> Render::render_single: Session finished.
> ----------------
> 2b)
> Compression: h265_qsv.mp4
> Pixels: p010le
>
> [hevc_qsv encoder @ 0x7f93dcdb3c00] [Eval @ 0x7f93cbff06f0] Undefined
> constant or missing '(' in 'high'
> [hevc_qsv encoder @ 0x7f93dcdb3c00] Unable to parse option value "high"
> [hevc_qsv encoder @ 0x7f93dcdb3c00] Error setting option profile to value
> high.
> FFMPEG::open_encoder  err: Invalid argument
> int FFMPEG::open_encoder(const char*, const char*):
> open failed hevc_qsv:/Videoklipp/QSV/hdv09_04_h265_qsv.mp4
> Render::render_single: Session finished.
> ----------------
> 3a)
> Loaded hdv09_04.m2t
> Render:
> Output to file: /Videoklipp/QSV/hdv09_04_av1_qsv.mp4
> File format: FFMPEG-mp4
>
> Compression: av1_qsv.mp4
> Pixels: qsv
>
> FFMPEG::open_encoder  err: Internal bug, should not have happened
> int FFMPEG::open_encoder(const char*, const char*):
> open failed av1_qsv:/Videoklipp/QSV/hdv09_04_av1_qsv.mp4
> Render::render_single: Session finished.
> --------------
> 3b)
> Compression: av1_qsv.mp4
> Pixels: p010le
>
> [av1_qsv @ 0x7f1c302e7080] Current picture structure is unsupported
> [av1_qsv @ 0x7f1c302e7080] 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.mp4
> Render::render_single: Session finished.
> -----------------
> 4a)
> Loaded hd01.mov
> Render:
> Output to file: /Videoklipp/QSV/hdv09_04_h265_qsv.mp4
> File format: FFMPEG-mp4
>
> Compression: h265_qsv.mp4
> Pixels: qsv
>
> [hevc_qsv encoder @ 0x7f4b8d6f9ac0] [Eval @ 0x7f4b62ff66f0] Undefined
> constant or missing '(' in 'high'
> [hevc_qsv encoder @ 0x7f4b8d6f9ac0] Unable to parse option value "high"
> [hevc_qsv encoder @ 0x7f4b8d6f9ac0] Error setting option profile to value
> high.
> FFMPEG::open_encoder  err: Invalid argument
> int FFMPEG::open_encoder(const char*, const char*):
> open failed hevc_qsv:/Videoklipp/MOV/hd01_qsv.mp4
> Render::render_single: Session finished.
>

I think you can try to comment out (with #) line with
profile=high. in h265_qsv.mp4

You also probably can stick to yuv420p (if available) because qsv implies
image already in hw-specifuc format and ffmpeg does not do this conversion
for us


--------------------
> 4b)
> Compression: h265_qsv.mp4
> Pixels: yuyv422
>
> [hevc_qsv encoder @ 0x7f4ba4070f00] [Eval @ 0x7f4b5bff86f0] Undefined
> constant or missing '(' in 'high'
> [hevc_qsv encoder @ 0x7f4ba4070f00] Unable to parse option value "high"
> [hevc_qsv encoder @ 0x7f4ba4070f00] Error setting option profile to value
> high.
> FFMPEG::open_encoder  err: Invalid argument
> int FFMPEG::open_encoder(const char*, const char*):
> open failed hevc_qsv:/Videoklipp/MOV/hd01_qsv.mp4
> Render::render_single: Session finished.
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20240926/88076c48/attachment.htm>


More information about the Cin mailing list