arthenica / ffmpeg-kit

FFmpeg Kit for applications. Supports Android, Flutter, iOS, Linux, macOS, React Native and tvOS. Supersedes MobileFFmpeg, flutter_ffmpeg and react-native-ffmpeg.
https://arthenica.github.io/ffmpeg-kit
GNU Lesser General Public License v3.0
4.4k stars 590 forks source link

Statistics.getTime()The time returned is wrong in version v6.0/v6.0.LTS #957

Closed JeremyTanZone closed 6 months ago

JeremyTanZone commented 6 months ago

Description

I am using your ffmpeg-kit [6.0]ib library,

But a problem was discovered when using version [6.0] on the Android platform

Statistics.getTime()The time returned is wrong

This is the time returned in version [5.1]The final time and the total time are equal

2024-04-08 17:04:48.347 22054-22054 System.out Total Millisecond:250150 2024-04-08 17:04:48.358 22054-22828 System.out statistics.getTime():1 2024-04-08 17:04:48.852 22054-22828 System.out statistics.getTime():231628 2024-04-08 17:04:48.890 22054-22828 System.out statistics.getTime():250106

This is the time returned in version [6.0].The final time is not equal to the total time

2024-04-08 17:08:39.091 23322-23322 System.out Total Millisecond:250150 2024-04-08 17:08:39.104 23322-23688 System.out statistics.getTime():0.0 2024-04-08 17:08:39.596 23322-23688 System.out statistics.getTime():18949.637 2024-04-08 17:08:39.712 23322-23688 System.out statistics.getTime():10097.392

When processing audio, the time until the end of processing should be equal to the total audio time. If the time returned is wrong, I cannot display the percentage to the user. Can you release a new version to fix this bug?

Expected behavior Hopefully the statistics.getTime() method will return the correct current processing time

Current behavior Statistics.getTime() method The time returned is wrong

To Reproduce When using the 6.0 version of the library, this bug will occur when processing any audio.

Environment

Other Add any other context about the problem here.

tanersener commented 6 months ago

We fixed a similar issue in #804. Can you try one of the 6.0 patches e.g. v6.0-1 or v6.0-2?

JeremyTanZone commented 6 months ago

  您发给我的信件已经收到。I have already received the letter you sent me.  

JeremyTanZone commented 6 months ago

When compiling, it prompts that it cannot be found.

Could not find com.arthenica:ffmpeg-kit-full-gpl:6.0.1.LTS. Searched in the following locations:

JeremyTanZone commented 6 months ago

I found it by looking at your demo. Thank you very much for your reply, hope you have a nice day

HamzaBula commented 6 months ago

Hey @JeremyTanZone can you help me pls i'm getting wrong Statistics.getTime() during the process here is my issue #958 and here is the link of my test application https://github.com/HamzaBula/Reverse-Video-Demo

wengxianxun commented 3 months ago

嘿@JeremyTanZone你能帮助我吗?我在过程中得到了错误的 Statistics.getTime() 这是我的问题#958,这是我的测试应用程序的链接https://github.com/HamzaBula/Reverse-Video-Demo

how to fix this bug?