Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ■QSVEncC v2.72に高深度YUV4:2:2(yuv422p9/12/14/16。yuv422p/yuv422p10は問題無し。)のy4mを渡してエンコードすると緑やマゼンタになってしまう。
- ■QSVEncCのログ
- subscribed com.intel.media.mfx_usage metric
- subscribed com.intel.media.eu_usage metric
- Performace Monitor: none
- Performace Plot : none
- Input: yuv reader selected (y4m).
- y4m: output to stdout.
- y4m: 640x360, pitch:1280, bufferSize:921600.
- y4m: y4m(yuv422(12bit))->p210 [SSE2], 640x360, 1/1 fps
- Input: reader initialization successful.
- Currently yuv422 surfaces are not supported by d3d9/d3d11 memory.
- Switching to system memory.
- CheckParam: 640x360p, 0:0, 1/1, 0 frames
- InitSession: Start initilaizing... memType: system
- InitSession: initialized using system memory.
- InitSession: mfx lib version: 1.19
- CreateAllocator: MemType: system
- CreateAllocator: sys mem allocator...
- CreateAllocator: frame allocator initialized.
- Detected avaliable features for hw API v1.19, H.264/AVC, LA-ICQ (Intelligent Const. Quality with Lookahead)
- RC mode o
- 10bit depth x
- Fixed Func x
- Interlace o
- SceneChange x
- VUI info o
- Trellis o
- Adaptive_I x
- Adaptive_B x
- WeightP o
- WeightB o
- FadeDetect x
- B_Pyramid o
- +Scenechange x
- +ManyBframes x
- PyramQPOffset x
- Ext_BRC x
- MBBRC x
- LA Quality o
- QP Min/Max o
- IntraRefresh x
- No Deblock x
- No GPB x
- Windowed BRC x
- PerMBQP(CQP) x
- DirectBiasAdj x
- MVCostScaling x
- InitMfxEncParams: Output FPS 1/1
- InitMfxEncParams: Auto GOP Length: 10
- InitMfxEncParams: set ext param CDO2.
- InitMfxEncParams: set ext param CDO3.
- InitMfxEncParams: set ext param CDOP.
- InitMfxEncParams: enc input frame 640x368 (0,0,640,360)
- InitMfxEncParams: enc input color format nv12, chroma 1, bitdepth 0, shift 0
- InitMfxEncParams: set all enc params.
- InitMfxVppParams: vpp input frame 640x368 (0,0,640,360)
- InitMfxVppParams: vpp input color format p210, chroma 1, bitdepth 12, shift 1
- InitMfxVppParams: vpp output frame 640x368 (0,0,640,360)
- InitMfxVppParams: vpp output color format nv12, chroma 1, bitdepth 0, shift 0
- InitMfxVppParams: set all vpp params.
- Output: Using avformat writer.
- avout: output filename: ".\encode\RGB360p-yuv422p12.mp4"
- avout: allocated internal buffer 8 MB.
- avout: set external output buffer 8 MB.
- avout: output video stream fps: 1/1
- avout: opened video avcodec
- avout: output video stream timebase: 1/1
- avout: bDtsUnavailable: off
- avout: Initialized video output.
- avout: avwriter: h264 => mp4
- avout: starting output thread...
- Output: Initialized avformat writer.
- Vpp Enabled...
- Vpp Enabled: ColorFmtConvertion: p210 -> nv12
- pipeline element count: 2
- async depth automatically set to 5
- timeBeginPeriod(1)
- ResetMFXComponents: Start...
- ResetMFXComponents: Enc closed.
- ResetMFXComponents: Vpp closed.
- QSVAllocator: FrameFree...
- QSVAllocator: FrameFree external success.
- QSVAllocator: FrameFree internal success.
- QSVAllocator: FrameFree...
- QSVAllocator: FrameFree external success.
- QSVAllocator: FrameFree internal success.
- QSVAllocator: FrameFree...
- QSVAllocator: FrameFree external success.
- QSVAllocator: FrameFree internal success.
- ResetMFXComponents: Frames deleted.
- AllocFrames: m_nAsyncDepth - 5 frames
- AllocFrames: Enc query - 8 frames
- AllocFrames: Vpp query[0] - 5 frames
- AllocFrames: Vpp query[1] - 5 frames
- AllocFrames: nInputSurfAdd 3 frames
- AllocFrames: nDecSurfAdd 0 frames
- AllocFrames: Vpp type: external,system,vppin, 640x368 [0,0,640,360], request 11 frames
- AllocFrames: Enc type: external,system,enc,vppout, 640x368 [0,0,640,360], request 14 frames
- QSVAllocator: FrameAlloc: external,system,enc,vppout, 14 frames.
- QSVAllocator: Allocate type internal.
- QSVAllocatorSys::AllocImpl allocating 14 frames...
- QSVAllocatorSys::AllocImpl Success.
- QSVAllocator: FrameAlloc success.
- AllocFrames: Allocated EncRequest 14
- QSVAllocator: FrameAlloc: external,system,vppin, 11 frames.
- QSVAllocator: Allocate type internal.
- QSVAllocatorSys::AllocImpl allocating 11 frames...
- QSVAllocatorSys::AllocImpl Success.
- QSVAllocator: FrameAlloc success.
- AllocFrames: Allocated VppRequest 11
- ResetMFXComponents: Frames allocated.
- ResetMFXComponents: there might be error below, but it might be internal error which could be ignored.
- ResetMFXComponents: Enc initialized.
- ResetMFXComponents: there might be error below, but it might be internal error which could be ignored.
- ResetMFXComponents: partial acceleration on vpp.
- ResetMFXComponents: Vpp initialized.
- ResetMFXComponents: Creating task pool, poolSize 5, bufsize 920 KB.
- ResetMFXComponents: Created task pool.
- vidprm.AsyncDepth value changed 0 -> 5 by driver
- vidprm.mfx.BRCParamMultiplier value changed 0 -> 1 by driver
- vidprm.mfx.CodecLevel value changed auto -> 2.2 by driver
- cop2.LookAheadDepth value changed 0 -> 10 by driver
- cop2.LookAheadDS value changed auto -> medium by driver
- vidprm.mfx.NumSlice value changed 0 -> 1 by driver
- vidprm.mfx.NumRefFrame value changed 0 -> 3 by driver
- cop.RateDistortionOpt value changed auto -> off by driver
- cop.EndOfSequence value changed auto -> off by driver
- cop.CAVLC value changed auto -> off by driver
- cop.ViewOutput value changed auto -> off by driver
- cop.VuiVclHrdParameters value changed auto -> off by driver
- cop.RefPicListReordering value changed auto -> off by driver
- cop.ResetRefList value changed auto -> off by driver
- cop.MaxDecFrameBuffering value changed 0 -> 3 by driver
- cop.EndOfStream value changed auto -> off by driver
- cop.RefPicMarkRep value changed auto -> off by driver
- cop.FieldOutput value changed auto -> off by driver
- cop.NalHrdConformance value changed auto -> off by driver
- cop.SingleSeiNalUnit value changed auto -> on by driver
- cop.VuiNalHrdParameters value changed auto -> off by driver
- cop.RecoveryPointSEI value changed auto -> off by driver
- cop2.MaxFrameSize value changed 0 -> 176640 by driver
- cop2.BitrateLimit value changed auto -> on by driver
- cop2.MBBRC value changed auto -> off by driver
- cop2.RepeatPPS value changed auto -> on by driver
- cop2.FixedFrameRate value changed 0 -> 16 by driver
- cop2.DisableVUI value changed 0 -> 32 by driver
- cop2.UseRawRef value changed auto -> off by driver
- cop3.NumSliceI value changed 0 -> 1 by driver
- cop3.NumSliceP value changed 0 -> 1 by driver
- cop3.NumSliceB value changed 0 -> 1 by driver
- cop3.EnableMBQP value changed auto -> off by driver
- cop3.MBDisableSkipMap value changed auto -> off by driver
- cop3.AspectRatioInfoPresent value changed auto -> on by driver
- cop3.OverscanInfoPresent value changed auto -> off by driver
- cop3.TimingInfoPresent value changed auto -> on by driver
- cop3.BitstreamRestriction value changed auto -> on by driver
- cop3.LowDelayHrd value changed auto -> off by driver
- QSVEncC (x64) 2.72 (r1349) by rigaya, Aug 16 2017 20:10:59 (VC 1900/Win/avx2)
- OS Windows 10 x64 (14393)
- CPU Info Intel Core i7-4702MQ @ 2.20GHz [TB: 2.90GHz] (4C/8T) <Haswell>
- GPU Info Intel HD Graphics 4600 (20EU) 200-1150MHz [37W] (20.19.15.4531)
- Media SDK QuickSyncVideo (hardware encoder) PG, 1st GPU, API v1.19
- Async Depth 5 frames
- Buffer Memory system, 3 input buffer, 25 work buffer
- Input Info y4m(yuv422(12bit))->p210 [SSE2], 640x360, 1/1 fps
- VPP Enabled ColorFmtConvertion: p210 -> nv12
- Output H.264/AVC High @ Level 2.2
- 640x360p 1:1 1.000fps (1/1fps)
- avwriter: h264 => mp4
- Target usage 4 - balanced
- Encode Mode LA-ICQ (Intelligent Const. Quality with Lookahead)
- Lookahead depth 10 frames, quality medium
- Windowed RC off
- ICQ Quality 25
- QP Limit min: none, max: none
- Trellis Auto
- Ref frames 3 frames
- Bframes 3 frames, B-pyramid: on
- Max GOP Length 10 frames
- Main Thread: Lauching encode thread...
- Encode Thread: Starting Encode...
- Main Thread: Starting Encode...
- Encode Thread: Set surface to input buffer...
- GetNextFrame: Frame read finished.
- Encode Thread: finished main loop.
- Encode Thread: finished getting buffered frames from vpp.
- avout: set format brand "mp42".
- avout: set faststart.
- Encode Thread: finished getting buffered frames from encoder.
- Encode Thread: finished.
- WaitToFinish: Encode thread shut down.
- Main Thread: Finished Main Loop...
- avout: closed output thread...
- avout: closed queues...
- encoded 11 frames, 196.43 fps, 35.77 kbps, 0.05 MB
- encode time 0:00:00, CPULoad: 10.1
- frame type IDR 2
- frame type I 4, total size 0.09 MB
- frame type P 3, total size 0.00 MB
- frame type B 6, total size 0.00 MB
- Main Thread: finished.
- Closing pipeline...
- Closing enc status...
- Closing m_EncThread...
- Closing Plugins...
- Closing m_pmfxDEC/ENC/VPP...
- Closing TaskPool...
- Closing mfxSession...
- DeleteFrames...
- QSVAllocator: FrameFree...
- QSVAllocator: FrameFree external success.
- QSVAllocatorSys::ReleaseResponse Success.
- QSVAllocator: FrameFree...
- QSVAllocator: FrameFree external success.
- QSVAllocatorSys::ReleaseResponse Success.
- QSVAllocator: FrameFree...
- QSVAllocator: FrameFree external success.
- QSVAllocator: FrameFree internal success.
- DeleteAllocator...
- QSVAllocator: Closed.
- Closing audio readers (if used)...
- Closing writer...
- avout: Closing...
- avout: closed queues...
- avout: Closed avformat context.
- avout: Closed File Pointer.
- avout: Closed format.
- avout: Closed video.
- avout: Closed.
- avout: Closing...
- avout: closed queues...
- avout: Closed format.
- avout: Closed video.
- avout: Closed.
- Closing reader...
- y4m: Closing...
- y4m: Close...
- timeEndPeriod(1)
- Closing perf monitor...
- Closed pipeline.
- Output #0, mp4, to '.\encode\RGB360p-yuv422p12.mp4':
- Metadata:
- encoding_tool : QSVEncC (x64) 2.72
- encoder : Lavf57.72.101
- 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
- [mp4 @ 00000192969ee900] Starting second pass: moving the moov atom to the beginning of the file
- [file @ 000001929d233ee0] Setting default whitelist 'file,crypto'
- [AVIOContext @ 000001929d233b80] Statistics: 49245 bytes read, 0 seeks
- ■ffmpegのログ
- ffmpeg version 3.3.3 Copyright (c) 2000-2017 the FFmpeg developers
- built with gcc 7.1.0 (GCC)
- 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
- libavutil 55. 58.100 / 55. 58.100
- libavcodec 57. 89.100 / 57. 89.100
- libavformat 57. 71.100 / 57. 71.100
- libavdevice 57. 6.100 / 57. 6.100
- libavfilter 6. 82.100 / 6. 82.100
- libswscale 4. 6.100 / 4. 6.100
- libswresample 2. 7.100 / 2. 7.100
- libpostproc 54. 5.100 / 54. 5.100
- Guessed Channel Layout for Input Stream #0.1 : stereo
- Input #0, avi, from 'D:\RGB360p.avi':
- Duration: 00:00:11.00, start: 0.000000, bitrate: 1956 kb/s
- Stream #0:0: Video: lagarith (LAGS / 0x5347414C), rgb24, 640x360, 594 kb/s, 1 fps, 1 tbr, 1 tbn, 1 tbc
- Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s
- Stream mapping:
- Stream #0:0 -> #0:0 (lagarith (native) -> wrapped_avframe (native))
- Press [q] to stop, [?] for help
- [yuv4mpegpipe @ 0000000002915720] Warning: generating non standard YUV stream. Mjpegtools will not work.
- Output #0, yuv4mpegpipe, to 'pipe:':
- Metadata:
- encoder : Lavf57.71.100
- Stream #0:0: Video: wrapped_avframe, yuv422p12le, 640x360, q=2-31, 200 kb/s, 1 fps, 1 tbn, 1 tbc
- Metadata:
- encoder : Lavc57.89.100 wrapped_avframe
- frame= 2 fps=0.0 q=-0.0 size= 1800kB time=00:00:02.00 bitrate=7373.1kbits/s speed=2.53x
- frame= 11 fps=0.0 q=-0.0 Lsize= 9900kB time=00:00:11.00 bitrate=7372.9kbits/s speed=13.5x
- video:5kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 185708.671875%
- ■テスト用バッチ
- @echo off
- cd /d %~dp0
- IF "%~1"=="" (
- echo ファイルが指定されていません
- goto eof
- )
- set ffmpeg="D:\ffmpeg\Zeranoe\ffmpeg-3.3.3-win64-static\bin\ffmpeg.exe"
- set qsvenc=.\QSVEncC64.exe
- mkdir .\encode
- call :encode "%~1" yuv422p
- call :encode "%~1" yuv422p9
- call :encode "%~1" yuv422p10
- call :encode "%~1" yuv422p12
- call :encode "%~1" yuv422p14
- call :encode "%~1" yuv422p16
- :eof
- pause
- exit /b
- REM --------------------------------------------------
- :encode
- set outfile=.\encode\%~n1-%2.mp4
- set fflog=%outfile%.log-ffmpeg.txt
- set qsvlog=%outfile%.log-qsv.txt
- @echo %2をエンコード中です...
- %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
- @echo エンコード終了[%errorlevel%]
- exit /b
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement