51

Re: Some results from QTGMC & HEVC encoding tests

Selur wrote:

Is that for you the case too?

Yes!

52

Re: Some results from QTGMC & HEVC encoding tests

Send you a link to a new dev version which should fix it. smile

53

Re: Some results from QTGMC & HEVC encoding tests

Testing the new dev version now... update shortly.

54

Re: Some results from QTGMC & HEVC encoding tests

Same issue is still present in output. I attached DebugOutput, just in case.

55

Re: Some results from QTGMC & HEVC encoding tests

Stange, the debug output shows:

# setting field order to what QTGMC should assume
clip = core.std.SetFrameProp(clip=clip, prop="_FieldBased", intval=1)
# Deinterlacing using QTGMC
clip = havsfunc.QTGMC(Input=clip, Preset="Faster", TFF=False, InputType=0, TR2=0, Sharpness=1.0, SourceMatch=0, Lossless=0)
# Output
clip.set_output()

yet, when I load the source here and enable Bob in QTGMC, I get:

# setting field order to what QTGMC should assume
clip = core.std.SetFrameProp(clip=clip, prop="_FieldBased", intval=1)
# Deinterlacing using QTGMC
clip = havsfunc.QTGMC(Input=clip, Preset="Fast", TFF=True)
# Output
clip.set_output()

-> will reupload the version under another link to make sure we have the same.

56

Re: Some results from QTGMC & HEVC encoding tests

Forget that think I found the problem,..

57

Re: Some results from QTGMC & HEVC encoding tests

Latest dev version processes fields in the correct order - great work Selur!

58

Re: Some results from QTGMC & HEVC encoding tests

Happy that worked. smile

59

Re: Some results from QTGMC & HEVC encoding tests

This is how the bugs get found, and squashed smile

60 (edited by JDiG 2017-02-15 20:10:30)

Re: Some results from QTGMC & HEVC encoding tests

Back to testing Vapoursynth, x265 and Slices.

Discovered quickly that Slices 0, 8 and 6 all result in x265 grabbing some RAM and freezing. Disabling pmode, pme and "Auto enable distributed analysis" did not help.

Best result so far was with 2 Slices, pmode, pme and "Auto enable distributed analysis" disabled: x265 processed 49.21% of the source at an average of 19.51 fps (Ultrafast preset) until it gave up.

I think I'll forget about using more Slices than 1; seems like a lot of hassle & effort for probably a very small gain in encoding speed.

61

Re: Some results from QTGMC & HEVC encoding tests

Something weird: open source file, choose NVEnc that defaults to h264, select Variable Bitrate (HQ) and enter bitrate & max bitrate values. Then switch codec to h265.

What happens: Max bitrate field content is changed to a very large negative number, which cannot be deleted or edited.

62

Re: Some results from QTGMC & HEVC encoding tests

argh,.. looking into it smile

63 (edited by JDiG 2017-02-15 20:25:55)

Re: Some results from QTGMC & HEVC encoding tests

^ Tried to make a DebugOutput file to help, but went through the Debug text and didn't see anything related to the bug.

edit:  Added DebugOutout just in case.

64

Re: Some results from QTGMC & HEVC encoding tests

Should be fixed now. Mixed up an index.

Cu Selur

65

Re: Some results from QTGMC & HEVC encoding tests

^ Thanks!

66 (edited by JDiG 2017-02-15 23:03:48)

Re: Some results from QTGMC & HEVC encoding tests

That bug was squashed, but I found another one smile

NVEnc set for VBR (HQ) encode, bitrates set to 9800 and max 10800. Vapoursynth did the QTGMC chores, deinterlacing and bobbing from 1080i29.97 to 1080p59.94.

I kept an eye an Hybrid while it was encoding, and the information shown in its titlebar reported avg bitrate as 9.8-9.9 Mbps. The output size should have been somewhere around 220-240 MB. Instead the output file has a size of 524 MB. MediaInfo reported its average bitrate as 19.9 mbps.

I didn't have debugging enabled (d'oh), but here's what the status window reports:

starting Main@22:32:48.410: "C:\PROGRA~1\Hybrid\ffmpeg.exe" -y -threads 16 -analyzeduration 100M -probesize 100M -i "Z:\ENC_SRC\sourcefile.ts" -map 0:1 -vn -sn -acodec copy  -map_metadata -1 -metadata handler_name="Hybrid 2017.02.14.1" "F:\HYBRID~1\iId_3_aid_20_lang_kor_DELAY_-3ms_22_32_47_2810_01.ac3"
finished after 00:00:16.387
created F:\HYBRID~1\iId_3_aid_20_lang_kor_DELAY_-3ms_22_32_47_2810_01.ac3 (10.0459 MB)
connecting helper 'finished' to 'helper2Finished'
checking sox temp folder,..
created temp sox folder 'F:\HYBRID_TEMP\22_32_47_281002'.
starting Main@22:33:04.805: "C:\PROGRA~1\Hybrid\ffmpeg.exe" -y  -threads 16 -f sox -i - -c:a aac -strict -2 -b:a 192k -ac 2 -ar 48000 -channel_layout stereo "F:\HYBRID_TEMP\iId_3_aid_20_lang_kor_DELAY_-3ms_22_32_47_2810_02.aac"
deleted sox temp folder 'F:\HYBRID_TEMP\22_32_47_281002'.
finished after 00:00:11.675
created F:\HYBRID_TEMP\iId_3_aid_20_lang_kor_DELAY_-3ms_22_32_47_2810_02.aac (5.20774 MB)
starting cleanUpJob for: F:\HYBRID~1\iId_3_aid_20_lang_kor_DELAY_-3ms_22_32_47_2810_01.ac3
deleted F:\HYBRID~1\iId_3_aid_20_lang_kor_DELAY_-3ms_22_32_47_2810_01.ac3
Indexer finished with exitcode: 0 and exitStatue: 0
connecting helper 'finished' to 'helper2Finished'
starting Main@22:33:32.234: "C:\PROGRA~1\Hybrid\NVEncC.exe" --y4m -i - --fps 59.940 --codec h265 --profile main --level auto --sar 1:1 --lookahead 30 --output-depth 8 --vbrhq 9800 --max-bitrate 10800 --aq --gop-len 600 --bframes 0 --ref 6 --mv-precision Q-pel --cu-max 32 --cu-min 8 --output "F:\HYBRID~1\sourcefile_22_32_47_2810_07.265"
NVEnc 3.06 (x64), using NVENC API v7.1 OS Version     Windows 7 (x64) CPU            Intel Xeon(R) X5660  @ 2.80GHz [TB: 2.97GHz] (12C/24T) GPU            #0: GeForce GTX 1060 3GB (9 EU) @ 1835 MHz (378.49) Input Buffers  CUDA, 32 frames Input Info     y4m(yv12)->nv12 [SSE2], 1920x1080, 30000/1001 fps Vpp Filters    copyHtoD Output Info    H.265/HEVC main @ Level auto                1920x1080p 1:1 29.970fps (30000/1001fps) Rate Control   VBRHQ Bitrate        9800 kbps (Max: 10800 kbps) Initial QP     I:20  P:23  B:25 VBV buf size   auto Lookahead      on, 30 frames, Adaptive I, B Insert GOP length     600 frames B frames       0 frames Ref frames     6 frames, LTR: off AQ             on MV Quality     Q-pel CU max / min   32 / 8 
                                                                                                                                                          encoded 13160 frames, 25.04 fps, 9927.81 kbps, 519.68 MB encode time 0:08:45 / CPU Usage: 1.08 frame type IDR    77 frame type I      77,  avgQP  24.97,  total size    8.50 MB frame type P   13083,  avgQP  28.34,  total size  511.18 MB 
finished after 00:08:50.109
created F:\HYBRID~1\sourcefile_22_32_47_2810_07.265 (519.676 MB)
starting cleanUpJob for: F:\HYBRID_TEMP\encodingTempSynthSkript_22_32_47_2810.vpy
deleted F:\HYBRID_TEMP\encodingTempSynthSkript_22_32_47_2810.vpy
starting cleanUpJob for: F:\HYBRID_TEMP\22_32_47_2810.d2v
deleted F:\HYBRID_TEMP\22_32_47_2810.d2v
starting Main@22:42:22.364: "C:\PROGRA~1\Hybrid\mkvmerge.exe" --ui-language en -o "Z:\ENC_OUT\sourcefile.mkv" --global-tags "F:\HYBRID_TEMP\sourcefile_22_32_47_2810__10.xml" -d 0 --default-track 0:yes --default-duration 0:59940/1000fps --aspect-ratio-factor 0:1/1 --no-chapters --compression -1:none --forced-track 0:yes --no-audio --no-subtitles "F:\HYBRID~1\sourcefile_22_32_47_2810_07.265" --language 0:kor --default-track 0:yes --sync 0:-3 --forced-track 0:no -a 0 --compression -1:none --no-video --no-subtitles --no-chapters "F:\HYBRID_TEMP\iId_3_aid_20_lang_kor_DELAY_-3ms_22_32_47_2810_02.aac"
finished after 00:00:15.114
created Z:\ENC_OUT\sourcefile.mkv (524.949 MB)
starting cleanUpJob for: F:\HYBRID_TEMP\sourcefile_22_32_47_2810__10.xml
deleted F:\HYBRID_TEMP\sourcefile_22_32_47_2810__10.xml
starting cleanUpJob for: F:\HYBRID~1\sourcefile_22_32_47_2810_07.265
deleted F:\HYBRID~1\sourcefile_22_32_47_2810_07.265
starting cleanUpJob for: F:\HYBRID_TEMP\iId_3_aid_20_lang_kor_DELAY_-3ms_22_32_47_2810_02.aac
deleted F:\HYBRID_TEMP\iId_3_aid_20_lang_kor_DELAY_-3ms_22_32_47_2810_02.aac
Job 22_32_47_2810 finished!

Here's what MediaInfo says of the output file:

Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main@L5@Main
Codec ID                                 : V_MPEGH/ISO/HEVC
Duration                                 : 3 min
Bit rate                                 : 19.9 Mb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Variable
Frame rate                               : 59.940 (60000/1001) FPS
Original frame rate                      : 29.970 (30000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Bits/(Pixel*Frame)                       : 0.160
Stream size                              : 520 MiB (99%)
Default                                  : Yes
Forced                                   : Yes

Format Profile is Main@L5 which is odd. Level 5 does not allow 60p, right? That should be Level 5.1 which does. Checked, and I've got Level set to "Auto" in NVEnc settings. I'll run another encode where Level is manually forced to 5.1.

67

Re: Some results from QTGMC & HEVC encoding tests

Argh, this is probably Hybrids fault, sicne the fps isn't propers reproted to NVEncC,..
-> looking into it

68

Re: Some results from QTGMC & HEVC encoding tests

Okay, I know where the problem is: The ffmpeg decoder helper doesn't take the Vapoursynth script into account. This will take me a bit to fix. smile

69

Re: Some results from QTGMC & HEVC encoding tests

^ No rush! Don't forget to get some shut-eye too smile

70

Re: Some results from QTGMC & HEVC encoding tests

Can't sleep well when there are still too many bugs around. wink

71 (edited by JDiG 2017-02-16 20:39:00)

Re: Some results from QTGMC & HEVC encoding tests

Okay, testing the latest dev version from last night. Source this time was a 1080p60 AVC .ts, and I was trying to do a simple NVEnc encode without any deinterlacing or filtering. See attached DebugOutput, thanks.

72

Re: Some results from QTGMC & HEVC encoding tests

"C:\PROGRA~1\Hybrid\VAPOUR~1\vspipe.exe" "F:\HYBRID_TEMP\encodingTempSynthSkript_20_34_49_7410.vpy" - --y4m | "C:\PROGRA~1\Hybrid\ffmpeg.exe" -y -loglevel fatal -threads 16 -f yuv4mpegpipe -i - -an -sn  -vsync 0 -vf scale,format=yuv420p  -f yuv4mpegpipe - | "C:\PROGRA~1\Hybrid\NVEncC.exe" --y4m -i - --fps 60.000 --codec h265 --profile main --level 5.1 --sar 1:1 --lookahead 30 --output-depth 8 --vbrhq 3000 --max-bitrate 3300 --aq --gop-len 600 --bframes 0 --ref 6 --mv-precision Q-pel --cu-max 32 --cu-min 8 --output "F:\HYBRID~1\170122 COD Asia Championship Final_20_34_49_7410_04.265"

bricht ab mit:

 y4m: failed to parse y4m header.
Failed to open input file.

-> geht der Vapoursynth preview?

Vapoursynth script:

# Imports
import vapoursynth as vs
core = vs.get_core()
# Loading Plugins
core.std.LoadPlugin(path="C:/Program Files/Hybrid/vsfilters/SourceFilter/FFMS2/ffms2.dll")
# Loading Z:\KPOP_DL\170122 COD Asia Championship Final.ts using FFMS2
clip = core.ffms2.Source(source="Z:/KPOP_DL/1LXY89~Z.TS",cachefile="F:/HYBRID_TEMP/20_34_49_7410.ffindex",fpsnum=60,format="YUV420P8")
# Output
clip.set_output()

sieht an sich okay aus, aber eventuell kommt FFMS2 mit der Quelle nicht klar,..

73

Re: Some results from QTGMC & HEVC encoding tests

Selur wrote:

-> geht der Vapoursynth preview?

One day I'll learn to run the preview before posting here smile

Nope, it does not run OK. See here:

https://s16.postimg.org/a97rqdmg5/ffms2_vs_error.png

74

Re: Some results from QTGMC & HEVC encoding tests

Okay, seems like the ffms2 version is broken,...
Does it work if you replace the ffms2.dll with the 64bit one from https://github.com/FFMS/ffms2/releases ?

75

Re: Some results from QTGMC & HEVC encoding tests

Selur wrote:

Does it work if you replace the ffms2.dll with the 64bit one from https://github.com/FFMS/ffms2/releases ?

Nope:

https://s28.postimg.org/pc4yc7psd/ffms2_vs_error_02.png