Advertisement
Guest User

QSVEncC v2.72と高深度yuv422のy4m

a guest
Aug 21st, 2017
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.46 KB | None | 0 0
  1. ■QSVEncC v2.72に高深度YUV4:2:2(yuv422p9/12/14/16。yuv422p/yuv422p10は問題無し。)のy4mを渡してエンコードすると緑やマゼンタになってしまう。
  2.  
  3. ■QSVEncCのログ
  4. subscribed com.intel.media.mfx_usage metric
  5. subscribed com.intel.media.eu_usage metric
  6. Performace Monitor: none
  7. Performace Plot : none
  8. Input: yuv reader selected (y4m).
  9. y4m: output to stdout.
  10. y4m: 640x360, pitch:1280, bufferSize:921600.
  11. y4m: y4m(yuv422(12bit))->p210 [SSE2], 640x360, 1/1 fps
  12. Input: reader initialization successful.
  13. Currently yuv422 surfaces are not supported by d3d9/d3d11 memory.
  14. Switching to system memory.
  15. CheckParam: 640x360p, 0:0, 1/1, 0 frames
  16. InitSession: Start initilaizing... memType: system
  17. InitSession: initialized using system memory.
  18. InitSession: mfx lib version: 1.19
  19. CreateAllocator: MemType: system
  20. CreateAllocator: sys mem allocator...
  21. CreateAllocator: frame allocator initialized.
  22. Detected avaliable features for hw API v1.19, H.264/AVC, LA-ICQ (Intelligent Const. Quality with Lookahead)
  23. RC mode o
  24. 10bit depth x
  25. Fixed Func x
  26. Interlace o
  27. SceneChange x
  28. VUI info o
  29. Trellis o
  30. Adaptive_I x
  31. Adaptive_B x
  32. WeightP o
  33. WeightB o
  34. FadeDetect x
  35. B_Pyramid o
  36. +Scenechange x
  37. +ManyBframes x
  38. PyramQPOffset x
  39. Ext_BRC x
  40. MBBRC x
  41. LA Quality o
  42. QP Min/Max o
  43. IntraRefresh x
  44. No Deblock x
  45. No GPB x
  46. Windowed BRC x
  47. PerMBQP(CQP) x
  48. DirectBiasAdj x
  49. MVCostScaling x
  50.  
  51.  
  52. InitMfxEncParams: Output FPS 1/1
  53. InitMfxEncParams: Auto GOP Length: 10
  54. InitMfxEncParams: set ext param CDO2.
  55. InitMfxEncParams: set ext param CDO3.
  56. InitMfxEncParams: set ext param CDOP.
  57. InitMfxEncParams: enc input frame 640x368 (0,0,640,360)
  58. InitMfxEncParams: enc input color format nv12, chroma 1, bitdepth 0, shift 0
  59. InitMfxEncParams: set all enc params.
  60. InitMfxVppParams: vpp input frame 640x368 (0,0,640,360)
  61. InitMfxVppParams: vpp input color format p210, chroma 1, bitdepth 12, shift 1
  62. InitMfxVppParams: vpp output frame 640x368 (0,0,640,360)
  63. InitMfxVppParams: vpp output color format nv12, chroma 1, bitdepth 0, shift 0
  64. InitMfxVppParams: set all vpp params.
  65. Output: Using avformat writer.
  66. avout: output filename: ".\encode\RGB360p-yuv422p12.mp4"
  67. avout: allocated internal buffer 8 MB.
  68. avout: set external output buffer 8 MB.
  69. avout: output video stream fps: 1/1
  70. avout: opened video avcodec
  71. avout: output video stream timebase: 1/1
  72. avout: bDtsUnavailable: off
  73. avout: Initialized video output.
  74. avout: avwriter: h264 => mp4
  75. avout: starting output thread...
  76. Output: Initialized avformat writer.
  77. Vpp Enabled...
  78. Vpp Enabled: ColorFmtConvertion: p210 -> nv12
  79.  
  80. pipeline element count: 2
  81. async depth automatically set to 5
  82. timeBeginPeriod(1)
  83. ResetMFXComponents: Start...
  84. ResetMFXComponents: Enc closed.
  85. ResetMFXComponents: Vpp closed.
  86. QSVAllocator: FrameFree...
  87. QSVAllocator: FrameFree external success.
  88. QSVAllocator: FrameFree internal success.
  89. QSVAllocator: FrameFree...
  90. QSVAllocator: FrameFree external success.
  91. QSVAllocator: FrameFree internal success.
  92. QSVAllocator: FrameFree...
  93. QSVAllocator: FrameFree external success.
  94. QSVAllocator: FrameFree internal success.
  95. ResetMFXComponents: Frames deleted.
  96. AllocFrames: m_nAsyncDepth - 5 frames
  97. AllocFrames: Enc query - 8 frames
  98. AllocFrames: Vpp query[0] - 5 frames
  99. AllocFrames: Vpp query[1] - 5 frames
  100. AllocFrames: nInputSurfAdd 3 frames
  101. AllocFrames: nDecSurfAdd 0 frames
  102. AllocFrames: Vpp type: external,system,vppin, 640x368 [0,0,640,360], request 11 frames
  103. AllocFrames: Enc type: external,system,enc,vppout, 640x368 [0,0,640,360], request 14 frames
  104. QSVAllocator: FrameAlloc: external,system,enc,vppout, 14 frames.
  105. QSVAllocator: Allocate type internal.
  106. QSVAllocatorSys::AllocImpl allocating 14 frames...
  107. QSVAllocatorSys::AllocImpl Success.
  108. QSVAllocator: FrameAlloc success.
  109. AllocFrames: Allocated EncRequest 14
  110. QSVAllocator: FrameAlloc: external,system,vppin, 11 frames.
  111. QSVAllocator: Allocate type internal.
  112. QSVAllocatorSys::AllocImpl allocating 11 frames...
  113. QSVAllocatorSys::AllocImpl Success.
  114. QSVAllocator: FrameAlloc success.
  115. AllocFrames: Allocated VppRequest 11
  116. ResetMFXComponents: Frames allocated.
  117. ResetMFXComponents: there might be error below, but it might be internal error which could be ignored.
  118. ResetMFXComponents: Enc initialized.
  119. ResetMFXComponents: there might be error below, but it might be internal error which could be ignored.
  120. ResetMFXComponents: partial acceleration on vpp.
  121. ResetMFXComponents: Vpp initialized.
  122. ResetMFXComponents: Creating task pool, poolSize 5, bufsize 920 KB.
  123. ResetMFXComponents: Created task pool.
  124. vidprm.AsyncDepth value changed 0 -> 5 by driver
  125. vidprm.mfx.BRCParamMultiplier value changed 0 -> 1 by driver
  126. vidprm.mfx.CodecLevel value changed auto -> 2.2 by driver
  127. cop2.LookAheadDepth value changed 0 -> 10 by driver
  128. cop2.LookAheadDS value changed auto -> medium by driver
  129. vidprm.mfx.NumSlice value changed 0 -> 1 by driver
  130. vidprm.mfx.NumRefFrame value changed 0 -> 3 by driver
  131. cop.RateDistortionOpt value changed auto -> off by driver
  132. cop.EndOfSequence value changed auto -> off by driver
  133. cop.CAVLC value changed auto -> off by driver
  134. cop.ViewOutput value changed auto -> off by driver
  135. cop.VuiVclHrdParameters value changed auto -> off by driver
  136. cop.RefPicListReordering value changed auto -> off by driver
  137. cop.ResetRefList value changed auto -> off by driver
  138. cop.MaxDecFrameBuffering value changed 0 -> 3 by driver
  139. cop.EndOfStream value changed auto -> off by driver
  140. cop.RefPicMarkRep value changed auto -> off by driver
  141. cop.FieldOutput value changed auto -> off by driver
  142. cop.NalHrdConformance value changed auto -> off by driver
  143. cop.SingleSeiNalUnit value changed auto -> on by driver
  144. cop.VuiNalHrdParameters value changed auto -> off by driver
  145. cop.RecoveryPointSEI value changed auto -> off by driver
  146. cop2.MaxFrameSize value changed 0 -> 176640 by driver
  147. cop2.BitrateLimit value changed auto -> on by driver
  148. cop2.MBBRC value changed auto -> off by driver
  149. cop2.RepeatPPS value changed auto -> on by driver
  150. cop2.FixedFrameRate value changed 0 -> 16 by driver
  151. cop2.DisableVUI value changed 0 -> 32 by driver
  152. cop2.UseRawRef value changed auto -> off by driver
  153. cop3.NumSliceI value changed 0 -> 1 by driver
  154. cop3.NumSliceP value changed 0 -> 1 by driver
  155. cop3.NumSliceB value changed 0 -> 1 by driver
  156. cop3.EnableMBQP value changed auto -> off by driver
  157. cop3.MBDisableSkipMap value changed auto -> off by driver
  158. cop3.AspectRatioInfoPresent value changed auto -> on by driver
  159. cop3.OverscanInfoPresent value changed auto -> off by driver
  160. cop3.TimingInfoPresent value changed auto -> on by driver
  161. cop3.BitstreamRestriction value changed auto -> on by driver
  162. cop3.LowDelayHrd value changed auto -> off by driver
  163. QSVEncC (x64) 2.72 (r1349) by rigaya, Aug 16 2017 20:10:59 (VC 1900/Win/avx2)
  164. OS Windows 10 x64 (14393)
  165. CPU Info Intel Core i7-4702MQ @ 2.20GHz [TB: 2.90GHz] (4C/8T) <Haswell>
  166. GPU Info Intel HD Graphics 4600 (20EU) 200-1150MHz [37W] (20.19.15.4531)
  167. Media SDK QuickSyncVideo (hardware encoder) PG, 1st GPU, API v1.19
  168. Async Depth 5 frames
  169. Buffer Memory system, 3 input buffer, 25 work buffer
  170. Input Info y4m(yuv422(12bit))->p210 [SSE2], 640x360, 1/1 fps
  171. VPP Enabled ColorFmtConvertion: p210 -> nv12
  172. Output H.264/AVC High @ Level 2.2
  173. 640x360p 1:1 1.000fps (1/1fps)
  174. avwriter: h264 => mp4
  175. Target usage 4 - balanced
  176. Encode Mode LA-ICQ (Intelligent Const. Quality with Lookahead)
  177. Lookahead depth 10 frames, quality medium
  178. Windowed RC off
  179. ICQ Quality 25
  180. QP Limit min: none, max: none
  181. Trellis Auto
  182. Ref frames 3 frames
  183. Bframes 3 frames, B-pyramid: on
  184. Max GOP Length 10 frames
  185. Main Thread: Lauching encode thread...
  186. Encode Thread: Starting Encode...
  187. Main Thread: Starting Encode...
  188. Encode Thread: Set surface to input buffer...
  189. GetNextFrame: Frame read finished.
  190. Encode Thread: finished main loop.
  191. Encode Thread: finished getting buffered frames from vpp.
  192. avout: set format brand "mp42".
  193. avout: set faststart.
  194. Encode Thread: finished getting buffered frames from encoder.
  195. Encode Thread: finished.
  196. WaitToFinish: Encode thread shut down.
  197. Main Thread: Finished Main Loop...
  198. avout: closed output thread...
  199. avout: closed queues...
  200.  
  201. encoded 11 frames, 196.43 fps, 35.77 kbps, 0.05 MB
  202. encode time 0:00:00, CPULoad: 10.1
  203. frame type IDR 2
  204. frame type I 4, total size 0.09 MB
  205. frame type P 3, total size 0.00 MB
  206. frame type B 6, total size 0.00 MB
  207. Main Thread: finished.
  208. Closing pipeline...
  209. Closing enc status...
  210. Closing m_EncThread...
  211. Closing Plugins...
  212. Closing m_pmfxDEC/ENC/VPP...
  213. Closing TaskPool...
  214. Closing mfxSession...
  215. DeleteFrames...
  216. QSVAllocator: FrameFree...
  217. QSVAllocator: FrameFree external success.
  218. QSVAllocatorSys::ReleaseResponse Success.
  219. QSVAllocator: FrameFree...
  220. QSVAllocator: FrameFree external success.
  221. QSVAllocatorSys::ReleaseResponse Success.
  222. QSVAllocator: FrameFree...
  223. QSVAllocator: FrameFree external success.
  224. QSVAllocator: FrameFree internal success.
  225. DeleteAllocator...
  226. QSVAllocator: Closed.
  227. Closing audio readers (if used)...
  228. Closing writer...
  229. avout: Closing...
  230. avout: closed queues...
  231. avout: Closed avformat context.
  232. avout: Closed File Pointer.
  233. avout: Closed format.
  234. avout: Closed video.
  235. avout: Closed.
  236. avout: Closing...
  237. avout: closed queues...
  238. avout: Closed format.
  239. avout: Closed video.
  240. avout: Closed.
  241. Closing reader...
  242. y4m: Closing...
  243. y4m: Close...
  244. timeEndPeriod(1)
  245. Closing perf monitor...
  246. Closed pipeline.
  247.  
  248.  
  249. Output #0, mp4, to '.\encode\RGB360p-yuv422p12.mp4':
  250. Metadata:
  251. encoding_tool : QSVEncC (x64) 2.72
  252. encoder : Lavf57.72.101
  253. Stream #0:0, 0, 1/16384: Video: h264 (High), 1 reference frame ([33][0][0][0] / 0x0021), nv12(progressive, left), 640x360 (0x0), 0/1, q=2-31, 16384 tbn
  254. [mp4 @ 00000192969ee900] Starting second pass: moving the moov atom to the beginning of the file
  255. [file @ 000001929d233ee0] Setting default whitelist 'file,crypto'
  256. [AVIOContext @ 000001929d233b80] Statistics: 49245 bytes read, 0 seeks
  257.  
  258.  
  259. ■ffmpegのログ
  260. ffmpeg version 3.3.3 Copyright (c) 2000-2017 the FFmpeg developers
  261. built with gcc 7.1.0 (GCC)
  262. 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
  263. libavutil 55. 58.100 / 55. 58.100
  264. libavcodec 57. 89.100 / 57. 89.100
  265. libavformat 57. 71.100 / 57. 71.100
  266. libavdevice 57. 6.100 / 57. 6.100
  267. libavfilter 6. 82.100 / 6. 82.100
  268. libswscale 4. 6.100 / 4. 6.100
  269. libswresample 2. 7.100 / 2. 7.100
  270. libpostproc 54. 5.100 / 54. 5.100
  271. Guessed Channel Layout for Input Stream #0.1 : stereo
  272. Input #0, avi, from 'D:\RGB360p.avi':
  273. Duration: 00:00:11.00, start: 0.000000, bitrate: 1956 kb/s
  274. Stream #0:0: Video: lagarith (LAGS / 0x5347414C), rgb24, 640x360, 594 kb/s, 1 fps, 1 tbr, 1 tbn, 1 tbc
  275. Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s
  276. Stream mapping:
  277. Stream #0:0 -> #0:0 (lagarith (native) -> wrapped_avframe (native))
  278. Press [q] to stop, [?] for help
  279. [yuv4mpegpipe @ 0000000002915720] Warning: generating non standard YUV stream. Mjpegtools will not work.
  280. Output #0, yuv4mpegpipe, to 'pipe:':
  281. Metadata:
  282. encoder : Lavf57.71.100
  283. Stream #0:0: Video: wrapped_avframe, yuv422p12le, 640x360, q=2-31, 200 kb/s, 1 fps, 1 tbn, 1 tbc
  284. Metadata:
  285. encoder : Lavc57.89.100 wrapped_avframe
  286. frame= 2 fps=0.0 q=-0.0 size= 1800kB time=00:00:02.00 bitrate=7373.1kbits/s speed=2.53x
  287. frame= 11 fps=0.0 q=-0.0 Lsize= 9900kB time=00:00:11.00 bitrate=7372.9kbits/s speed=13.5x
  288. video:5kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 185708.671875%
  289.  
  290.  
  291. ■テスト用バッチ
  292. @echo off
  293. cd /d %~dp0
  294.  
  295. IF "%~1"=="" (
  296. echo ファイルが指定されていません
  297. goto eof
  298. )
  299.  
  300. set ffmpeg="D:\ffmpeg\Zeranoe\ffmpeg-3.3.3-win64-static\bin\ffmpeg.exe"
  301.  
  302. set qsvenc=.\QSVEncC64.exe
  303.  
  304. mkdir .\encode
  305.  
  306. call :encode "%~1" yuv422p
  307. call :encode "%~1" yuv422p9
  308. call :encode "%~1" yuv422p10
  309. call :encode "%~1" yuv422p12
  310. call :encode "%~1" yuv422p14
  311. call :encode "%~1" yuv422p16
  312.  
  313. :eof
  314.  
  315. pause
  316.  
  317. exit /b
  318.  
  319. REM --------------------------------------------------
  320.  
  321. :encode
  322.  
  323. set outfile=.\encode\%~n1-%2.mp4
  324. set fflog=%outfile%.log-ffmpeg.txt
  325. set qsvlog=%outfile%.log-qsv.txt
  326.  
  327. @echo %2をエンコード中です...
  328.  
  329. %ffmpeg% -i "%~1" -y -strict -1 -pix_fmt %2 -f yuv4mpegpipe - 2> "%fflog%" | %qsvenc% --log-level debug -i - --y4m --codec h264 --profile High --la-icq 25 -o "%outfile%" > "%qsvlog%" 2>&1
  330.  
  331. @echo  エンコード終了[%errorlevel%]
  332.  
  333. exit /b
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement