Skip to content
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

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

Closed
JeremyTanZone opened this issue Apr 9, 2024 · 6 comments
Assignees
Labels
android Affect Android platform fixed-in-v6.0-2 v6.0

Comments

@JeremyTanZone
Copy link

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

  • Platform: `Android
  • Architecture: arm-v7a, arm-v7a-neon, arm64-v8a, armv7, armv7s,
  • Version: v6.0/v6.0.LTS
  • Source branch: main
  • Android Studio version: 4.0
  • Android NDK version: r25b

Other
Add any other context about the problem here.

@JeremyTanZone JeremyTanZone changed the title Statistics.getTime()The time returned is wrong in version 6.0. Statistics.getTime()The time returned is wrong in version v6.0/v6.0.LTS Apr 9, 2024
@tanersener
Copy link
Collaborator

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?

@tanersener tanersener added android Affect Android platform v6.0 labels Apr 9, 2024
@JeremyTanZone
Copy link
Author

JeremyTanZone commented Apr 9, 2024 via email

@JeremyTanZone
Copy link
Author

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

@HamzaBula
Copy link

HamzaBula commented Apr 11, 2024

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
Copy link

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

how to fix this bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android Affect Android platform fixed-in-v6.0-2 v6.0
Projects
None yet
Development

No branches or pull requests

4 participants