[Cin] Build Cingg-with-system-FFmpeg won't startup after upgrade to ffmpeg-7-7.1
Andrew Randrianasulu
randrianasulu at gmail.com
Wed Oct 23 00:18:01 CEST 2024
вт, 22 окт. 2024 г., 21:52 Terje J. Hanssen <terjejhanssen at gmail.com>:
>
>
>
> Den 22.10.2024 17:04, skrev Andrew Randrianasulu:
>
>
> [snip]
>
>>
>>
>> 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.
>>
>
> does ffmpeg 7.1 itself work for this type of encoding and same input file
> ?
>
>
> Yes, I tried three varants of ffmpeg codelines, and all renderend hdv to
> av1_qsv.webm ok
>
>
> Do h264/hevc qsv encoders still work?
>
> No, I got the following Cingg output errors:
>
looks like ffmpeg changed some parsing code :/
you can try to replace high/main words with numbers like 0,1 but .....it
will be sad if one set of profiles will not work for pre 7.1 and 7.1 :/
thanks for testing .....
>
> [h264_qsv @ 0x7f4c88107880] [Eval @ 0x7f4cb37f76d0] Undefined constant or
> missing '(' in 'high'
> [h264_qsv @ 0x7f4c88107880] Unable to parse option value "high"
> [h264_qsv @ 0x7f4c88107880] Error setting option profile to value high.
> FFMPEG::open_encoder err: Invalid argument
> int FFMPEG::open_encoder(const char*, const char*):
> open failed h264_qsv:/Videoklipp/QSV/hdv09_04_h264_qsv_nv12.mp4
> Render::render_single: Session finished.
>
>
> [hevc_qsv @ 0x7f4c8406b180] [Eval @ 0x7f4cb8ff26d0] Undefined constant or
> missing '(' in 'main'
> [hevc_qsv @ 0x7f4c8406b180] Unable to parse option value "main"
> [hevc_qsv @ 0x7f4c8406b180] Error setting option profile to value main.
> FFMPEG::open_encoder err: Invalid argument
> int FFMPEG::open_encoder(const char*, const char*):
> open failed hevc_qsv:/Videoklipp/QSV/hdv09_04_hevc_qsv_nv12.mp4
> Render::render_single: Session finished.
>
> I forgot to mention that I haven't applied specific patches to the last
> built based on ffmpeg 7.1, other than the copied profiles from previous
> built based on ffmpeg 7.0.2
>
> Have made a shortcut symlink /Cin
>
> ls -l /Cin
> lrwxrwxrwx 1 root root 29 Oct 22 20:23 /Cin ->
> /home/cinelerra/cinelerra-5.1
>
> localhost:/Cin/bin/ffmpeg/video #
>
> # ls *_qsv*
> av1_qsv.dfl av1_qsv.mp4 av1_qsv.webm h264_qsv.mp4 h265_qsv.mp4
> hevc_qsv.mp4 vp9_qsv.mp4
>
> Here the h264/hevc qsv profiles contain:
>
> # cat h264_qsv.mp4
> mp4 h264_qsv
> # only usable with ext. ffmpeg
> profile=high
> cin_pix_fmt=nv12
>
> # cat hevc_qsv.mp4
> mp4 hevc_qsv
> # only usable with ext. ffmpeg, another pixfmt is yuyv422
> profile=main
> cin_pix_fmt=nv12
>
>
>
>> 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
>>
>>
>>
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20241023/54d46673/attachment.htm>
More information about the Cin
mailing list