Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YUV444 10bit encoding creates a 0Byte file #56

Open
AkiNeko110 opened this issue May 13, 2021 · 4 comments
Open

YUV444 10bit encoding creates a 0Byte file #56

AkiNeko110 opened this issue May 13, 2021 · 4 comments

Comments

@AkiNeko110
Copy link

AkiNeko110 commented May 13, 2021

If I try to encode a yuv444 10bit file with the following command, a 0Byte file will be created. No error message was displayed on the command line. yuv444 When 8bit data is executed with Output Depth of 8, the encoding process is executed normally. Is it currently not compatible with YUV444 10bit?

Commad Sample

QSVEncC64.exe -i "FilePath" -o "OutFilePath" --fps 30/1 --codec hevc --profile main444 --inpu-res WxH --input-csp yuv444p10le --ouput-depth 10 --output-csp i444
@rigaya
Copy link
Owner

rigaya commented Jun 15, 2021

Will adding "--bframes 0" solve the problem? YUV444 mode currently does not support bframes due to hardware limitation.

@AkiNeko110
Copy link
Author

AkiNeko110 commented Jun 16, 2021

My CPU is Icelake (i5-1035G4).
situation did not change even if I executed the command with "--bframes 0".

@Selur
Copy link

Selur commented May 16, 2024

Any update on this?
sadly setting '--bframes=0' does not work:

ffmpeg -y -loglevel fatal -noautorotate -nostdin -threads 8 -i "G:\TestClips&Co\files\test.avi" -map 0:0 -an -sn -color_primaries bt470bg -color_trc smpte170m -colorspace bt470bg -color_range tv  -pix_fmt yuv444p10le -strict -1 -vsync 0 -f yuv4mpegpipe - | QSVEncC --y4m -i - --input-buf 3 --slices 0 --fps 25/1 --codec hevc --sar 1:1 --cqp 24:26:27 --profile auto --level auto --quality balanced --gop-len 0 --i-adapt --weightp --b-adapt --weightb --b-pyramid --ctu auto --colormatrix bt470bg --output-csp i444 --bframes 0 --output-depth 10 --output-file "J:\tmp\2024-05-16@14_52_55_
5510\test_1_2024-05-16@14_52_55_5510_01.265"
--------------------------------------------------------------------------------
J:\tmp\2024-05-16@14_52_55_5510\test_1_2024-05-16@14_52_55_5510_01.265
--------------------------------------------------------------------------------
Switched to fixed function (FF) mode, as encoding in YUV444 requires FF mode.
cop.SingleSeiNalUnit value changed off -> auto by driver
cop2.BRefType value changed 2 -> 1 by driver
QSVEncC (x64) 7.64 (r3360) by rigaya, May 12 2024 08:56:17 (VC 1938/Win)
OS             Windows 11 x64 (22631) [UTF-8]
CPU Info       AMD Ryzen 9 7950X 16-Core Processor [5.62GHz] (16C/32T) <DG2>
GPU Info       Intel Arc A380 Graphics (128EU) 300-2450MHz (31.0.101.5448)
Media SDK      QuickSyncVideo (hardware encoder) FF, 3rd GPU(d), API v2.10
Async Depth    3 frames
Hyper Mode     off
Buffer Memory  d3d11, 10 work buffer
Input Info     y4m(yuv444(10bit))->y410 [AVX2], 640x352, 25/1 fps
AVSync         auto
Output         H.265/HEVC(yuv444 10bit) main444 @ Level 3.1
               640x352p 1:1 25.000fps (25/1fps)
Target usage   4 - balanced
Encode Mode    Constant QP (CQP)
CQP Value      I:24  P:26  B:27
QP Limit       min: 22, max: 63
Ref frames     2 frames
Bframes        none
Max GOP Length 250 frames
VUI            matrix:bt470bg
Ext. Features  WeightP WeightB GPB QPOffset tskip ctu:64 sao:all

As

Checking for QSV...
QSVEncC (x64) 7.64 (r3360) by rigaya, May 12 2024 08:56:17 (VC 1938/Win)
 Intel Media SDK API v2.09
 reader: raw, avi, avs, vpy, avsw, avhw
Environment Info
OS : Windows 11 x64 (22631) [UTF-8]
CPU: AMD Ryzen 9 7950X 16-Core Processor [5.52GHz] (16C/32T)
RAM: Used 11420 MB, Total 64631 MB
GPU: Intel Arc A380 Graphics (128EU) 2450MHz (31.0.101.5448)

Media SDK Version: Hardware API v2.10

Supported Enc features:
Codec: H.264/AVC FF
             CBR   VBR   AVBR  QVBR  CQP   LA    LAHRD ICQ   LAICQ VCM
