caydey / ffshare

An android app to compress image, video and audio files through ffmpeg before sharing them
GNU General Public License v3.0
618 stars 30 forks source link

Invalid file (heic) #57

Closed Validbit closed 1 year ago

Validbit commented 1 year ago

When I'm trying to use the share dialog I couldn't sometimes convert files from most gallery apps (sometimes even native and Google Photos) with 'invalid file' toast - from different apps on some days.

I'm uncertain what exactly is causing the issue but the logs won't show it even with 'Enable logs'.

In most cases however (all galleries and app itself) it happens with heic (heif) images. If that's the case is HEIF/HEIC support planned in the near future?

It's been happening for weeks across multiple devices now thus I'm asking here and am available to provide more info if needed. I use Realme GT2 (Android 13).

caydey commented 1 year ago

Not going to lie I've never heard of heif images until now, should be simple to add support for them, I'll try get it done by the weekend.

caydey commented 1 year ago

Unfortunately no version of ffmpeg supports HEIF conversion https://trac.ffmpeg.org/ticket/6521 and therefore it is not possible to implement this feature.

Validbit commented 1 year ago

I see, but the thread is quite old (though relevant) and latest helpful info was posted 11 months ago. (it's commonly requested, since it's native option in most new smartphones (and seems like default in iPhones)

From what I've found, this could work well as a workaround (still using ffmpeg), if you'd want to try. If I had more experience I'd help.

Alternatively, libhevc, or GPAC, or this as fallback) could do the job as well, if it wouldn't make the app too big (atm)