2017-07-14 152 views
0

最近,我購買了全新的GPU - AORUS GeForce GTX 1080 Ti。我發現它支持HEVC 10位編碼,所以我想嘗試一下。不幸的是,在編碼之後,我注意到了一些出現在黑暗場景和最後一幀視頻中的文物。你可以看到他們對這些截圖:使用FFmpeg的NVENC編碼器進行HEVC 10位編碼後的灰色方形僞影

Screenshot of a still from an animated scene. There is an artifact near the bottom and slightly to the left. It is square shaped with white squiggles.

Screenshot of a still from another animated scene. The artifact looks the same as in the previous image but is in a different location, higher up and closer to the center.

我想知道,如果有人可以幫我找出什麼可能是這些文物的原因,以及如何我可以擺脫他們。

這裏是源視頻的MI:

ID          : 1 
Format         : AVC 
Format/Info        : Advanced Video Codec 
Format profile       : [email protected] 
Format settings, CABAC     : Yes 
Format settings, ReFrames    : 4 frames 
Codec ID         : V_MPEG4/ISO/AVC 
Duration         : 2 h 2 min 
Bit rate mode       : Variable 
Bit rate         : 29.5 Mb/s 
Maximum bit rate       : 37.0 Mb/s 
Width         : 1 920 pixels 
Height         : 1 080 pixels 
Display aspect ratio      : 16:9 
Frame rate mode       : Constant 
Frame rate        : 23.976 (24000/1001) FPS 
Color space        : YUV 
Chroma subsampling      : 4:2:0 
Bit depth        : 8 bits 
Scan type        : Progressive 
Bits/(Pixel*Frame)      : 0.593 
Stream size        : 25.2 GiB (66%) 
Language         : English 
Default         : Yes 
Forced         : No 

這裏是編碼視頻的MI:

ID          : 1 
Format         : HEVC 
Format/Info        : High Efficiency Video Coding 
Format profile       : Main [email protected]@Main 
Codec ID         : V_MPEGH/ISO/HEVC 
Duration         : 2 h 2 min 
Bit rate         : 3 689 kb/s 
Width         : 1 920 pixels 
Height         : 800 pixels 
Display aspect ratio      : 2.40:1 
Frame rate mode       : Constant 
Frame rate        : 23.976 (24000/1001) FPS 
Standard         : Component 
Color space        : YUV 
Chroma subsampling      : 4:2:0 
Bit depth        : 10 bits 
Bits/(Pixel*Frame)      : 0.100 
Stream size        : 3.15 GiB (95%) 
Default         : Yes 
Forced         : No 
Color range        : Limited 

命令我使用的編碼:

ffmpeg -hide_banner -i "<input_file>" -map 0:v:0 -map_chapters -1 -map_metadata -1 -vf "crop=1920:800:0:140" -vcodec hevc_nvenc -pix_fmt p010le -preset hq -profile:v main10 -rc constqp -global_quality 21 -rc-lookahead 32 -g 240 -f matroska Video_CQP21_LAF32_GOP240.mkv 
+0

請發佈解決方案作爲答案,而不是更新您的問題。我回滾了一下,你可以在[修訂](https://stackoverflow.com/posts/45103251/revisions)中看到。謝謝。 – Bugs

回答

1

問題已解決。事實證明,基於GP102內核的GPU上的NVENC在H.265編碼上存在問題。如果超頻超過某個點,這些工件在編碼後出現。降低GPU的核心時鐘應該解決問題。

0

哦,這真的很有趣。你使用一些不尋常的選項。請試試看:

ffmpeg -hide_banner -i "<input_file>" -map 0:v:0 -map_chapters -1 -map_metadata -1 -vf "crop=1920:800:0:140" -vcodec hevc_nvenc -pix_fmt p010le -preset slow -profile:v main10 -qmin 22 -qmax 22 -rc-lookahead 32 -g 240 -f matroska Video_CQP21_LAF32_GOP240.mkv 

這個設置是我可以測試的最好的場景翻錄。

+0

好的,我會試試看。但是,-rc constqp -global_quality 21有什麼特別之處? – Cryman

+0

-global_quality是爲libav *庫設計的,qmin-qmax更具體,量化是我在hevc_nvnec中找到的唯一穩定的速率控制方法。 -rc vbr_2pass比constqp好。它可以節省更多的空間,因爲vbr和使用lookahead。我不確定rc-lookahead是否在沒有2pass的情況下工作。 – hedgar2017

+0

我試着用這個命令編碼。首先,工件仍然存在。在與以前一樣的深色場景中。其次,我在FFmpeg的輸出中得到了一個警告: '[hevc_nvenc @ 0000000002f28c00]不建議使用指定的rc模式。 [hevc_nvenc @ 0000000002f28c00] vbr_2pass - > vbr_hq' 第三,文件大小與使用-rc constqp -global_quality 21.幾乎相同。 – Cryman

相關問題