Page 1 of 1

GPU decoding of H.264?

Posted: Sun May 17, 2015 2:05 am
by Reddwarf
What's the status of using the GPU for faster decoding of h.264 recordings? Or is there another trick I can use?

Re: GPU decoding of H.264?

Posted: Sun May 17, 2015 1:05 pm
by erik
Busy implementing

Re: GPU decoding of H.264?

Posted: Mon May 18, 2015 10:08 am
by Reddwarf
That's great news! Will it work both with AMD and Nvidia?

Re: GPU decoding of H.264?

Posted: Mon May 18, 2015 2:08 pm
by erik
DXVA2 based

Re: GPU decoding of H.264?

Posted: Sun May 24, 2015 6:46 pm
by erik
I released build 0.81.077 today with HW decoding for donators

Add the following line to your comskip.ini to enable HW decoding
hardware_decode=1

It should work on DXVA2 compatible HW and h.264 video, possible MPEG2

Don't bother about HW decoding if you have a very fast CPU and slow graphics (like intel HD3000 grahics)

Please test and report back:
- type of CPU
- Type of Graphics HW
- Speed with/ without HW decoding
- Any detection quality differences

Re: GPU decoding of H.264?

Posted: Mon May 25, 2015 12:58 pm
by erik
Dont try 0.81.077, there is a bug that can cause a crash.

Re: GPU decoding of H.264?

Posted: Wed May 27, 2015 3:02 am
by blade
I hope you can get it fixed. My media server is over 8 years old so to say the processor is weak by today's standards is an understatement. Throwing in a new video card and offloading some of the workload of processing h.264 files to the GPU would really free up the CPU on my machine.

Re: GPU decoding of H.264?

Posted: Sat May 30, 2015 10:40 am
by erik
Bug fixed.
WARNING: Still very experimental
Feel free to test hardware decoding in donator build of 0.81.077 and report back with your findings, in particular:
- type of CPU
- Type of Graphics HW
- Speed with/ without HW decoding
- Any detection quality differences

Re: GPU decoding of H.264?

Posted: Sat May 30, 2015 3:58 pm
by Jagad
erik wrote:Bug fixed.
WARNING: Still very experimental
Feel free to test hardware decoding in donator build of 0.81.077 and report back with your findings, in particular:
- type of CPU
- Type of Graphics HW
- Speed with/ without HW decoding
- Any detection quality differences
Seems this is not for my hardware. I got very slow GPU decoding compared to CPU decoding.
- Intel Core i7-2600K 3.40 GHz
- AMD Radeon HD 7900 Series
- MPEG-2 with HW decoding= 368 fps
- MPEG-2 without HW decoding= 2140 fps
- H.264 with HW decoding= 160 fps
- H.264 without HW decoding= 700 fps
- Any detection quality differences - don't know yet

Re: GPU decoding of H.264?

Posted: Tue Jun 02, 2015 3:25 am
by blade
I know this is ancient hardware, but I guess the few of us with stuff this old are the ones most likely to benefit.

Using 0.81.077

Opteron 165 @ 1.8 ghz (dual core)
Radeon HD 4650 PCI-e card (RV730)
H.264 with HW decoding (using a thread count of 2) = 93.54 fps
H.264 without HW decoding (using a thread count of 2) = 71.80 fps

Out of curiosity I bumped the thread count up to 24 just to see what would happen:
H.264 with HW decoding (using a thread count of 24) = 117.13 fps

When I tried processing MPEG-2 with HW decoding comskip crashed and I got the following message in the log file:
Assertion frame->format == AV_PIX_FMT_DXVA2_VLD failed at C:\work\x\avcomskip\src\ffmpeg_dxva2.c:211

Re: GPU decoding of H.264?

Posted: Tue Jun 02, 2015 3:33 am
by blade
Using 0.81.077

Opteron 175 overclocked to 2.75 ghz (dual core)
Radeon HD 3450 PCI-e card (RV620)

H.264 with HW decoding (using a thread count of 2) - during the early part of detection I was getting 6.19 fps so I didn't let comskip finish processing
H.264 without HW decoding (using a thread count of 2) = 133.66 fps

When I tried processing MPEG-2 with HW decoding comskip crashed and I got the following message in the log file:
Assertion frame->format == AV_PIX_FMT_DXVA2_VLD failed at C:\work\x\avcomskip\src\ffmpeg_dxva2.c:211

Re: GPU decoding of H.264?

Posted: Fri Jun 05, 2015 7:47 am
by erik
I removed build 0.81.078 because of bug