SHARE
TWEET

QSVEncC v2.71での高深度Y4Mでの色ズレ・色がかり

a guest Jul 8th, 2017 92 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 発生現象:
  2.  QSVEncC v2.71で、YUV422やYUV444の高深度Y4M渡しで色がかりや色ズレが発生する。
  3.  
  4. ====================================================================
  5.  ↓ ソース: ColorBarsRGB32.avs
  6. ====================================================================
  7. Colorbars().Trim(0,100)
  8. info
  9.  
  10. ====================================================================
  11.  ↓ コマンド
  12. ====================================================================
  13. ffmpeg.exe -y -i ColorBarsRGB32.avs -strict -1 -pix_fmt yuv422p12やyuv444p12など -f yuv4mpegpipe - | QSVEncC.exe -i - --y4m --codec h264 --profile High --la-icq 25 -o %outfile%
  14.  
  15. ※9bit以外はAvisynth+(r2506)+avs2pipemod(v1.1.1)でのy4m化も試したが結果は変わらず。
  16.  
  17. ====================================================================
  18.  ↓ テスト結果
  19. ====================================================================
  20.  
  21. ■色が緑やマゼンタがかる(10bit以外の高深度422)
  22.   ・422p9→緑ぃ
  23.   ・422P10→問題なさげ
  24.   ・422P12→マゼンタぁ
  25.   ・422P14→マゼンタぁ
  26.   ・422P16→マゼンタぁ
  27.  
  28. ■色ズレが発生(高深度444)
  29.   444p9/444P10/444P12/444P14/444P16
  30.  
  31.  
  32.  
  33. ====================================================================
  34.  ↓ yuv422p12でのログ → 結果:全体的にマゼンタ
  35. ====================================================================
  36. ffmpeg version 3.3.2 Copyright (c) 2000-2017 the FFmpeg developers
  37.   built with gcc 7.1.0 (GCC)
  38.   configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
  39.   libavutil      55. 58.100 / 55. 58.100
  40.   libavcodec     57. 89.100 / 57. 89.100
  41.   libavformat    57. 71.100 / 57. 71.100
  42.   libavdevice    57.  6.100 / 57.  6.100
  43.   libavfilter     6. 82.100 /  6. 82.100
  44.   libswscale      4.  6.100 /  4.  6.100
  45.   libswresample   2.  7.100 /  2.  7.100
  46.   libpostproc    54.  5.100 / 54.  5.100
  47. Guessed Channel Layout for Input Stream #0.1 : stereo
  48. Input #0, avisynth, from 'D:\ColorBarsRGB32.avs':
  49.   Duration: 00:00:03.37, start: 0.000000, bitrate: 0 kb/s
  50.     Stream #0:0: Video: rawvideo (BGRA / 0x41524742), bgra, 640x480, 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc
  51.     Stream #0:1: Audio: pcm_f32le, 48000 Hz, stereo, flt, 3072 kb/s
  52. Stream mapping:
  53.   Stream #0:0 -> #0:0 (rawvideo (native) -> wrapped_avframe (native))
  54. Press [q] to stop, [?] for help
  55. [yuv4mpegpipe @ 0000000002819440] Warning: generating non standard YUV stream. Mjpegtools will not work.
  56. Output #0, yuv4mpegpipe, to 'pipe:':
  57.   Metadata:
  58.     encoder         : Lavf57.71.100
  59.     Stream #0:0: Video: wrapped_avframe, yuv422p12le, 640x480, q=2-31, 200 kb/s, 29.97 fps, 29.97 tbn, 29.97 tbc
  60.     Metadata:
  61.       encoder         : Lavc57.89.100 wrapped_avframe
  62. frame=    1 fps=0.0 q=-0.0 size=    1200kB time=00:00:00.03 bitrate=294630.7kbits/s speed=0.041x    
  63. frame=   46 fps= 35 q=-0.0 size=   55200kB time=00:00:01.53 bitrate=294619.1kbits/s speed=1.16x    
  64. frame=   96 fps= 53 q=-0.0 size=  115201kB time=00:00:03.20 bitrate=294619.0kbits/s speed=1.76x    
  65. frame=  101 fps= 54 q=-0.0 Lsize=  121201kB time=00:00:03.37 bitrate=294619.0kbits/s speed= 1.8x    
  66. video:49kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 247643.265625%
  67. Currently yuv422 surfaces are not supported by d3d9/d3d11 memory.
  68. Switching to system memory.
  69. ResetMFXComponents: partial acceleration on vpp.
  70. cop2.LookAheadDepth value changed 0 -> 10 by driver
  71. QSVEncC (x64) 2.71 (r1342) by rigaya, Jul  1 2017 23:00:19 (VC 1900/Win/avx2)
  72. OS             Windows 10 x64 (14393)
  73. CPU Info       Intel Core i7-4702MQ @ 2.20GHz [TB: 2.90GHz] (4C/8T) <Haswell>
  74. GPU Info       Intel HD Graphics 4600 (20EU) 200-1150MHz [37W] (20.19.15.4531)
  75. Media SDK      QuickSyncVideo (hardware encoder) PG, 1st GPU, API v1.19
  76. Async Depth    5 frames
  77. Buffer Memory  system, 3 input buffer, 25 work buffer
  78. Input Info     y4m(yuv422(12bit))->p210 [SSE2], 640x480, 30000/1001 fps
  79. VPP Enabled    ColorFmtConvertion: p210 -> nv12
  80. Output         H.264/AVC  High @ Level 3
  81.                640x480p 1:1 29.970fps (30000/1001fps)
  82.                avwriter: h264 => mp4
  83. Target usage   4 - balanced
  84. Encode Mode    LA-ICQ (Intelligent Const. Quality with Lookahead)
  85. Lookahead      depth 10 frames, quality medium
  86. Windowed RC    off
  87. ICQ Quality    25
  88. QP Limit       min: none, max: none
  89. Trellis        Auto
  90. Ref frames     3 frames
  91. Bframes        3 frames, B-pyramid: on
  92. Max GOP Length 300 frames
  93.                                                                                
  94. encoded 101 frames, 92.24 fps, 211.09 kbps, 0.08 MB
  95. encode time 0:00:01, CPU: 6.24, GPU: 0.00, GPUClockAvg: 0MHz
  96. frame type IDR  1
  97. frame type I    2,  total size  0.11 MB
  98. frame type P   25,  total size  0.01 MB
  99. frame type B   75,  total size  0.02 MB
  100.  
  101. ====================================================================
  102.  ↓ yuv444p12でのログ → 結果:色ズレ
  103. ====================================================================
  104. ffmpeg version 3.3.2 Copyright (c) 2000-2017 the FFmpeg developers
  105.   built with gcc 7.1.0 (GCC)
  106.   configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
  107.   libavutil      55. 58.100 / 55. 58.100
  108.   libavcodec     57. 89.100 / 57. 89.100
  109.   libavformat    57. 71.100 / 57. 71.100
  110.   libavdevice    57.  6.100 / 57.  6.100
  111.   libavfilter     6. 82.100 /  6. 82.100
  112.   libswscale      4.  6.100 /  4.  6.100
  113.   libswresample   2.  7.100 /  2.  7.100
  114.   libpostproc    54.  5.100 / 54.  5.100
  115. Guessed Channel Layout for Input Stream #0.1 : stereo
  116. Input #0, avisynth, from 'D:\ColorBarsRGB32.avs':
  117.   Duration: 00:00:03.37, start: 0.000000, bitrate: 0 kb/s
  118.     Stream #0:0: Video: rawvideo (BGRA / 0x41524742), bgra, 640x480, 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc
  119.     Stream #0:1: Audio: pcm_f32le, 48000 Hz, stereo, flt, 3072 kb/s
  120. Stream mapping:
  121.   Stream #0:0 -> #0:0 (rawvideo (native) -> wrapped_avframe (native))
  122. Press [q] to stop, [?] for help
  123. [yuv4mpegpipe @ 00000000024d9440] Warning: generating non standard YUV stream. Mjpegtools will not work.
  124. Output #0, yuv4mpegpipe, to 'pipe:':
  125.   Metadata:
  126.     encoder         : Lavf57.71.100
  127.     Stream #0:0: Video: wrapped_avframe, yuv444p12le, 640x480, q=2-31, 200 kb/s, 29.97 fps, 29.97 tbn, 29.97 tbc
  128.     Metadata:
  129.       encoder         : Lavc57.89.100 wrapped_avframe
  130. frame=    1 fps=0.0 q=-0.0 size=    1800kB time=00:00:00.03 bitrate=441938.0kbits/s speed=0.0416x    
  131. frame=   46 fps= 35 q=-0.0 size=   82800kB time=00:00:01.53 bitrate=441927.7kbits/s speed=1.18x    
  132. frame=   95 fps= 53 q=-0.0 size=  171001kB time=00:00:03.16 bitrate=441927.7kbits/s speed=1.76x    
  133. frame=  101 fps= 54 q=-0.0 Lsize=  181801kB time=00:00:03.37 bitrate=441927.7kbits/s speed= 1.8x    
  134. video:49kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 371514.250000%
  135. cop2.LookAheadDepth value changed 0 -> 10 by driver
  136. QSVEncC (x64) 2.71 (r1342) by rigaya, Jul  1 2017 23:00:19 (VC 1900/Win/avx2)
  137. OS             Windows 10 x64 (14393)
  138. CPU Info       Intel Core i7-4702MQ @ 2.20GHz [TB: 2.90GHz] (4C/8T) <Haswell>
  139. GPU Info       Intel HD Graphics 4600 (20EU) 200-1150MHz [37W] (20.19.15.4531)
  140. Media SDK      QuickSyncVideo (hardware encoder) PG, 1st GPU, API v1.19
  141. Async Depth    4 frames
  142. Buffer Memory  d3d9, 3 input buffer, 24 work buffer
  143. Input Info     y4m(yuv444(12bit))->nv12 [-], 640x480, 30000/1001 fps
  144. Output         H.264/AVC  High @ Level 3
  145.                640x480p 1:1 29.970fps (30000/1001fps)
  146.                avwriter: h264 => mp4
  147. Target usage   4 - balanced
  148. Encode Mode    LA-ICQ (Intelligent Const. Quality with Lookahead)
  149. Lookahead      depth 10 frames, quality medium
  150. Windowed RC    off
  151. ICQ Quality    25
  152. QP Limit       min: none, max: none
  153. Trellis        Auto
  154. Ref frames     3 frames
  155. Bframes        3 frames, B-pyramid: on
  156. Max GOP Length 300 frames
  157.                                                                                
  158. encoded 101 frames, 91.40 fps, 288.03 kbps, 0.12 MB
  159. encode time 0:00:01, CPU: 4.94, GPU: 0.00, GPUClockAvg: 0MHz
  160. frame type IDR  1
  161. frame type I    2,  total size  0.14 MB
  162. frame type P   25,  total size  0.02 MB
  163. frame type B   75,  total size  0.03 MB
RAW Paste Data
Top