Comments (1)
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 usingregisterNewFFmpegPipe
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)
- vision os support HOT 1
- Metadata tags for video file differs by platform HOT 1
- Use 1 as the default MediaFormat i-frame-interval, please set gop_size properly (>= fps) HOT 2
- vp9_videotoolbox support
- How do I use ffmpegkit in my React Native project to get a video stream and give it to my control to output HOT 1
- Expo 50 requires modular headers in podfile for iOS
- [react native] app build fails after pod install ffmpegkit.xcframework/Info.plist doesn't exist HOT 4
- Other than English text is not supported HOT 2
- Clarification: Is it necessary to load the system library for FFMpeg kit?
- i am using ffmpeg_kit_video and adding text on video or image it working properly on my 2 or 3 android phones. but it gives issue in my client s24 device . please help me
- Is it possible to receive and show UDP live stream using FFPlay in Swiftui? HOT 1
- Null pointer dereference while using 'drawtext' filter (only in debug mode) HOT 1
- Can't run in macos with ffmpeg kit HOT 1
- How do i convert .flac file to .mp3 using ffmpeg-kit?
- 【Question】Can I set multiple font directory paths on iOS?
- libvpx Android build fails with latest NDK LTS version 26.2.11394342 HOT 1
- Support visionOS HOT 1
- Question/Request: More clarity on how to create a video that other apps can see (Android) HOT 1
- Problem with -shortest
- FFmpegKit failed to start on brand samsung: libffmpegkit_abidetect.so not found
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ffmpeg-kit.