danikula / danikula/AndroidVideoCache

MPEG4Extractor: Video is malformed

未关闭
#25 8 条评论 0 个 reaction 已指派 1 人 已被 @danikula 认领 在 GitHub 查看
bug
主要语言
Java
星标
5.5k
派生
1.2k
PR 合并指标
30 天内没有已合并 PR

描述

Hi, I am experiencing a weird issue using this library.
sometimes, while streaming some video, i get the following exception:

MPEG4Extractor: Video is malformed - offset=943983, srcOffset=4, mNALLengthSize=-1864625292, nalLength=4, size=688

however the data reported in the exception are different every time it occurs, and then the video stops with a media player error (1, -1007)

This is all I was able to find out:
- the issue never occurs when using direct url streaming, but occurs when using a video cache url
- the issue occurs at random times and sometimes doesn't occur at all
- after a video has been played completely, the issue will never occur again unless the cache is cleared
- the issue never occurs with some videos (for example, with the annoying orange videos of the sample app, it never occurs)
- the issue never occurs on some devices, while it frequently occurs on some other
- the issue occurs independently of the % of caching, but very often occurs after the video is 100% cached (this makes me think that something bad happens while saving the stream to disk)
- the issue is not related to the server where the videos are hosted. some videos stored on the same server can be played without problems
- the issue can be reproduced in the sample app by changing one of the urls with this one:
http://www.bravepotions.com/streaming/ninja.mp4

this video has the following specs:
mp4 using H.264 video codec and AAC audio codec
resolution 1280 x 720
fixed framerate 24fps
the video was encoded using HandBrake on mac and can be played just fine

i can try to encode my videos using some other software, but i am afraid that many other people will experience something similar

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。