Git Product home page Git Product logo

Comments (18)

microshow avatar microshow commented on August 22, 2024 3

哈哈 ,目前正在做下一版,后续稳定后,全部上传,敬请期待噢~~~

from rxffmpeg.

microshow avatar microshow commented on August 22, 2024

计算方法是在ndk层去处理的,java层只接收结果~
拿到视频总长度,和当前处理的长度,即可计算出实际进度。

from rxffmpeg.

tianshaokai avatar tianshaokai commented on August 22, 2024

image
目前代码中看不出来你的进度是从ndk中取出来的

from rxffmpeg.

microshow avatar microshow commented on August 22, 2024

不是java层去调用ndk层拿进度, 是ndk层主动去调用 java层方法哦;这里:
public void onProgress(int progress) {
if (ffmpegListener != null)
ffmpegListener.onProgress(progress);
}

public void onFinish() {
    if (ffmpegListener != null)
        ffmpegListener.onFinish();
}

public void onCancel() {
    if (ffmpegListener != null)
        ffmpegListener.onCancel();
}

public void onError(String message) {
    if (ffmpegListener != null)
        ffmpegListener.onError(message);
}

from rxffmpeg.

tianshaokai avatar tianshaokai commented on August 22, 2024

哈哈什么时候看看作者的jni方法啊

from rxffmpeg.

tianshaokai avatar tianshaokai commented on August 22, 2024

嗯,要是能有命名函数的使用demo就好了,我更希望使用命令来学习ffmpeg,

from rxffmpeg.

microshow avatar microshow commented on August 22, 2024

后续会补充常用的命令的 ,比如裁剪、拼接、背景音乐、字母、贴纸等等一系列~~

from rxffmpeg.

tianshaokai avatar tianshaokai commented on August 22, 2024

太棒了期待学习

from rxffmpeg.

tianshaokai avatar tianshaokai commented on August 22, 2024

我也以前在mac上编译ffmpeg 最新版一直没有成功,到时候试试作者的脚本

from rxffmpeg.

microshow avatar microshow commented on August 22, 2024

我这个是在ubuntu编译的哦!哈啊哈~~~ 感谢支持~~~

from rxffmpeg.

hellowwwwp avatar hellowwwwp commented on August 22, 2024

image
目前代码中看不出来你的进度是从ndk中取出来的

可以参考这个文章
https://blog.csdn.net/yhaolpz/article/details/78350435

from rxffmpeg.

online2 avatar online2 commented on August 22, 2024

求问视频压缩的关键词是那个?用了参考文章的方法,执行一小段时间 strstr()就会导致app挂了。

from rxffmpeg.

microshow avatar microshow commented on August 22, 2024

ffmpeg -y -i /storage/emulated/0/1/input.mp4 -b 2097k -r 30 -vcodec libx264 -preset superfast /storage/emulated/0/1/result.mp4

from rxffmpeg.

microshow avatar microshow commented on August 22, 2024

@online2

from rxffmpeg.

online2 avatar online2 commented on August 22, 2024

谢谢,,我是想了解,在执行视频压缩的过程中,作者采用的进度获取的方式是什么的逻辑?是通过ffmpeg的log去截取吗?还是其他方式?我采用了https://blog.csdn.net/yhaolpz/article/details/78350435 这篇文章的逻辑,去出来,执行一段时间,在strstr()去获取 time=的时候,会挂掉。

from rxffmpeg.

microshow avatar microshow commented on August 22, 2024

@online2 你发的那篇文章不是我写的哦,在ffmpeg.c里面去修改的,拿到视频总长度,和当前处理的长度,即可计算出实际进度。

from rxffmpeg.

microshow avatar microshow commented on August 22, 2024

可以使用Gradle依赖:)
dependencies {
implementation 'com.github.microshow:RxFFmpeg:1.2.2'
}

from rxffmpeg.

microshow avatar microshow commented on August 22, 2024

可以更新V2.0.0版本,速度嗖嗖的

from rxffmpeg.

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.