------------ skip
-------------
In short, I have tested the same SD-DV 576i and HDV 1080i video files as with SVT-AV1 (CPU based) in another resent post.
ffmpeg -hide_banner -hwaccel qsv -qsv_device /dev/dri/renderD128 -i dv01_07.dv -c:v av1_qsv -preset 4 dv01_07_av1_qsv_pr4.webm....skip
frame= 2832 fps=2106 q=-0.0 Lsize= 10554KiB time=00:01:53.24 bitrate= 763.5kbits/s speed=84.2x
fmpeg -hide_banner -hwaccel qsv -qsv_device /dev/dri/renderD128 -i hdv09_04.m2t -c:v av1_qsv -preset 4 hdv09_04.m2t_av1_qsv_pr4.webm
frame= 5913 fps=700 q=-0.0 Lsize= 48022KiB time=00:03:58.77 bitrate=1647.6kbits/s dup=0 drop=4 speed=28.3x
A warning output in both command lines is:
[vist#0:0/dvvideo @ 0x556a3f679100] WARNING: defaulting hwaccel_output_format to qsv for compatibility with old commandlines. This behaviour is DEPRECATED and will be removed in the future. Please explicitly set "-hwaccel_output_format qsv".I tried to add this without success, so suggestion is welcome !?
And possibly suggestions regarding the more seriously errors "Cannot allocate memory" that arised from the second command transcoding the hdv file?
well, you tried to add -extra_hw_frames 16 for example to your ffmpeg line? I think mpeg2 is not most popular input codec nowadays ....
.I attach also the "complete" ffmpeg output FWIW for both files, though skipping repeated error lines:
ffmpeg -hide_banner -hwaccel qsv -qsv_device /dev/dri/renderD128 -i dv01_07.dv -c:v av1_qsv -preset 4 dv01_07_av1_qsv_pr4.webm
........skip
frame= 2832 fps=2106 q=-0.0 Lsize= 10554KiB time=00:01:53.24 bitrate= 763.5kbits/s speed=84.2xbitrate= 763.5kbits/s
sounds a bit low even for av1, so may be try to set -b to some higher value as suggested?
====
av1_qsv @ 0x556a3f653040] Using the constant quantization parameter (CQP) by default. Please use the global_quality option and other options for a quality-based mode or the b option and other options for a bitrate-based mode if the default is not the desired choice.
====
SVT-AV1:
ffmpeg -hide_banner -i dv01_07.dv -c:v libsvtav1 -preset 4 -crf 35 -c:a libvorbis dv01_07_svt-av1_pr4.webm
frame= 2832 fps= 50 q=35.0 Lsize= 24159KiB time=00:01:53.24 bitrate=1747.7kbits/s speed= 2x
AV1_QSV:
ffmpeg -hide_banner -hwaccel_output_format qsv -qsv_device /dev/dri/renderD128 -i dv01_07.dv -c:v av1_qsv -preset 4 -b:v 1570k -crf 35 -c:a libvorbis dv01_07_av1_qsv_pr4_b1570k.webm
frame= 2832 fps=1891 q=-0.0 Lsize= 24166KiB time=00:01:53.24 bitrate=1748.2kbits/s speed=75.6x
389M dv01_07.dv
24M dv01_07_svt-av1_pr4.webm
24M dv01_07_av1_qsv_pr4_b1557k.webm
SVT-AV1:
ffmpeg -hide_banner -i hdv09_04.m2t -c:v libsvtav1 -preset 4 -crf 35 -c:a libvorbis hdv09_04_svt-av1_pr4.webm
frame= 5963 fps= 24 q=35.0 Lsize= 113663KiB time=00:03:58.77 bitrate=3899.6kbits/s speed=0.948x
AV1_QSV:
ffmpeg -hide_banner -hwaccel_output_format qsv -qsv_device /dev/dri/renderD128 -extra_hw_frames 16 -i hdv09_04.m2t -c:v av1_qsv -preset 4 -b:v 3700k hdv09_04_av1_qsv_pr4_bv3700k.webm
frame= 5963 fps=482 q=-0.0 Lsize= 113271KiB time=00:03:58.77 bitrate=3886.1kbits/s speed=19.3x
745M hdv09_04.m2t------------------
111M hdv09_04_svt-av1_pr4.webm
111M hdv09_04_av1_qsv_pr4_bv3700k.webm