RC mode       o     o     x     o     o     x     x     o     x     o
10bit depth   x     x     x     x     x     x     x     x     x     x
Hyper Mode    x     x     x     x     x     x     x     x     x     x
Interlace     x     x     x     x     x     x     x     x     x     x
VUI info      o     o     x     o     o     x     x     o     x     o
Trellis       o     o     x     o     o     x     x     o     x     o
BFrame/GopRef o     o     x     o     o     x     x     o     x     x
Adaptive_I    x     x     x     x     x     x     x     x     x     x
Adaptive_B    x     x     x     x     x     x     x     x     x     x
WeightP       o     o     x     o     o     x     x     o     x     o
WeightB       o     o     x     o     o     x     x     o     x     x
FadeDetect    x     x     x     x     x     x     x     x     x     x
B_Pyramid     o     o     x     o     o     x     x     o     x     x
 +ManyBframes o     o     x     o     o     x     x     o     x     x
PyramQPOffset x     x     x     x     x     x     x     x     x     x
TuneQuality   x     x     x     x     x     x     x     x     x     x
ScenarioInfo  o     o     x     o     o     x     x     o     x     o
MBBRC         o     o     x     o     x     x     x     o     x     o
ExtBRC        o     o     x     x     x     x     x     x     x     x
AdaptiveRef   o     o     x     o     o     x     x     o     x     o
AdaptiveLTR   x     x     x     x     x     x     x     x     x     x
AdaptiveCQM   o     o     x     o     o     x     x     o     x     o
LA Quality    x     x     x     x     x     x     x     x     x     x
QP Min/Max    o     o     x     o     o     x     x     o     x     o
IntraRefresh  x     x     x     x     x     x     x     x     x     x
No Deblock    x     x     x     x     x     x     x     x     x     x
No GPB        x     x     x     x     x     x     x     x     x     x
Windowed BRC  x     x     x     x     x     x     x     x     x     x
PerMBQP(CQP)  o     o     x     x     o     x     x     x     x     x
DirectBiasAdj o     o     x     o     o     x     x     o     x     o
MVCostScaling o     o     x     o     o     x     x     o     x     o
SAO           x     x     x     x     x     x     x     x     x     x
Max CTU Size  x     x     x     x     x     x     x     x     x     x
TSkip         x     x     x     x     x     x     x     x     x     x
COP           o     o     x     o     o     x     x     o     x     o
COP2          o     o     x     o     o     x     x     o     x     o
COP3          o     o     x     o     o     x     x     o     x     o
HEVC_PRM      x     x     x     x     x     x     x     x     x     x
COP_VP8       x     x     x     x     x     x     x     x     x     x
VP9_PRM       x     x     x     x     x     x     x     x     x     x
AV1BITSTREAM  x     x     x     x     x     x     x     x     x     x
AV1RESOLUTION x     x     x     x     x     x     x     x     x     x
AV1TILE       x     x     x     x     x     x     x     x     x     x
VIDEO_SIGNAL  o     o     x     o     o     x     x     o     x     o
CHROMALOC     o     o     x     o     o     x     x     o     x     o
TUNE_ENC_QUAL x     x     x     x     x     x     x     x     x     x
HYPER_MODE    o     o     x     o     o     x     x     o     x     o



Codec: H.265/HEVC FF
             CBR   VBR   AVBR  QVBR  CQP   LA    LAHRD ICQ   LAICQ VCM
RC mode       o     o     x     o     o     x     x     o     x     x
10bit depth   o     o     x     o     o     x     x     o     x     x
Hyper Mode    x     x     x     x     x     x     x     x     x     x
Interlace     x     x     x     x     o     x     x     x     x     x
VUI info      o     o     x     o     o     x     x     o     x     x
Trellis       x     x     x     x     x     x     x     x     x     x
BFrame/GopRef o     o     x     o     o     x     x     o     x     x
Adaptive_I    o     o     x     o     o     x     x     o     x     x
Adaptive_B    o     o     x     o     o     x     x     o     x     x
WeightP       o     o     x     o     o     x     x     o     x     x
WeightB       o     o     x     o     o     x     x     o     x     x
FadeDetect    o     o     x     o     o     x     x     o     x     x
B_Pyramid     o     o     x     o     o     x     x     o     x     x
 +ManyBframes o     o     x     o     o     x     x     o     x     x
