-
-
Notifications
You must be signed in to change notification settings - Fork 302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use hevc_cuvid instead of software decoding if available #1322
Comments
You can try with the branch if you like: #1296 However it should be possible to build the main branch against ffmpeg dist and use that. Its not enabled by default but you can compile it to be so. The bigger issue is "what is happening when it fails" for your samples. Do you have a specific example that consistently shows the problem? Can you share that sample? |
Case 1: Fails completely
Case 2: https://github.com/Neoclassic/heic_test_cases/blob/main/LiveOff.HEIC Type is : hevc (Main Still Picture)
So it has an embedded thumbnail as well Stream #0:48[0x32] of size 320x240, but requirement is convert full image to png. One option is to get tiles and then montage them. |
Have you tested with libheif and the ffmpeg decoder plugin? |
@bradh Yes, surely going to try. There is some learning curve for me here. |
I decoded them OK with libheif (not HW accelerated though). Also, the iphone image has personal information in it, which you might want to strip out. |
Thanks bradh, I cannot work with software decoding due to legal challenges related with the format. But will try with your PR. |
I built libheif using https://github.com/bradh/libheif/tree/nvdev_merge_2 But getting this error
[istream] request_range 0 - 1024 |
Same problem with main branch as well
|
@bradh Just in case it is something known. |
some more logs
|
@bradh Its working with your fork "nvdev_merge_2" , the 6x8 tile heic image. But far too slow. Problem looks like in initializing cuda for every tile. Can become super fast if that can be avoided somehow. `time ./examples/heif-dec ~/ffmpeg_test/testfiles/LiveOff.HEIC out.png real 0m17.878s |
|
Feature request to use hardware decoding if available for hevc formats.
Please apprise if it already possible. I already have a ffmpeg dist with nvidia hevc decoder.
Although that works fine for some heic to png. But In case of images with tiles it fails to provide full image area as png.
The text was updated successfully, but these errors were encountered: