<div dir="ltr"><div>Try to set vprofile instead of profile?</div><div><br></div><div>For invalid picture structure .. does it go away if you deinterlace video track?</div><div><br></div><div>i suspect that we should focus on one ffmpeg version that was working (7.0) instead of chasing new and improved breackage<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 23, 2024 at 2:49 AM Terje J. Hanssen <<a href="mailto:terjejhanssen@gmail.com">terjejhanssen@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div>
<br>
<br>
<br>
<div>Den 23.10.2024 00:18, skrev Andrew
Randrianasulu:<br>
</div>
<blockquote type="cite">
<div dir="auto">
<div><br>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">вт, 22 окт. 2024 г., 21:52
Terje J. Hanssen <<a href="mailto:terjejhanssen@gmail.com" target="_blank">terjejhanssen@gmail.com</a>>:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div> <br>
<br>
<br>
<div>Den 22.10.2024 17:04, skrev Andrew Randrianasulu:<br>
</div>
<blockquote type="cite">
<div dir="auto">
<div dir="auto"><br>
</div>
<div dir="auto">[snip]</div>
<div dir="auto">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<blockquote type="cite">
<blockquote type="cite">
<div dir="auto">
<div dir="auto"><br>
</div>
</div>
</blockquote>
<br>
Yes, thanks for the help. I used <br>
<br>
#export CFLAGS=-I/usr/include/ffmpeg<br>
<br>
and then the rest worked fine.<br>
<br>
Enough for me today !<br>
<br>
<br>
</blockquote>
<br>
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.<br>
<br>
But the same rendering from hdv does not
longer work, tried also with BT.709 setting.<br>
</div>
</blockquote>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">does ffmpeg 7.1 itself work for this
type of encoding and same input file ? </div>
</div>
</blockquote>
<br>
Yes, I tried three varants of ffmpeg codelines, and all
renderend hdv to av1_qsv.webm ok<br>
<br>
<br>
<blockquote type="cite">
<div dir="auto">
<div dir="auto">Do h264/hevc qsv encoders still
work?</div>
<div dir="auto"><br>
</div>
</div>
</blockquote>
No, I got the following Cingg output errors:<br>
</div>
</blockquote>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">looks like ffmpeg changed some parsing code :/</div>
<div dir="auto">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 :/</div>
</div>
</blockquote>
<br>
I got hevc_qsv to work both with uncommenting # profile and by
setting profile=0 and profile=1<br>
<br>
<font face="Courier New, Courier, monospace">libva info: VA-API
version 1.22.0<br>
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so<br>
libva info: Found init function __vaDriverInit_1_22<br>
libva info: va_openDriver() returns 0<br>
libva info: VA-API version 1.22.0<br>
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so<br>
libva info: Found init function __vaDriverInit_1_22<br>
libva info: va_openDriver() returns 0<br>
Render::render_single: Session finished.<br>
** rendered 5972 frames in 20.861 secs, 286.276 fps<br>
audio0 pad 64 0 (64)<br>
<br>
<br>
libva info: VA-API version 1.22.0<br>
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so<br>
libva info: Found init function __vaDriverInit_1_22<br>
libva info: va_openDriver() returns 0<br>
libva info: VA-API version 1.22.0<br>
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so<br>
libva info: Found init function __vaDriverInit_1_22<br>
libva info: va_openDriver() returns 0<br>
Render::render_single: Session finished.<br>
** rendered 5972 frames in 21.269 secs, 280.784 fps<br>
audio0 pad 64 0 (64)<br>
<br>
<br>
libva info: VA-API version 1.22.0<br>
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so<br>
libva info: Found init function __vaDriverInit_1_22<br>
libva info: va_openDriver() returns 0<br>
libva info: VA-API version 1.22.0<br>
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so<br>
libva info: Found init function __vaDriverInit_1_22<br>
libva info: va_openDriver() returns 0<br>
Render::render_single: Session finished.<br>
** rendered 5972 frames in 22.176 secs, 269.300 fps<br>
audio0 pad 64 0 (64)<br>
<br>
-----------------<br>
<br>
</font>But h264_qsv didn't work similar ..........<br>
<font face="Courier New, Courier, monospace"><br>
libva info: VA-API version 1.22.0<br>
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so<br>
libva info: Found init function __vaDriverInit_1_22<br>
libva info: va_openDriver() returns 0<br>
libva info: VA-API version 1.22.0<br>
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so<br>
libva info: Found init function __vaDriverInit_1_22<br>
libva info: va_openDriver() returns 0<br>
[h264_qsv @ 0x7f4108127880] Current picture structure is
unsupported<br>
[h264_qsv @ 0x7f4108127880] some encoding parameters are not
supported by the QSV runtime. Please double check the input
parameters.<br>
FFMPEG::open_encoder err: Function not implemented<br>
int FFMPEG::open_encoder(const char*, const char*):<br>
open failed h264_qsv:/Videoklipp/QSV/hdv09_04_h264_qsv.mp4<br>
Render::render_single: Session finished.<br>
<br>
<br>
libva info: VA-API version 1.22.0<br>
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so<br>
libva info: Found init function __vaDriverInit_1_22<br>
libva info: va_openDriver() returns 0<br>
libva info: VA-API version 1.22.0<br>
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so<br>
libva info: Found init function __vaDriverInit_1_22<br>
libva info: va_openDriver() returns 0<br>
[h264_qsv @ 0x7f40c03e6dc0] Current picture structure is
unsupported<br>
[h264_qsv @ 0x7f40c03e6dc0] some encoding parameters are not
supported by the QSV runtime. Please double check the input
parameters.<br>
FFMPEG::open_encoder err: Function not implemented<br>
int FFMPEG::open_encoder(const char*, const char*):<br>
open failed h264_qsv:/Videoklipp/QSV/hdv09_04_h264_qsv.mp4<br>
Render::render_single: Session finished.<br>
<br>
<br>
libva info: VA-API version 1.22.0<br>
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so<br>
libva info: Found init function __vaDriverInit_1_22<br>
libva info: va_openDriver() returns 0<br>
libva info: VA-API version 1.22.0<br>
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so<br>
libva info: Found init function __vaDriverInit_1_22<br>
libva info: va_openDriver() returns 0<br>
[h264_qsv @ 0x7f40b805bc80] Current picture structure is
unsupported<br>
[h264_qsv @ 0x7f40b805bc80] some encoding parameters are not
supported by the QSV runtime. Please double check the input
parameters.<br>
FFMPEG::open_encoder err: Function not implemented<br>
int FFMPEG::open_encoder(const char*, const char*):<br>
open failed h264_qsv:/Videoklipp/QSV/hdv09_04_h264_qsv.mp4<br>
Render::render_single: Session finished.<br>
<br>
<br>
[h264_qsv @ 0x7f40a4038880] [Eval @ 0x7f40d97f36d0] Undefined
constant or missing '(' in 'main'<br>
[h264_qsv @ 0x7f40a4038880] Unable to parse option value "main"<br>
[h264_qsv @ 0x7f40a4038880] Error setting option profile to value
main.<br>
FFMPEG::open_encoder err: Invalid argument<br>
int FFMPEG::open_encoder(const char*, const char*):<br>
open failed h264_qsv:/Videoklipp/QSV/hdv09_04_h264_qsv.mp4<br>
Render::render_single: Session finished.<br>
Total excess of backups: -50 <br>
Session time: 0:16:31<br>
Cpu time: user: 0:02:54.493 sys: 0:00:12.204<br>
</font><br>
<br>
<br>
<blockquote type="cite">
<div dir="auto">
<div dir="auto"><br>
</div>
<div dir="auto">thanks for testing .....</div>
<div dir="auto"><br>
</div>
<div dir="auto">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div> <br>
<br>
<font face="Courier New, Courier, monospace">[h264_qsv @
0x7f4c88107880] [Eval @ 0x7f4cb37f76d0] Undefined
constant or missing '(' in 'high'<br>
[h264_qsv @ 0x7f4c88107880] Unable to parse option
value "high"<br>
[h264_qsv @ 0x7f4c88107880] Error setting option
profile to value high.<br>
FFMPEG::open_encoder err: Invalid argument<br>
int FFMPEG::open_encoder(const char*, const char*):<br>
open failed
h264_qsv:/Videoklipp/QSV/hdv09_04_h264_qsv_nv12.mp4<br>
Render::render_single: Session finished.<br>
<br>
<br>
[hevc_qsv @ 0x7f4c8406b180] [Eval @ 0x7f4cb8ff26d0]
Undefined constant or missing '(' in 'main'<br>
[hevc_qsv @ 0x7f4c8406b180] Unable to parse option
value "main"<br>
[hevc_qsv @ 0x7f4c8406b180] Error setting option
profile to value main.<br>
FFMPEG::open_encoder err: Invalid argument<br>
int FFMPEG::open_encoder(const char*, const char*):<br>
open failed
hevc_qsv:/Videoklipp/QSV/hdv09_04_hevc_qsv_nv12.mp4<br>
Render::render_single: Session finished.<br>
</font><br>
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<br>
<br>
Have made a shortcut symlink /Cin<br>
<br>
<font face="Courier New, Courier, monospace">ls -l /Cin<br>
lrwxrwxrwx 1 root root 29 Oct 22 20:23 /Cin ->
/home/cinelerra/cinelerra-5.1<br>
<br>
localhost:/Cin/bin/ffmpeg/video # <br>
<br>
# ls *_qsv*<br>
av1_qsv.dfl av1_qsv.mp4 av1_qsv.webm h264_qsv.mp4
h265_qsv.mp4 hevc_qsv.mp4 vp9_qsv.mp4<br>
<br>
Here the h264/hevc qsv profiles contain:<br>
<br>
# cat h264_qsv.mp4<br>
mp4 h264_qsv<br>
# only usable with ext. ffmpeg<br>
profile=high<br>
cin_pix_fmt=nv12<br>
<br>
# cat hevc_qsv.mp4<br>
mp4 hevc_qsv<br>
# only usable with ext. ffmpeg, another pixfmt is
yuyv422<br>
profile=main<br>
cin_pix_fmt=nv12<br>
</font> <br>
<blockquote type="cite">
<div dir="auto">
<div dir="auto">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div> <br>
The current av1_qsv profiles contents are as
follows (tried to copy them from previous
ffmpeg 7.0.2 backup):<br>
<br>
<font face="Courier New, Courier, monospace">localhost:/home/cinelerra/cinelerra-5.1/bin/ffmpeg/video
# <br>
<br>
cat av1_qsv.dfl<br>
av1_qsv.webm<br>
<br>
cat av1_qsv.mp4<br>
mp4 av1_qsv<br>
# only usable with ext. ffmpeg<br>
cin_pix_fmt=nv12<br>
<br>
cat av1_qsv.webm<br>
webm av1_qsv<br>
# only usable with ext. ffmpeg<br>
cin_pix_fmt=nv12<br>
------------<br>
<br>
As shown in the Cingg output below:<br>
[av1_qsv @ 0x7f4788de7200] Current picture
structure is unsupported<br>
[av1_qsv @ 0x7f4788de7200] some encoding
parameters are not supported by the QSV
runtime. Please double check the input
parameters.<br>
FFMPEG::open_encoder err: Function not
implemented<br>
<br>
<br>
Output format and profile from system
ffmpeg 7.1 looks similar like from
previous 7.0.2<br>
<br>
ffmpeg -hide_banner -h encoder=av1_qsv |
egrep 'Supported|profile|main'<br>
Supported hardware devices: qsv qsv
qsv <br>
Supported pixel formats: nv12 p010le
qsv<br>
-profile <int>
E..V....... (from 0 to INT_MAX) (default
unknown)<br>
main 1
E..V.......<br>
<br>
Any idea what cause this hd(v) rendering
errors now in the built Cingg?<br>
<br>
<br>
# bin/cin<br>
Cinelerra Infinity - built: Oct 20 2024
21:21:06<br>
<br>
libva info: VA-API version 1.22.0<br>
libva info: Trying to open
/usr/lib64/dri/iHD_drv_video.so<br>
libva info: Found init function
__vaDriverInit_1_22<br>
libva info: va_openDriver() returns 0<br>
libva info: VA-API version 1.22.0<br>
libva info: Trying to open
/usr/lib64/dri/iHD_drv_video.so<br>
libva info: Found init function
__vaDriverInit_1_22<br>
libva info: va_openDriver() returns 0<br>
[av1_qsv @ 0x7f4788de7200] Current picture
structure is unsupported<br>
[av1_qsv @ 0x7f4788de7200] some encoding
parameters are not supported by the QSV
runtime. Please double check the input
parameters.<br>
FFMPEG::open_encoder err: Function not
implemented<br>
int FFMPEG::open_encoder(const char*,
const char*):<br>
open failed
av1_qsv:/Videoklipp/QSV/hdv09_04_av1_qsv_nv12.webm<br>
Render::render_single: Session finished.<br>
<br>
-----------------<br>
<br>
libva info: VA-API version 1.22.0<br>
libva info: Trying to open
/usr/lib64/dri/iHD_drv_video.so<br>
libva info: Found init function
__vaDriverInit_1_22<br>
libva info: va_openDriver() returns 0<br>
libva info: VA-API version 1.22.0<br>
libva info: Trying to open
/usr/lib64/dri/iHD_drv_video.so<br>
libva info: Found init function
__vaDriverInit_1_22<br>
libva info: va_openDriver() returns 0<br>
[av1_qsv @ 0x7f47b0040840] Current picture
structure is unsupported<br>
[av1_qsv @ 0x7f47b0040840] some encoding
parameters are not supported by the QSV
runtime. Please double check the input
parameters.<br>
FFMPEG::open_encoder err: Function not
implemented<br>
int FFMPEG::open_encoder(const char*,
const char*):<br>
open failed
av1_qsv:/Videoklipp/QSV/hdv09_04_av1_qsv_p010le.webm<br>
Render::render_single: Session finished.<br>
Total excess of backups: -50 <br>
Session time: 0:06:36<br>
Cpu time: user: 0:00:08.543 sys:
0:00:03.847<br>
unjoined tids / owner 2<br>
00007f47c5ffb6c0 / 00007f48377fe6c0
12RenderEngine<br>
00007f47c7fff6c0 / 00007f48377fe6c0
12RenderEngine<br>
<br>
<br>
<br>
<br>
</font><br>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
<br>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
<br>
</div>
</blockquote></div>