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

The number of samples and the sum of all chunk lengths must be equal #1

Closed
AnandSaran opened this issue Jan 13, 2021 · 8 comments · Fixed by #4
Closed

The number of samples and the sum of all chunk lengths must be equal #1

AnandSaran opened this issue Jan 13, 2021 · 8 comments · Fixed by #4

Comments

@AnandSaran
Copy link

While croping

FATAL EXCEPTION: pool-6-thread-1
Process: com.adroit.timepass.dev, PID: 8509
java.lang.AssertionError: The number of samples and the sum of all chunk lengths must be equal
at com.googlecode.mp4parser.authoring.builder.DefaultMp4Builder.getChunkSizes(DefaultMp4Builder.java:624)
at com.googlecode.mp4parser.authoring.builder.DefaultMp4Builder.build(DefaultMp4Builder.java:114)
at com.ahmedbadereldin.videotrimmer.Utility.generateVideo(Utility.java:104)
at com.ahmedbadereldin.videotrimmer.Utility.startTrim(Utility.java:38)
at com.gregantech.timepass.view.createvideo.activity.VideoTrimmerActivity$trimVideo$1.execute(VideoTrimmerActivity.kt:417)
at com.ahmedbadereldin.videotrimmer.customVideoViews.BackgroundTask$Task.run(BackgroundTask.java:197)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)

@asadzoobiapps
Copy link

asadzoobiapps commented Sep 1, 2021

I am getting also same error

java.lang.AssertionError: The number of samples and the sum of all chunk lengths must be equal
at com.googlecode.mp4parser.authoring.builder.DefaultMp4Builder.getChunkSizes(DefaultMp4Builder.java:624)
at com.googlecode.mp4parser.authoring.builder.DefaultMp4Builder.build(DefaultMp4Builder.java:114)

@AnandSaran
Copy link
Author

@asadzoobiapps Sorry Bro i forgot how i fixed this issue.

@asadzoobiapps
Copy link

If we give start position 0 it works.But if we give customize start position then it crash and says all chunk lengths must be equal

@Ahmedbadereldin
Copy link
Owner

Do you still have the problem? @AnandSaran @asadzoobiapps

@asadzoobiapps
Copy link

Yes @Ahmedbadereldin

@Ahmedbadereldin
Copy link
Owner

@asadzoobiapps
I've pushed a new release now, can you try it?

@asadzoobiapps
Copy link

Definitely i will try it and come back with my feed back thanks!!

@luckymubii
Copy link

luckymubii commented Nov 8, 2021

still facing when we change the start position foe trimming.
java.lang.AssertionError: The number of samples and the sum of all chunk lengths must be equal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants