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

java.lang.IllegalStateException: Can't stop due to wrong state(INITIALIZED) #181

Open
eric-ampire opened this issue Jan 31, 2023 · 2 comments
Labels
bug Something isn't working needs-info

Comments

@eric-ampire
Copy link

eric-ampire commented Jan 31, 2023

Hello folks, I don't know exactly why I'm having this issue, I'm targeting the API 33

val videoStrategy = DefaultVideoStrategy.Builder()
    .addResizer(AspectRatioResizer(1f))
    .build()

val uri = File(filePath).getUriFromFile(requireActivity())
val source = UriDataSource(requireActivity(), uri)
Transcoder.into(croppedFile.absolutePath)
    .addDataSource(TrackType.VIDEO, source)
    .setVideoTrackStrategy(videoStrategy)
    .setValidator(WriteAlwaysValidator())
    .setListener(transcoderListener)
    .transcode()

cc: @natario1

@Mouadabdelghafouraitali

I'm facing the same issue, did you find any solution ?

@natario1
Copy link
Member

(Pasted to all my answers today: it's been a long time since my last issues review. I am sorry about the delay and I know you likely have moved on by now. Still, I'm going to answer where I can)

Can any of you guys provide a sample video that reproduces this issue?

@natario1 natario1 added bug Something isn't working needs-info labels Aug 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-info
Projects
None yet
Development

No branches or pull requests

3 participants