Comments (12)
I guess picture-based subtitles were not tested. Can you provide a sample .srt file so I can test it?
from mobile-ffmpeg.
Hi, @tanersener
Here is demo,https://github.com/FengDeng/SOSubtitle/tree/master/SOSubtitle
Thanks for your help.
from mobile-ffmpeg.
Hi,
I made some tests with your project. Burning picture-based subtitles worked on IOS simulator but crashed on a real device with arm64
architecture. Is this the issue you encountered?
from mobile-ffmpeg.
Yes,It crashed on real devices.
from mobile-ffmpeg.
from mobile-ffmpeg.
add subtitle by "-vf "
mp4 file size 22M
android memory Increased to 100M+
from mobile-ffmpeg.
By the way,memory leaks...
I see them too, unfortunately they come from ffmpeg
libraries, no quick fix atm. Tried many things about them but modifying ffmpeg
source is needed. Good thing is most of them are small in size, around a few KB. But some leaks in external libraries x265
and libvidstab
are huge and wastes MBs. Will monitor them in new releases.
Your issue with subtitles is a bug. I'm working on it but can not give a time frame about the fix.
from mobile-ffmpeg.
Hi, a patch is released about this issue; v2.1.1
is published in cocoapods.
from mobile-ffmpeg.
Thanks your great project.I changed my way of implementation.Not use ffmpeg.
And I test 2.1.1 with my demo,picture-based subtitle is not work.
from mobile-ffmpeg.
OK mate; it's your decision to use FFmpeg
or not. I just want to make sure everything is working properly.
There is an error on your project (https://github.com/FengDeng/SOSubtitle/tree/master/SOSubtitle). By applying the following two steps it is possible to successfully burn picture-based subtitles.
1. Add 方正大黑_GBK.ttf
font to your project.
2. Update these two statements inside AppDelegate.swift
if let resourcePath = Bundle.main.resourcePath {
MobileFFmpegConfig.setFontDirectory("\(resourcePath)", with: nil)
}
let r = MobileFFmpeg.execute("-i \(input) -vf subtitles=\(ass):force_style='FontName=方正大黑_GBK' \(output)")
Generated video will include subtitles.
from mobile-ffmpeg.
@tanersener
cool.Thanks very much.Sorry to trouble you.
from mobile-ffmpeg.
no trouble mate, anytime
from mobile-ffmpeg.
Related Issues (20)
- Android 10: Permission denied HOT 7
- Overlay enable not working in ios FFMPEG 4.4 (tried all versions) HOT 2
- How to APK size Decreased My App is Video to Mp3 Converter and Ringtone Maker (Mp3 Trim) HOT 2
- Unknown encoder 'libx264'
- android LTS build error HOT 1
- can we convert .mp4 to .m3u8 for hls streaming
- Does this allow access to raw video? HOT 1
- UI not changed in main thread.
- dlopen failed: cannot locate symbol "av_rdft_init" crash HOT 9
- [Android] libwebp create animated webp HOT 1
- mediacodec inconsistency - "error while decoding stream" HOT 3
- big sur 11.1 OSX with xcode 12.4 cannot build with --lts option HOT 5
- `undefined reference to 'std::__ndk1::` when trying ffmpeg executable
- Invalid too big or non positive size for width '' or height '' HOT 2
- Unrecognized option 'x265-params' HOT 1
- Unable to find a suitable output format
- Lower IOS_MIN_VERSION for Main releases HOT 8
- Get executionId HOT 2
- [Android] Android 11 compatibility HOT 1
- This project is retired
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 mobile-ffmpeg.