GithubHelp home page GithubHelp logo

Comments (1)

tanersener avatar tanersener commented on June 1, 2024

This issue happens when font directory registered using setFontDirectory includes named pipes created using registerNewFFmpegPipe.

When subtitle burning command is being executed, fontconfig reads all files under the registered font directory as part of the font loading process. However, in this case, font directory also contains named pipes not closed by closeFFmpegPipe. So, fontconfig tries to read named pipes as well. And, since named pipes require someone to write something into the pipe, fontconfig can not read named pipes successfully and wait forever.

There are two wrongs in this case but none of them are ffmpeg-kit bugs.

  • An ffmpeg pipe created using registerNewFFmpegPipe is not closed
  • Cache directory is used as font directory

Unfortunately, fontconfig scans sub-directories as well. So, creating ffmpeg pipes under a sub-directory of cache does not solve this problem.

The only solution is not to register application cache directory as font directory on Android.

This issue does not happen on Apple platforms, because they use different directories to create pipes and load fonts. Pipes are created under the application cache folder and fonts are loaded from the resource folder. But the same principle must be followed on them too. Application cache directory shouldn't be registered as font directory on iOS/tvOS/macOS. If not it will happen on Apple devices too.

from ffmpeg-kit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.