Open sshurick opened 7 years ago
I had a quick look at the second stream provided above. It has a sidx box that declares a 1.92 second long chunk, while the trak box declares a duration of about 8 seconds. So I suspect the media is not valid.
The media appears to have 6 sidx boxes interleaved through the file. Each contains only a single entry, that presumably corresponds to the following chunk of media.
It's unclear how you're really supposed to seek in such a file, since there doesn't seem to be anything akin to a top level index. It's also unclear what purpose the single entry sidx boxes actually serve.
This might not be an actual violation of the FMP4 spec, but it's certainly extremely weird, and I'm unsure what the best way of handling this kind of media is. I'd suggest you report the issue to Coub in the first instance. If they're intending these files to be consumed elsewhere then they'd do well to structure them in a more standard way (i.e. a single sidx box near the start of the media, that indexes the whole file).
Guys, thank you for the quick reply! Glad to see that Exo is alive and kicking!
Not sure if Coub team will tackle this issue soon since they have all the media in this format. One more thing that I've noticed about Coub's mpegs is that VLC for Android & all my desktop players play them like a charm
We could probably just use the trak box duration when it's longer, since the sidx box can legitimately index only part of the stream. And then probably ignore all but the first sidx box as well.
Seeking wont work properly in that case. I doubt seeking works quite right in other players either, since there's no actual top level index for the stream as far as I can see. Perhaps it doesn't matter though; if the videos are always short.
Hi all!
Issue description
I've tried to embed playing of Coub's videos in my app with ExoPlayer and I'm faced with the problem that ExoPlayer incorrectly reports length of those videos and as a consequence fails to loop/replay them. Coub's videos have video steam only (no audio) coded with H264 and packet into mp4 container.
Reproduction steps
}
Link to test content
https://coubsecure-s.akamaihd.net/get/b102/p/coub/simple/cw_file/010b9332a46/0ec149d027f8d844f52f8/muted_mp4_med_size_1477783374_muted_med.mp4 https://coubsecure-s.akamaihd.net/get/b175/p/coub/simple/cw_file/54e7b85e97a/07582b3a1d6ae594bac15/muted_mp4_med_size_1499090722_muted_med.mp4 These videos are ripped from standard Coub API, I can provide more samples if needed.
Version of ExoPlayer being used
2.4.1 & 2.4.3
Device(s) and version(s) of Android being used
4.4 (Huawei honor) 7.0 (Emulator)
A full bug report captured from the device
Thank you in advance. bugreport-NYC-2017-07-18-11-44-01.zip