[Cin] FFmpeg supported QSV pixel formats and profiles

Terje J. Hanssen terjejhanssen at gmail.com
Sun Oct 13 23:15:41 CEST 2024


Den 13.10.2024 22:09, skrev Andrew Randrianasulu:
> OW!
>
> may be I found it - try to move first line with # below "webm av1_qsv" 
> line, so "webm ..." will be VERY first line in profile
>
>
> same for h264/vp9 ....


Voilà, you solved the puzzle 😉

I just edited and tested the first one.
only those with .webm or also .mp4?
--------

cat bin/ffmpeg/video/av1_qsv.webm
webm av1_qsv
# only usable with ext. ffmpeg
# cin_pix_fmt=nv12

SD-DV --> AV1_QSV.webm
Video compression: av1_qsv.webm
Pixels: nv12  works (p010le /qsv - I think also yuv420p was "default" 
first time, but not longer seen)
webm av1_qsv
# cin_pix_fmt=nv12

[av1_qsv @ 0x7f47600a9c40] Specified pixel format yuv420p is not 
supported by the av1_qsv encoder.
[av1_qsv @ 0x7f47600a9c40] Supported pixel formats:
[av1_qsv @ 0x7f47600a9c40]   nv12
[av1_qsv @ 0x7f47600a9c40]   p010le
[av1_qsv @ 0x7f47600a9c40]   qsv
FFMPEG::open_encoder  err: Invalid argument
int FFMPEG::open_encoder(const char*, const char*):
open failed av1_qsv:/Videoklipp/QSV/dv01_07_av1_qsv.webm
Render::render_single: Session finished.
[av1_qsv @ 0x7f47580ece80] Encoder: input is system memory surface
[av1_qsv @ 0x7f47580ece80] Use Intel(R) oneVPL to create MFX session, 
the required implementation version is 1.1
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
[AVHWDeviceContext @ 0x7f475809f580] Trying to use DRM render node for 
device 0, with matching kernel driver (i915).
[AVHWDeviceContext @ 0x7f475809f580] libva: VA-API version 1.22.0
[AVHWDeviceContext @ 0x7f475809f580] libva: User requested driver 'iHD'
[AVHWDeviceContext @ 0x7f475809f580] libva: Trying to open 
/usr/lib64/dri/iHD_drv_video.so
[AVHWDeviceContext @ 0x7f475809f580] libva: Found init function 
__vaDriverInit_1_22
[AVHWDeviceContext @ 0x7f475809f580] libva: va_openDriver() returns 0
[AVHWDeviceContext @ 0x7f475809f580] Initialised VAAPI connection: 
version 1.22
[AVHWDeviceContext @ 0x7f475809f580] Format 0x41524742 -> bgra.
[AVHWDeviceContext @ 0x7f475809f580] Format 0x41424752 -> rgba.
[AVHWDeviceContext @ 0x7f475809f580] Format 0x58524742 -> bgr0.
[AVHWDeviceContext @ 0x7f475809f580] Format 0x58424752 -> rgb0.
[AVHWDeviceContext @ 0x7f475809f580] Format 0x30335241 -> unknown.
[AVHWDeviceContext @ 0x7f475809f580] Format 0x30334241 -> unknown.
[AVHWDeviceContext @ 0x7f475809f580] Format 0x30335258 -> x2rgb10le.
[AVHWDeviceContext @ 0x7f475809f580] Format 0x30334258 -> unknown.
[AVHWDeviceContext @ 0x7f475809f580] Format 0x36314752 -> unknown.
[AVHWDeviceContext @ 0x7f475809f580] Format 0x56555941 -> unknown.
[AVHWDeviceContext @ 0x7f475809f580] Format 0x56555958 -> vuyx.
[AVHWDeviceContext @ 0x7f475809f580] Format 0x30303859 -> gray.
[AVHWDeviceContext @ 0x7f475809f580] Format 0x3231564e -> nv12.
[AVHWDeviceContext @ 0x7f475809f580] Format 0x3132564e -> unknown.
[AVHWDeviceContext @ 0x7f475809f580] Format 0x32595559 -> yuyv422.
[AVHWDeviceContext @ 0x7f475809f580] Format 0x59565955 -> uyvy422.
[AVHWDeviceContext @ 0x7f475809f580] Format 0x32315659 -> yuv420p.
[AVHWDeviceContext @ 0x7f475809f580] Format 0x30323449 -> yuv420p.
[AVHWDeviceContext @ 0x7f475809f580] Format 0x50313134 -> yuv411p.
[AVHWDeviceContext @ 0x7f475809f580] Format 0x48323234 -> yuv422p.
[AVHWDeviceContext @ 0x7f475809f580] Format 0x56323234 -> yuv440p.
[AVHWDeviceContext @ 0x7f475809f580] Format 0x50343434 -> yuv444p.
[AVHWDeviceContext @ 0x7f475809f580] Format 0x33434d49 -> unknown.
[AVHWDeviceContext @ 0x7f475809f580] Format 0x30313050 -> p010le.
[AVHWDeviceContext @ 0x7f475809f580] Format 0x32313050 -> p012le.
[AVHWDeviceContext @ 0x7f475809f580] Format 0x36313050 -> unknown.
[AVHWDeviceContext @ 0x7f475809f580] Format 0x30313259 -> y210le.
[AVHWDeviceContext @ 0x7f475809f580] Format 0x32313259 -> y212le.
[AVHWDeviceContext @ 0x7f475809f580] Format 0x36313259 -> unknown.
[AVHWDeviceContext @ 0x7f475809f580] Format 0x30313459 -> xv30le.
[AVHWDeviceContext @ 0x7f475809f580] Format 0x32313459 -> xv36le.
[AVHWDeviceContext @ 0x7f475809f580] Format 0x36313459 -> unknown.
[AVHWDeviceContext @ 0x7f475809f580] Format 0x50424752 -> unknown.
[AVHWDeviceContext @ 0x7f475809f580] Format 0x50524742 -> unknown.
[AVHWDeviceContext @ 0x7f475809f580] VAAPI driver: Intel iHD driver for 
Intel(R) Gen Graphics - 24.3.4 ().
[AVHWDeviceContext @ 0x7f475809f580] Driver not found in known 
nonstandard list, using standard behaviour.
[av1_qsv @ 0x7f47580ece80] Initialized an internal MFX session using 
hardware accelerated implementation
[av1_qsv @ 0x7f47580ece80] 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.
[av1_qsv @ 0x7f47580ece80] Using the constant quantization parameter 
(CQP) ratecontrol method
[av1_qsv @ 0x7f47580ece80] profile: av1 main; level: 30
[av1_qsv @ 0x7f47580ece80] GopPicSize: 248; GopRefDist: 8; GopOptFlag:; 
IdrInterval: 0
[av1_qsv @ 0x7f47580ece80] TargetUsage: 4; RateControlMethod: CQP
[av1_qsv @ 0x7f47580ece80] QPI: 102; QPP: 128; QPB: 161
[av1_qsv @ 0x7f47580ece80] NumRefFrame: 4
[av1_qsv @ 0x7f47580ece80] IntRefType: 0; IntRefCycleSize: 0; 
IntRefQPDelta: 0; IntRefCycleDist: 0
[av1_qsv @ 0x7f47580ece80] MaxFrameSize: 0;
[av1_qsv @ 0x7f47580ece80] BitrateLimit: unknown; MBBRC: OFF; ExtBRC: 
unknown
[av1_qsv @ 0x7f47580ece80] VDENC: ON
[av1_qsv @ 0x7f47580ece80] BRefType: pyramid
[av1_qsv @ 0x7f47580ece80] PRefType: default
[av1_qsv @ 0x7f47580ece80] MinQPI: 0; MaxQPI: 0; MinQPP: 0; MaxQPP: 0; 
MinQPB: 0; MaxQPB: 0
[av1_qsv @ 0x7f47580ece80] FrameRateExtD: 1; FrameRateExtN: 25
[av1_qsv @ 0x7f47580ece80] NumTileRows: 1; NumTileColumns: 1; 
NumTileGroups: 1
[av1_qsv @ 0x7f47580ece80] WriteIVFHeaders: OFF
[av1_qsv @ 0x7f47580ece80] LowDelayBRC: OFF
[av1_qsv @ 0x7f47580ece80] MaxFrameSize: 0;
[SWR @ 0x7f47581a2b40] Using fltp internally between filters
Render::render_single: Session finished.
** rendered 2832 frames in 6.205 secs, 456.406 fps
-----------
FFMPEG::open_decoder: some stream times estimated: 
/Videoklipp/QSV/dv01_07_av1_qsv.webm
FFMPEG::open_decoder: some stream times estimated: 
/Videoklipp/QSV/dv01_07_av1_qsv.webm
audio0 pad 32 -143 (175)
audio0 pad 0 -143 (143)
audio0 pad 0 -15 (15)
FFMPEG::open_decoder: some stream times estimated: 
/Videoklipp/QSV/dv01_07_av1_qsv.webm
FFMPEG::open_decoder: some stream times estimated: 
/Videoklipp/QSV/dv01_07_av1_qsv.webm
Total excess of backups: -50
Session time: 0:24:06
Cpu time: user: 0:00:25.478 sys: 0:00:08.879
---------------

du -sh dv01_07*.webm
11M    dv01_07_av1_qsv.webm
22M    dv01_07_av1_svt.webm

ffprobe -hide_banner dv01_07_av1_qsv.webm
Input #0, matroska,webm, from 'dv01_07_av1_qsv.webm':
   Metadata:
     ENCODER         : Lavf61.1.100
   Duration: 00:01:53.28, start: 0.000000, bitrate: 770 kb/s
   Stream #0:0: Video: av1 (libdav1d) (Main), yuv420p(tv, 
bt470bg/unknown/unknown), 720x576, SAR 16:15 DAR 4:3, 25 fps, 25 tbr, 1k tbn
       Metadata:
         DURATION        : 00:01:53.283000000
   Stream #0:1: Audio: vorbis, 48000 Hz, stereo, fltp
       Metadata:
         DURATION        : 00:01:53.283000000

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20241013/1e491bd5/attachment.htm>


More information about the Cin mailing list