Discussion:
[FFmpeg-user] HW acceleration and ffmpeg
v***@tutanota.com
2018-11-12 12:41:59 UTC
Permalink
Hello!
I have a couple of questions about ffmpeg tool.
When I use the ffmpeg tool that was compiled with support of one of the hardware accelerators, will the tool automatically use this acceleration while working? Or it has to be explicitly specified somehow that it must be used?
And if it attempts to use it, how do I check whether that attempt was successful?

_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-req
Harshil Makwana
2018-11-12 13:30:48 UTC
Permalink
Hi,

You need to specify hardware accelerator to ffmpeg.

You can give hw acceleration name with
-hwaccel option to ffmpeg.

And if you want to use it with any binary then its example code is located at :

doc/examples/hw_decode.c or doc/examples/vaapi_encode.c or
doc/examples/vaapi_decode.c file

You can compile and use its binary.

Thanks
Harshil
Post by v***@tutanota.com
Hello!
I have a couple of questions about ffmpeg tool.
When I use the ffmpeg tool that was compiled with support of one of the hardware accelerators, will the tool automatically use this acceleration while working? Or it has to be explicitly specified somehow that it must be used?
And if it attempts to use it, how do I check whether that attempt was successful?
_______________________________________________
ffmpeg-user mailing list
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-***@ffmpeg.org with subj
v***@tutanota.com
2018-11-12 15:43:43 UTC
Permalink
So I assume there's no way of making it use HWA automatically via some build parameters without getting into the code, right?
I'm using a video source filter which wraps itself around ffmpeg and I need it to do the HWA, which it does not. So if I had an auto-HWA-enabled ffmpeg build, I could build that filter against it and HWA would work.
Post by Harshil Makwana
Hi,
You need to specify hardware accelerator to ffmpeg.
You can give hw acceleration name with
-hwaccel option to ffmpeg.
doc/examples/hw_decode.c or doc/examples/vaapi_encode.c or
doc/examples/vaapi_decode.c file
You can compile and use its binary.
Thanks
Harshil
Post by v***@tutanota.com
Hello!
I have a couple of questions about ffmpeg tool.
When I use the ffmpeg tool that was compiled with support of one of the hardware accelerators, will the tool automatically use this acceleration while working? Or it has to be explicitly specified somehow that it must be used?
And if it attempts to use it, how do I check whether that attempt was successful?
_______________________________________________
ffmpeg-user mailing list
http://ffmpeg.org/mailman/listinfo/ffmpeg-user <http://ffmpeg.org/mailman/listinfo/ffmpeg-user>
To unsubscribe, visit link above, or email
_______________________________________________
ffmpeg-user mailing list
http://ffmpeg.org/mailman/listinfo/ffmpeg-user <http://ffmpeg.org/mailman/listinfo/ffmpeg-user>
To unsubscribe, visit link above, or email
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg
Harshil Makwana
2018-11-13 12:05:09 UTC
Permalink
Yes

Sent from my iPhone
Post by v***@tutanota.com
So I assume there's no way of making it use HWA automatically via some build parameters without getting into the code, right?
I'm using a video source filter which wraps itself around ffmpeg and I need it to do the HWA, which it does not. So if I had an auto-HWA-enabled ffmpeg build, I could build that filter against it and HWA would work.
Post by Harshil Makwana
Hi,
You need to specify hardware accelerator to ffmpeg.
You can give hw acceleration name with
-hwaccel option to ffmpeg.
doc/examples/hw_decode.c or doc/examples/vaapi_encode.c or
doc/examples/vaapi_decode.c file
You can compile and use its binary.
Thanks
Harshil
Post by v***@tutanota.com
Hello!
I have a couple of questions about ffmpeg tool.
When I use the ffmpeg tool that was compiled with support of one of the hardware accelerators, will the tool automatically use this acceleration while working? Or it has to be explicitly specified somehow that it must be used?
And if it attempts to use it, how do I check whether that attempt was successful?
_______________________________________________
ffmpeg-user mailing list
http://ffmpeg.org/mailman/listinfo/ffmpeg-user <http://ffmpeg.org/mailman/listinfo/ffmpeg-user>
To unsubscribe, visit link above, or email
_______________________________________________
ffmpeg-user mailing list
http://ffmpeg.org/mailman/listinfo/ffmpeg-user <http://ffmpeg.org/mailman/listinfo/ffmpeg-user>
To unsubscribe, visit link above, or email
_______________________________________________
ffmpeg-user mailing list
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-***@ffm

Loading...