-
Notifications
You must be signed in to change notification settings - Fork 34
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
How can i use concat function with this lib #16
Comments
where inputPath - a .txt file which contains path of files i want to merge. |
@pavel-corsaghin |
Why i can't get .so files for every platform? what did i do wrong? |
@pavel-corsaghin |
Hi, I want to create my videokit.so file because all classes in your videokit project is not public and i can't extend them for custom ffmpeg command. If i copy all your .so file my app will crash when i try to run "run" method. I think you should make your CommandBuilder class public so people can extend this class. BTW Thank you again for make awesome, useful project. I'm new in ffmpeg and NDK and with your help i have built ffmpeg to my project and use it to cut and merge videos within 3 days. |
@pavel-corsaghin |
because i can't concat videos with your libs event i am tried your suggest: but when i created my videokit.so file and use this .txt which contains all input files as one input i was able to concat those videos |
and if i using your code to trim video. It work very slow with long duration. When i using my own code trimming progress very fast: private void trim(String inputPath, String outputPath, int startTime, int endTime) { // final Command command = mVideoKit.createCommand() It is reason why i want to custom CommandBuilder. |
@pavel-corsaghin public CustomBuilder yourAwesomeCommand(arguments) { public Command build() { |
Hi, Yes. With your FFmpeg-Development-Kit i have successfully created my .so files (the most important is videokit.so file) then I copied your videokit package into my project and edited the CommandBuilder class. I added that method:
To speed up video trimming I changed some flags as bellow:
and it working very fast. |
My app have targetSdkVersion 22 (it because i don't want grant some permission at runtime and i will not change it in the near future). I tested above code in my note 4 (api 22) and in my friend note 5 (api 24) and it work as normal. |
@pavel-corsaghin ok, so then I would suggest to use your own version (fork of VideoKit). |
Yes, i am able to create my own based on your. Thank you again. About "using MediaCodec for video processing" I am also very interested in this topic because i want to reduce my app size as low as possible. I think if i can use MediaCodec which provided by google i can do it. You can see Du Screen Recorder app, they have very good video editor with apk size <4mb. It awesome :) Are you think they using ffmpeg or other library? |
@pavel-corsaghin I'm pretty sure they're using MediaCodec since it's embedded into Android from API 18. |
Hi, I'm really looking forward to that post. Please notify me when you finish writing it. |
@pavel-corsaghin |
Hi, OK. Unfortunately I can not access your blog but I followed you on Medium. And i am waiting for this post. |
Sorry for bothering you again, you tried extract frames with this library, i tried many ways but always failed |
@pavel-corsaghin |
@pavel-corsaghin |
Hi, I need add text to video so i want to build ffmpeg with flag --enable-libfreetype. But i get error freetype2 not found. I know that i should install freetype first and build ffmpeg with it but i don't know how to do it. Are you ever tried with this flag? |
@pavel-corsaghin |
Hi sir! i am tried several hours but i can't build FFmpeg with freetype. This is my build_all.sh file: And i see this error in config.log file: Please tell me what did i do wrong |
@pavel-corsaghin did you ever get this to work? I am also trying to rebuild https://github.com/yeti/FFmpeg-Development-Kit with @IljaKosynkin have you ever attempted this? Appreciate all of your work on this library. The |
How can i use concat ffmpeg function to merge two videos with this library. When i use ffmpeg as precompiled binary I was able to it with this code:
LinkedList command = new LinkedList<>();
command.add(mFfmpegPath);
command.add("-f");
command.add("concat");
command.add("-i");
command.add(inputFile);
command.add("-c");
command.add("copy");
command.add("-y");
command.add(outputFile);
return executeFFmpegCommand(command);
Now with your library i try with this code:
String customCommand = "-f concat -c copy";
final Command command = mVideoKit.createCommand()
.overwriteOutput()
.inputPath(tempTextFilePath)
.outputPath(outputPath)
.customCommand(customCommand)
.copyVideoCodec()
.experimentalFlag()
.build();
new AsyncCommandExecutor(command, this).execute();
but it not work and i get error code 3085 in onFailure
Please help me, i would appreciate very much
The text was updated successfully, but these errors were encountered: