jackun / openencodevfw

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

TestAMFVFW version rejected in Sony Vegas #27

Closed Prehistoricman closed 8 years ago

Prehistoricman commented 8 years ago

http://prntscr.com/84d697 I've fiddled with every property in the project settings and VFW I can see, this error pops up. As far as I can tell, it doesn't matter what the project is. I've created a dummy project with one video file and one sound track, and this still occurs. Is there any change that would affect how the codec would communicate with programs using it?

Sony Vegas Pro 13.0 on Windows 7 x64 with the Radeon HD 7870 XT.

Edit: I should mention again that I'm RENDERING from Vegas with your codec, not importing videos recorded with your codec. Just to clarify it's not like other Vegas issues with importing.

ari2k5 commented 8 years ago

Could you share your project settings from Vegas like resolution/framerate/etc

Prehistoricman commented 8 years ago

Using Pro 13.0 build 453

These are screenshots of the project properties dialog: http://prntscr.com/8qhtsk http://prntscr.com/8qhu1j Rending settings: http://prntscr.com/8qhugy http://prntscr.com/8qhumn

jackun commented 8 years ago

Vegas is probably feeding it data in unsupported pixel format or width/height is not divisible by 2. I don't remember if there was a place to force it somewhere. Currently supported is NV12 (fastest), YV12, RGB32 (has to flip the pixels because DIB is upside-down, ugh, and be converted to NV12 hence slow).

Enable logging and look for TestAMFVFW.log. It should be in current work directory (where Vegas is installed or where videos are). There should be a line like:

 Compression query: 32 0 1920x1080

32 is bits per pixel, 0 is compression (FOURCC, 0 means none a.k.a raw RGB). Otherwise it needs more detective work.

E: Crap, RGB32-only in current build, forgot to limit the RGB24 check fail to CPU-only converter. OpenCL converter supports it.

Prehistoricman commented 8 years ago

You must have fixed it since I noticed a problem. I'd been dual booting with old drivers to use the non-AMF version and didn't update until I couldn't find the logging file (even looked for it being written in Resource Monitor, got nothing). Even works when the project is set to 8 bit pixel format.

Thanks for your great support and code!