jackun / openencodevfw

No longer a VFW (video for windows) frontend for AMD VCE H264 encoder
58 stars 12 forks source link

Non standart 1200p #21

Open Erliz opened 9 years ago

Erliz commented 9 years ago

Hello! First of all: THANK YOU! =) I try about 2 days to start work your codec on Dxtroy, but no result at all. Programm is freezing on INIT state and nothing happends. At ErrorLog file of Dxtroy have this lines

PID:12072    TID:10540    TickCount: 3060625 Error ICCompressBegin err=ICERR_INTERNAL(-4)
PID:12072    TID:10540    TickCount: 3060625 fcc=h264

Other codecs nicely grab video from screen =( Today i tried your build of OBS, and after some manupulations i've got Error about screen resolution, that maximum is 1920x1080. My screen resolution is 1920x1200. I set up crop for 1080 and it's start to grab! Then i set up Dxtroy for clipping with needed size and it start to grab too! I was extremely happy! I have R290x video card and tried to capture with level 5.1 but it`s fails too =(

And now the question =) Is it a bug of codec or H.264 restriction?

jackun commented 9 years ago

Hm, check Log, try to capture the game again and paste the log here. Log file openencode.log is usually written to the same folder as where the game executable is located.

Erliz commented 9 years ago

Here is my configurations http://goo.gl/lZiH9U And in log file was just:

GetState
GetState
jackun commented 9 years ago
this goo.gl shortlink has been disabled.

What the ...

Log should have more stuff like so:

Compression query: 32 0 1084x692
Compression query: 32 0 1084x692
CompressQuery OK 
Compression query: 32 0 1084x692
CompressQuery OK 
Initializing Encoder...
Devices: 1
Selecting device: 0
Device 0 @ 0x06a54d38: Hawaii
Parallel compute units: 40

1084x692 being the resolution that Dxtory is capturing at. Oh right, If you open the codec configuration dialog it may (and probably will) overwrite the previous log.

Erliz commented 9 years ago

Here is the link again http://www.evernote.com/shard/s135/sh/a67fd577-40eb-4790-9383-d196140b2d80/aad11cb640305b8688d4f9e6062e1f63 Log always rewrite after a open codec configuration dialog... my steps

  1. remove openencode.log in Dxtory dir
  2. open config dialog in Dxtory uncheck and check Log checkbox 2.a openencode.log appear in Dxtory dir with the same content -_-
  3. open game
  4. start video capturing
  5. wait about 20 seconds (all time INIT is on the screen)
  6. stop capturing (counter again set to green)
  7. open openencode.log:
GetState
GetState

p.s. on start and stop capturing, there are no log file modification or access by file timestamp

jackun commented 9 years ago

Not Dxtory's dir, but game's dir ;)

But you haven't checked Clipping in Dxtory and maybe scaling would be better.

Also check Crop for no green bars and Send frame rate to VCE for more efficient (read: lower) bitrate. Colormatrix should probably be BT.709...full range.. (recommended)

Erliz commented 9 years ago

I found it! it was not near the main .exe file, suddenly in "Tools" dir o_0

Failed to open encoder session.
You may need to restart your computer.

And when i useing "Clipping" the log is

Compression query: 32 0 1920x1080
Compression query: 32 0 1920x1080
CompressQuery OK 

Compression query: 32 0 1920x1080
CompressQuery OK 

Initializing Encoder...
Device count: 1
Selecting device: 0
Device 0 @ 0x4522bf48: Hawaii
Parallel compute units: 44
**** CAPS ****
* Bitrate Max: 100000000 Min: 0
* Picture size Max: 14400 Min: 16 (Macroblocks (width/16) * (height/16))
* Profiles:
*   Prof: 66 Level: 10
*   Prof: 77 Level: 11
*   Prof: 100 Level: 12
*   Prof: 66 Level: 13
*   Prof: 77 Level: 20
*   Prof: 100 Level: 21
*   Prof: 66 Level: 22
*   Prof: 77 Level: 30
*   Prof: 100 Level: 31
*   Prof: 66 Level: 32
*   Prof: 77 Level: 40
*   Prof: 100 Level: 41
*   Prof: 66 Level: 42
*   Prof: 77 Level: 50
*   Prof: 100 Level: 51
*   Prof: 66 Level: 10
*   Prof: 77 Level: 11
*   Prof: 100 Level: 12
*   Prof: 66 Level: 13
*   Prof: 77 Level: 20
**************
Build Options are : -cl-single-precision-constant -cl-mad-enable -cl-fast-relaxed-math -cl-unsafe-math-optimizations -DBT709_ALT1_LIMITED 
clGetKernelWorkGroupInfo: 256
CompressBegin
CompressEnd

VCE Performance
Processor Frequency: 4026.85 MHz (4026845696.00)
GPU Frequency      : 1040.00 MHz
VCE Frame Rate (encode)       : 49101512.00 / 82.01 FPS
VCE Frame Rate (copy back)    : 4951656.00 / 813.23 FPS
CL colourspace conversion     : 9687747.00 / 415.66 FPS
Memory write                  : 7196615.50 / 559.55 [FPS]
Whole compression             : 63743652.00 / 63.17 [FPS]
Y kernel                      : 0.000067 seconds (avg)
UV kernel                     : 0.000047 seconds (avg)

If i use scaling i'll have black columns on left and right =) I have monitor for photo edition, and in collormatrix "BT.709...full range.. (recommended)" Video turns whitish. And in current colormatrix i have the same color in video and in the game.