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: Of all AUDIO sources, some have a AUDIO track, some don't. #161

Open
jumperson opened this issue Dec 27, 2021 · 3 comments

Comments

@jumperson
Copy link
Contributor

I used the demo app to select and run one video with audio and one without audio, and I got the following error:

E/TranscodeEngine: Unexpected error while transcoding.
    java.lang.IllegalStateException: Of all AUDIO sources, some have a AUDIO track, some don't.
        at com.otaliastudios.transcoder.internal.Tracks.resolveTrack(Tracks.kt:80)
        at com.otaliastudios.transcoder.internal.Tracks.<init>(Tracks.kt:27)
        at com.otaliastudios.transcoder.internal.transcode.DefaultTranscodeEngine.<init>(DefaultTranscodeEngine.kt:40)
        at com.otaliastudios.transcoder.internal.transcode.TranscodeEngine$Companion.transcode(TranscodeEngine.kt:32)
        at com.otaliastudios.transcoder.internal.transcode.TranscodeEngine.transcode(Unknown Source:2)
        at com.otaliastudios.transcoder.Transcoder$1.call(Transcoder.java:102)
        at com.otaliastudios.transcoder.Transcoder$1.call(Transcoder.java:99)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:919)
@usmanrana-ilsa
Copy link

Facing almost similar issue with Audio. For some videos the video duration is changed (i.e. 9 secs video is converted to 15 or 18 seconds) and audio gets effected accordingly.

@VOstopolets
Copy link

Any updates?

@timcreatedit
Copy link

This issue seems related to #180. The library should technically add BlankAudioDataSource to every video that doesn't have it's own audio track before transcoding, however this doesn't seem to work at the moment.

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

No branches or pull requests

4 participants