PyramQPOffset x     x     x     x     o     x     x     x     x     x
TuneQuality   x     x     x     x     x     x     x     x     x     x
ScenarioInfo  o     o     x     o     o     x     x     o     x     x
MBBRC         o     o     x     o     x     x     x     o     x     x
ExtBRC        o     o     x     x     x     x     x     x     x     x
AdaptiveRef   x     x     x     x     x     x     x     x     x     x
AdaptiveLTR   o     o     x     o     o     x     x     o     x     x
AdaptiveCQM   o     o     x     o     o     x     x     o     x     x
LA Quality    x     x     x     x     x     x     x     x     x     x
QP Min/Max    o     o     x     o     x     x     x     o     x     x
IntraRefresh  x     x     x     x     x     x     x     x     x     x
No Deblock    o     o     x     o     o     x     x     o     x     x
No GPB        o     o     x     o     o     x     x     o     x     x
Windowed BRC  x     o     x     x     x     x     x     x     x     x
PerMBQP(CQP)  x     x     x     x     x     x     x     x     x     x
DirectBiasAdj x     x     x     x     x     x     x     x     x     x
MVCostScaling x     x     x     x     x     x     x     x     x     x
SAO           o     o     x     o     o     x     x     o     x     x
Max CTU Size  o     o     x     o     o     x     x     o     x     x
TSkip         o     o     x     o     o     x     x     o     x     x
COP           o     o     x     o     o     x     x     o     x     x
COP2          o     o     x     o     o     x     x     o     x     x
COP3          o     o     x     o     o     x     x     o     x     x
HEVC_PRM      o     o     x     o     o     x     x     o     x     x
COP_VP8       x     x     x     x     x     x     x     x     x     x
VP9_PRM       x     x     x     x     x     x     x     x     x     x
AV1BITSTREAM  x     x     x     x     x     x     x     x     x     x
AV1RESOLUTION x     x     x     x     x     x     x     x     x     x
AV1TILE       x     x     x     x     x     x     x     x     x     x
VIDEO_SIGNAL  o     o     x     o     o     x     x     o     x     x
CHROMALOC     o     o     x     o     o     x     x     o     x     x
TUNE_ENC_QUAL x     x     x     x     x     x     x     x     x     x
HYPER_MODE    o     o     x     o     o     x     x     o     x     x



Codec: VP9 FF
             CBR   VBR   AVBR  QVBR  CQP   LA    LAHRD ICQ   LAICQ VCM
RC mode       o     o     x     x     o     x     x     o     x     x
10bit depth   o     o     x     x     o     x     x     o     x     x
Hyper Mode    x     x     x     x     x     x     x     x     x     x
Interlace     x     x     x     x     x     x     x     x     x     x
VUI info      x     x     x     x     x     x     x     x     x     x
Trellis       x     x     x     x     x     x     x     x     x     x
BFrame/GopRef x     x     x     x     x     x     x     x     x     x
Adaptive_I    x     x     x     x     x     x     x     x     x     x
Adaptive_B    x     x     x     x     x     x     x     x     x     x
WeightP       x     x     x     x     x     x     x     x     x     x
WeightB       x     x     x     x     x     x     x     x     x     x
FadeDetect    x     x     x     x     x     x     x     x     x     x
B_Pyramid     x     x     x     x     x     x     x     x     x     x
 +ManyBframes x     x     x     x     x     x     x     x     x     x
PyramQPOffset x     x     x     x     x     x     x     x     x     x
TuneQuality   x     x     x     x     x     x     x     x     x     x
ScenarioInfo  o     o     x     x     o     x     x     o     x     x
MBBRC         o     o     x     x     x     x     x     o     x     x
ExtBRC        x     x     x     x     x     x     x     x     x     x
AdaptiveRef   x     x     x     x     x     x     x     x     x     x
AdaptiveLTR   x     x     x     x     x     x     x     x     x     x
AdaptiveCQM   x     x     x     x     x     x     x     x     x     x
LA Quality    x     x     x     x     x     x     x     x     x     x
QP Min/Max    x     x     x     x     x     x     x     x     x     x
IntraRefresh  x     x     x     x     x     x     x     x     x     x
No Deblock    x     x     x     x     x     x     x     x     x     x
No GPB        x     x     x     x     x     x     x     x     x     x
Windowed BRC  x     x     x     x     x     x     x     x     x     x
PerMBQP(CQP)  x     x     x     x     x     x     x     x     x     x
DirectBiasAdj x     x     x     x     x     x     x     x     x     x
MVCostScaling x     x     x     x     x     x     x     x     x     x
SAO           x     x     x     x     x     x     x     x     x     x
Max CTU Size  x     x     x     x     x     x     x     x     x     x
TSkip         x     x     x     x     x     x     x     x     x     x
COP           x     x     x     x     x     x     x     x     x     x
COP2          o     o     x     x     o     x     x     o     x     x
COP3          o     o     x     x     o     x     x     o     x     x
HEVC_PRM      x     x     x     x     x     x     x     x     x     x
COP_VP8       x     x     x     x     x     x     x     x     x     x
VP9_PRM       o     o     x     x     o     x     x     o     x     x
AV1BITSTREAM  x     x     x     x     x     x     x     x     x     x
AV1RESOLUTION x     x     x     x     x     x     x     x     x     x
AV1TILE       x     x     x     x     x     x     x     x     x     x
VIDEO_SIGNAL  x     x     x     x     x     x     x     x     x     x
CHROMALOC     x     x     x     x     x     x     x     x     x     x
TUNE_ENC_QUAL x     x     x     x     x     x     x     x     x     x
HYPER_MODE    x     x     x     x     x     x     x     x     x     x



Codec: AV1 FF
             CBR   VBR   AVBR  QVBR  CQP   LA    LAHRD ICQ   LAICQ VCM
RC mode       o     o     x     x     o     x     x     o     x     x
10bit depth   o     o     x     x     o     x     x     o     x     x
Hyper Mode    x     x     x     x     x     x     x     x     x     x
Interlace     x     x     x     x     x     x     x     x     x     x
VUI info      o     o     x     x     o     x     x     o     x     x
Trellis       x     x     x     x     x     x     x     x     x     x
BFrame/GopRef o     o     x     x     o     x     x     o     x     x
Adaptive_I    o     o     x     x     o     x     x     o     x     x
Adaptive_B    o     o     x     x     o     x     x     o     x     x
WeightP       x     x     x     x     x     x     x     x     x     x
WeightB       x     x     x     x     x     x     x     x     x     x
FadeDetect    x     x     x     x     x     x     x     x     x     x
B_Pyramid     o     o     x     x     o     x     x     o     x     x
 +ManyBframes o     o     x     x     o     x     x     o     x     x
PyramQPOffset x     x     x     x     x     x     x     x     x     x
TuneQuality   o     o     x     x     o     x     x     o     x     x
ScenarioInfo  o     o     x     x     o     x     x     o     x     x
MBBRC         o     o     x     x     x     x     x     o     x     x
ExtBRC        o     o     x     x     x     x     x     o     x     x
AdaptiveRef   x     x     x     x     x     x     x     x     x     x
AdaptiveLTR   o     o     x     x     o     x     x     o     x     x
AdaptiveCQM   o     o     x     x     o     x     x     o     x     x
LA Quality    x     x     x     x     x     x     x     x     x     x
QP Min/Max    o     o     x     x     x     x     x     o     x     x
IntraRefresh  x     x     x     x     x     x     x     x     x     x
No Deblock    x     x     x     x     x     x     x     x     x     x
No GPB        x     x     x     x     x     x     x     x     x     x
Windowed BRC  x     x     x     x     x     x     x     x     x     x
PerMBQP(CQP)  x     x     x     x     x     x     x     x     x     x
DirectBiasAdj x     x     x     x     x     x     x     x     x     x
MVCostScaling x     x     x     x     x     x     x     x     x     x
SAO           x     x     x     x     x     x     x     x     x     x
Max CTU Size  x     x     x     x     x     x     x     x     x     x
TSkip         x     x     x     x     x     x     x     x     x     x
COP           o     o     x     x     o     x     x     o     x     x
COP2          o     o     x     x     o     x     x     o     x     x
COP3          o     o     x     x     o     x     x     o     x     x
HEVC_PRM      x     x     x     x     x     x     x     x     x     x
COP_VP8       x     x     x     x     x     x     x     x     x     x
VP9_PRM       x     x     x     x     x     x     x     x     x     x
AV1BITSTREAM  o     o     x     x     o     x     x     o     x     x
AV1RESOLUTION o     o     x     x     o     x     x     o     x     x
AV1TILE       o     o     x     x     o     x     x     o     x     x
VIDEO_SIGNAL  o     o     x     x     o     x     x     o     x     x
CHROMALOC     x     x     x     x     x     x     x     x     x     x
TUNE_ENC_QUAL o     o     x     x     o     x     x     o     x     x
HYPER_MODE    o     o     x     x     o     x     x     o     x     x



Supported Vpp features:

Resize                o
Deinterlace           o
Scaling Quality       o
Denoise               o
Denoise2              o
Mctf                  x
Rotate                o
Mirror                o
Detail Enhancement    o
Proc Amp.             o
Image Stabilization   x
Perceptual Pre Enc    x
Video Signal Info     o
FPS Conversion        o
FPS Conversion (Adv.) o


Supported Decode features:

        H.264  HEVC   MPEG2  VP8    VP9    AV1
yuv420  8bit  10bit   8bit         10bit  10bit
yuv422        10bit                10bit
yuv444        12bit                12bit  12bit

@Selur
Copy link

Selur commented May 16, 2024

"Supported Decode features" <- is there something similar for the supported output colors?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants