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

mkv video play error #4010

Closed
tangmingscau opened this issue Mar 20, 2018 · 4 comments
Closed

mkv video play error #4010

tangmingscau opened this issue Mar 20, 2018 · 4 comments
Assignees
Labels

Comments

@tangmingscau
Copy link

tangmingscau commented Mar 20, 2018

I tried to play video in MKV format, but there was no video, only sound. There are some erroneous logs here.

 internalError [5.92, loadError]
                                                                                 com.google.android.exoplayer2.upstream.Loader$UnexpectedLoaderException: Unexpected NullPointerException: null
                                                                                     at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:337)
                                                                                     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
                                                                                     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
                                                                                     at java.lang.Thread.run(Thread.java:841)
                                                                                  Caused by: java.lang.NullPointerException
                                                                                     at com.google.android.exoplayer2.util.ParsableByteArray.<init>(ParsableByteArray.java:55)
                                                                                     at com.google.android.exoplayer2.extractor.mkv.MatroskaExtractor$Track.initializeOutput(MatroskaExtractor.java:1613)
                                                                                     at com.google.android.exoplayer2.extractor.mkv.MatroskaExtractor.endMasterElement(MatroskaExtractor.java:642)
                                                                                     at com.google.android.exoplayer2.extractor.mkv.MatroskaExtractor$InnerEbmlReaderOutput.endMasterElement(MatroskaExtractor.java:1490)
                                                                                     at com.google.android.exoplayer2.extractor.mkv.DefaultEbmlReader.read(DefaultEbmlReader.java:69)
                                                                                     at com.google.android.exoplayer2.extractor.mkv.MatroskaExtractor.read(MatroskaExtractor.java:429)
                                                                                     at com.google.android.exoplayer2.source.ExtractorMediaPeriod$ExtractingLoadable.load(ExtractorMediaPeriod.java:751)
                                                                                     at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:315)
                                                                                     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 
                                                                                     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 
                                                                                     at java.lang.Thread.run(Thread.java:841)

Can you give me some advice?

@ojw28
Copy link
Contributor

ojw28 commented Mar 20, 2018

We can't debug this issue without sample media that reproduces the issue. Please provide a link here, or send one to: dev.exoplayer@gmail.com

Thanks!

@tangmingscau
Copy link
Author

Thank you for your advice. In the end, I use other format tools to convert to MKV format video. It is found that it can be played, so it should be a bit of a problem when the format tool is converted to MKV music, but I will still send this problematic music to you. Thanks

@AquilesCanta
Copy link
Contributor

Closing under the assumption that the issue was in the media. Please file a new issue including all the information required in the issue template if a new problem arises.

@ojw28
Copy link
Contributor

ojw28 commented Mar 25, 2018

This issue occurs when the codecs string is zero padded, which is apparently allowed according to the MKV specification. It's pretty weird that the tool you're using would opt to zero pad, given there's no need to do so, but we should still handle this correctly in the player. We'll push a fix shortly.

@ojw28 ojw28 self-assigned this Mar 25, 2018
@AquilesCanta AquilesCanta reopened this Mar 26, 2018
ojw28 added a commit that referenced this issue Mar 28, 2018
Issue #4010

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=190442962
@ojw28 ojw28 closed this as completed Mar 28, 2018
ojw28 added a commit that referenced this issue Mar 29, 2018
Issue #4010

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=190442962
@google google locked and limited conversation to collaborators Aug 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants