<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<br>
<br>
<div class="moz-cite-prefix">Den 11.10.2024 21:04, skrev Andrew
Randrianasulu:<br>
</div>
<blockquote type="cite"
cite="mid:CA+rFky5S+ADPkkAkSRris6RGYFeAZSnzvwqzUn_Dw+yHEPTHFA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="auto">So, Terje, can you run your usual working ffmpeg
command encoding av1 via system fmmpeg/qsv but with added
<div dir="auto"><br>
</div>
<div dir="auto">-loglevel debug<br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">?</div>
<div dir="auto"><br>
</div>
<div dir="auto">and post full output here.</div>
<div dir="auto"><br>
</div>
<div dir="auto">Then we can set same loglevel in
bin/ffmpeg/encode.opts</div>
<div dir="auto"><br>
</div>
<div dir="auto">so we hopefully will spot difference in
parameters send down to line ...</div>
<div dir="auto"><br>
</div>
<div dir="auto">then we can try to make ffmpeg fail by adding
say -profile=main to ffmpeg's command line and see more
detailed error</div>
<div dir="auto"><br>
</div>
<div dir="auto">then hopefully we can tweak qsv_av1 profile back
into usability.</div>
<div dir="auto"><br>
</div>
<div dir="auto">Repeat for vp9/h264. </div>
</div>
</blockquote>
<br>
<br>
Andrew, I think use two input video examples<br>
1) SD-DV <br>
2) HDV <br>
<br>
Currently ffmpeg-7-7.0.2 on Tumbleweed-Slowroll (but have also
ffmpeg-7-7.1 on Leap if wanted)<br>
I use output.log file. For some reason the terminal output alone is
seemingly more verbose, and longer than I can scroll back to copy.<br>
<br>
1)<br>
<font face="Courier New, Courier, monospace">576i SD-DV ->
AV1_QSV at bv1570k<br>
--------------------------------<br>
ffmpeg -loglevel debug -hwaccel_output_format qsv -qsv_device
/dev/dri/renderD128 -i dv01_07.dv -c:v av1_qsv -preset 4 -b:v
1570k dv01_07_av1_qsv_pr4_bv1570k.webm > dv01_07_av1_qsv.log
2>&1<br>
<br>
cat dv01_07_av1_qsv.log<br>
ffmpeg version 7.0.2 Copyright (c) 2000-2024 the FFmpeg developers<br>
built with gcc 14 (SUSE Linux)<br>
configuration: --prefix=/usr --libdir=/usr/lib64
--shlibdir=/usr/lib64 --incdir=/usr/include/ffmpeg
--extra-cflags='-O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3
-fstack-protector-strong -funwind-tables
-fasynchronous-unwind-tables -fstack-clash-protection
-Werror=return-type -flto=auto -ffat-lto-objects -g'
--optflags='-O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3
-fstack-protector-strong -funwind-tables
-fasynchronous-unwind-tables -fstack-clash-protection
-Werror=return-type -flto=auto -ffat-lto-objects -g'
--disable-htmlpages --enable-pic --disable-stripping
--enable-shared --disable-static --enable-gpl --enable-version3
--enable-libsmbclient --disable-openssl --enable-gnutls
--enable-ladspa --enable-libshaderc --enable-vulkan
--enable-libplacebo --enable-libaom --enable-libass
--enable-libbluray --enable-libbs2b --enable-libcdio
--enable-libcodec2 --enable-libdav1d --enable-libdc1394
--enable-libdrm --enable-libfontconfig --enable-libfreetype
--enable-libfribidi --enable-libgsm --enable-libjack
--enable-libjxl --enable-librist --enable-libmp3lame
--enable-libmysofa --enable-libopenjpeg --enable-libopenmpt
--enable-libopenh264-dlopen --enable-libopus --enable-libpulse
--enable-librav1e --enable-librubberband --enable-libsvtav1
--enable-libsoxr --enable-libspeex --enable-libssh --enable-libsrt
--enable-libtheora --enable-libtwolame --enable-libvidstab
--enable-libvmaf --enable-libvorbis --enable-libvpx
--enable-libwebp --enable-libxml2 --enable-libzimg --enable-libzmq
--enable-libzvbi --enable-lto --enable-lv2 --enable-libvpl
--enable-vaapi --enable-vdpau --enable-version3
--enable-libfdk-aac-dlopen --enable-nonfree
--enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libvo-amrwbenc --enable-libx264 --enable-libx265
--enable-libxvid<br>
libavutil 59. 8.100 / 59. 8.100<br>
libavcodec 61. 3.100 / 61. 3.100<br>
libavformat 61. 1.100 / 61. 1.100<br>
libavdevice 61. 1.100 / 61. 1.100<br>
libavfilter 10. 1.100 / 10. 1.100<br>
libswscale 8. 1.100 / 8. 1.100<br>
libswresample 5. 1.100 / 5. 1.100<br>
libpostproc 58. 1.100 / 58. 1.100<br>
Splitting the commandline.<br>
Reading option '-loglevel' ... matched as option 'loglevel' (set
logging level) with argument 'debug'.<br>
Reading option '-hwaccel_output_format' ... matched as option
'hwaccel_output_format' (select output format used with HW
accelerated decoding) with argument 'qsv'.<br>
Reading option '-qsv_device' ... matched as option 'qsv_device'
(set QSV hardware device (DirectX adapter index, DRM path or X11
display name)) with argument '/dev/dri/renderD128'.<br>
Reading option '-i' ... matched as input url with argument
'dv01_07.dv'.<br>
Reading option '-c:v' ... matched as option 'c' (select
encoder/decoder ('copy' to copy stream without reencoding)) with
argument 'av1_qsv'.<br>
Reading option '-preset' ... matched as AVOption 'preset' with
argument '4'.<br>
Reading option '-b:v' ... matched as option 'b' (video bitrate
(please use -b:v)) with argument '1570k'.<br>
Reading option 'dv01_07_av1_qsv_pr4_bv1570k.webm' ... matched as
output url.<br>
Finished splitting the commandline.<br>
Parsing a group of options: global .<br>
Applying option loglevel (set logging level) with argument debug.<br>
Applying option qsv_device (set QSV hardware device (DirectX
adapter index, DRM path or X11 display name)) with argument
/dev/dri/renderD128.<br>
[AVHWDeviceContext @ 0x5570f626b440] libva: VA-API version 1.22.0<br>
[AVHWDeviceContext @ 0x5570f626b440] libva: User requested driver
'iHD'<br>
[AVHWDeviceContext @ 0x5570f626b440] libva: Trying to open
/usr/lib64/dri/iHD_drv_video.so<br>
[AVHWDeviceContext @ 0x5570f626b440] libva: Found init function
__vaDriverInit_1_22<br>
[AVHWDeviceContext @ 0x5570f626b440] libva: va_openDriver()
returns 0<br>
[AVHWDeviceContext @ 0x5570f626b440] Initialised VAAPI connection:
version 1.22<br>
[AVHWDeviceContext @ 0x5570f626b440] Format 0x41524742 -> bgra.<br>
[AVHWDeviceContext @ 0x5570f626b440] Format 0x41424752 -> rgba.<br>
[AVHWDeviceContext @ 0x5570f626b440] Format 0x58524742 -> bgr0.<br>
[AVHWDeviceContext @ 0x5570f626b440] Format 0x58424752 -> rgb0.<br>
[AVHWDeviceContext @ 0x5570f626b440] Format 0x30335241 ->
unknown.<br>
[AVHWDeviceContext @ 0x5570f626b440] Format 0x30334241 ->
unknown.<br>
[AVHWDeviceContext @ 0x5570f626b440] Format 0x30335258 ->
x2rgb10le.<br>
[AVHWDeviceContext @ 0x5570f626b440] Format 0x30334258 ->
unknown.<br>
[AVHWDeviceContext @ 0x5570f626b440] Format 0x36314752 ->
unknown.<br>
[AVHWDeviceContext @ 0x5570f626b440] Format 0x56555941 ->
unknown.<br>
[AVHWDeviceContext @ 0x5570f626b440] Format 0x56555958 -> vuyx.<br>
[AVHWDeviceContext @ 0x5570f626b440] Format 0x30303859 -> gray.<br>
[AVHWDeviceContext @ 0x5570f626b440] Format 0x3231564e -> nv12.<br>
[AVHWDeviceContext @ 0x5570f626b440] Format 0x3132564e ->
unknown.<br>
[AVHWDeviceContext @ 0x5570f626b440] Format 0x32595559 ->
yuyv422.<br>
[AVHWDeviceContext @ 0x5570f626b440] Format 0x59565955 ->
uyvy422.<br>
[AVHWDeviceContext @ 0x5570f626b440] Format 0x32315659 ->
yuv420p.<br>
[AVHWDeviceContext @ 0x5570f626b440] Format 0x30323449 ->
yuv420p.<br>
[AVHWDeviceContext @ 0x5570f626b440] Format 0x50313134 ->
yuv411p.<br>
[AVHWDeviceContext @ 0x5570f626b440] Format 0x48323234 ->
yuv422p.<br>
[AVHWDeviceContext @ 0x5570f626b440] Format 0x56323234 ->
yuv440p.<br>
[AVHWDeviceContext @ 0x5570f626b440] Format 0x50343434 ->
yuv444p.<br>
[AVHWDeviceContext @ 0x5570f626b440] Format 0x33434d49 ->
unknown.<br>
[AVHWDeviceContext @ 0x5570f626b440] Format 0x30313050 ->
p010le.<br>
[AVHWDeviceContext @ 0x5570f626b440] Format 0x32313050 ->
p012le.<br>
[AVHWDeviceContext @ 0x5570f626b440] Format 0x36313050 ->
unknown.<br>
[AVHWDeviceContext @ 0x5570f626b440] Format 0x30313259 ->
y210le.<br>
[AVHWDeviceContext @ 0x5570f626b440] Format 0x32313259 ->
y212le.<br>
[AVHWDeviceContext @ 0x5570f626b440] Format 0x36313259 ->
unknown.<br>
[AVHWDeviceContext @ 0x5570f626b440] Format 0x30313459 ->
xv30le.<br>
[AVHWDeviceContext @ 0x5570f626b440] Format 0x32313459 ->
xv36le.<br>
[AVHWDeviceContext @ 0x5570f626b440] Format 0x36313459 ->
unknown.<br>
[AVHWDeviceContext @ 0x5570f626b440] Format 0x50424752 ->
unknown.<br>
[AVHWDeviceContext @ 0x5570f626b440] Format 0x50524742 ->
unknown.<br>
[AVHWDeviceContext @ 0x5570f626b440] VAAPI driver: Intel iHD
driver for Intel(R) Gen Graphics - 24.3.4 ().<br>
[AVHWDeviceContext @ 0x5570f626b440] Driver not found in known
nonstandard list, using standard behaviour.<br>
[AVHWDeviceContext @ 0x5570f626b380] Use Intel(R) oneVPL to create
MFX session, API version is 2.13, the required implementation
version is 1.3<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>
[AVHWDeviceContext @ 0x5570f626b380] Initialize MFX session:
implementation version is 2.12<br>
Successfully parsed a group of options.<br>
Parsing a group of options: input url dv01_07.dv.<br>
Applying option hwaccel_output_format (select output format used
with HW accelerated decoding) with argument qsv.<br>
Successfully parsed a group of options.<br>
Opening an input file: dv01_07.dv.<br>
[AVFormatContext @ 0x5570f636eb00] Opening 'dv01_07.dv' for
reading<br>
[file @ 0x5570f64bf000] Setting default whitelist
'file,crypto,data'<br>
[dv @ 0x5570f636eb00] Format dv probed with size=2048 and score=75<br>
[dv @ 0x5570f636eb00] Before avformat_find_stream_info() pos: 0
bytes read:32768 seeks:0 nb_streams:1<br>
[dv @ 0x5570f636eb00] Probe buffer size limit of 5000000 bytes
reached<br>
[dv @ 0x5570f636eb00] Estimating duration from bitrate, this may
be inaccurate<br>
[dv @ 0x5570f636eb00] After avformat_find_stream_info() pos:
4752000 bytes read:4752000 seeks:0 frames:66<br>
Input #0, dv, from 'dv01_07.dv':<br>
Metadata:<br>
timecode : 01:09:35:09<br>
Duration: 00:01:53.28, start: 0.000000, bitrate: 28800 kb/s<br>
Stream #0:0, 33, 1/60000: Video: dvvideo, 1 reference frame,
yuv420p(topleft), 720x576 [SAR 16:15 DAR 4:3], 0/1, 28800 kb/s,
60k fps, 25 tbr, 60k tbn<br>
Stream #0:1, 33, 1/14112000: Audio: pcm_s16le, 48000 Hz, stereo,
s16, 1536 kb/s<br>
Successfully opened the file.<br>
Parsing a group of options: output url
dv01_07_av1_qsv_pr4_bv1570k.webm.<br>
Applying option c:v (select encoder/decoder ('copy' to copy stream
without reencoding)) with argument av1_qsv.<br>
Applying option b:v (video bitrate (please use -b:v)) with
argument 1570k.<br>
Successfully parsed a group of options.<br>
Opening an output file: dv01_07_av1_qsv_pr4_bv1570k.webm.<br>
[out#0/webm @ 0x5570f6367f40] No explicit maps, mapping streams
automatically...<br>
[vost#0:0/av1_qsv @ 0x5570f648d940] Created video stream from
input stream 0:0<br>
detected 20 logical cores<br>
[aost#0:1/libopus @ 0x5570f64d5b40] Created audio stream from
input stream 0:1<br>
File 'dv01_07_av1_qsv_pr4_bv1570k.webm' already exists. Overwrite?
[y/N] Not overwriting - exiting<br>
Error opening output file dv01_07_av1_qsv_pr4_bv1570k.webm.<br>
[AVIOContext @ 0x5570f64d2080] Statistics: 4752000 bytes read, 0
seeks<br>
<br>
<br>
<br>
<br>
</font><br>
</body>
</html>