Jump to content

So I like recording gameplay footage and some camera stuff, then editing in Adobe Premiere. The short version is that Premiere doesn't play nice with video in Variable Frame Rate (VFR) and I've been using ffmpeg to get all my videos into Constant Frame Rate (CFR).

 

Seeing as how I plan to encode and edit quite a few videos, I figured I should find the fastest and most optimal way to encode videos, so I looked into hardware acceleration. With my i7-6700K and it's Intel HD 530, my EVGA GTX 1080 SC, and Microsoft's DXVA2, I set out to do some testing. My question for here though is this: I've been able to combine DXVA2 with Nvidia NVENC, and I was also able to combine Intel's Quick Sync (QSV) with NVENC, but does anyone know if I can put together DXVA2 and QSV, or even possibly DXVA2 + NVENC + QSV? And if so, how would I run ffmpeg to use them properly?

 

Right now, I've been using ffmpeg's QSV through the "-hwaccel QSV" command, but supposedly the codec h264_qsv should work too, but using that setting always crashes ffmpeg.

 

The tests results that I've compiled into a big spreadsheet are for the most part complete, but I haven't been able to get the aforementioned combinations working, and I like being thorough in my testing.

 

Any help is appreciated.

Link to comment
https://linustechtips.com/topic/673158-ffmpeg-and-hardware-acceleration/
Share on other sites

Link to post
Share on other sites

40 minutes ago, HunterAP said:

So I like recording gameplay footage and some camera stuff, then editing in Adobe Premiere. The short version is that Premiere doesn't play nice with video in Variable Frame Rate (VFR) and I've been using ffmpeg to get all my videos into Constant Frame Rate (CFR).

 

Seeing as how I plan to encode and edit quite a few videos, I figured I should find the fastest and most optimal way to encode videos, so I looked into hardware acceleration. With my i7-6700K and it's Intel HD 530, my EVGA GTX 1080 SC, and Microsoft's DXVA2, I set out to do some testing. My question for here though is this: I've been able to combine DXVA2 with Nvidia NVENC, and I was also able to combine Intel's Quick Sync (QSV) with NVENC, but does anyone know if I can put together DXVA2 and QSV, or even possibly DXVA2 + NVENC + QSV? And if so, how would I run ffmpeg to use them properly?

 

Right now, I've been using ffmpeg's QSV through the "-hwaccel QSV" command, but supposedly the codec h264_qsv should work too, but using that setting always crashes ffmpeg.

 

The tests results that I've compiled into a big spreadsheet are for the most part complete, but I haven't been able to get the aforementioned combinations working, and I like being thorough in my testing.

 

Any help is appreciated.

Hardware acceleration on ffmpeg seems to be spotty at beat. Nonetheless, it does support nvenc, which can use your gtx 1080's power to encode.

My native language is C++

Link to post
Share on other sites

12 hours ago, tt2468 said:

Hardware acceleration on ffmpeg seems to be spotty at beat. Nonetheless, it does support nvenc, which can use your gtx 1080's power to encode.

As I said, I've had success using NVENC< NVENC + DXVA2, and NVENC + QSV, but I was asking oif there's a way to use DXVA2 + QSV together, or possibly NVENC + DXVA2 + QSV.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×