Hls.js: Safari green artifacts in some streams

Created on 24 Nov 2016  路  7Comments  路  Source: video-dev/hls.js

Environment

Steps to reproduce
  1. Please provide clear steps to reproduce your problem
    Just use link to playable M#U* file in demo page.
  2. Whenever possible, share a demo/example page which reproduces the problem you are having with the least amount of code possible.
  3. If the bug is intermittent, give a rough frequency if possible
Expected behavior

What you expected to happen
Normal Video playing without green artifacts in Safari

Actual behavior

What actually happened
Only in Safari green area in the right side of video.

Console output
Paste the contents of the browser console here.
For media errors reported on Chrome browser, please also paste the output of chrome://media-internals 
Bug Safari

Most helpful comment

@mangui could this be related to non-square pixels?

We get something like this:

screen shot 2017-01-13 at 13 59 46

Note: Chrome/Firefox play just fine.

All 7 comments

Yes, we get these too - basically see #9 - the situation has improved a lot, but it's not the finished article yet.

@mangui could this be related to non-square pixels?

We get something like this:

screen shot 2017-01-13 at 13 59 46

Note: Chrome/Firefox play just fine.

@coolheinze nice hint
I checked http://www.2sharenl.com:8081/lolli/master.m3u8
and SAR ratio is 16/11
https://github.com/dailymotion/hls.js/blob/master/src/demux/exp-golomb.js#L266

maybe width/height needs to be signalled differently in that case

That's certainly not impossible. Since the video itself looks just fine, it could be that just cropping the video would do the trick.

Hi @jernoble !
I am pinging you as we are suspecting that hls.js is not signalling non-square pixels appropriately.
as you could see above, we have green pixels on Safari when playing streams with non square pixels.
How are we supposed to signal it to Safari to avoid green pixels on the right side of the video ?
I checked ISO14496-12 and pasp/clap box are mentioned. is it the way to go ?

Best,
Mangui

In Safari 11.0.2 specifically, this got a lot worse. 11.0.1 and 10.x didn't have a problem with my videos. Now they look like this:

If I figure out a workaround I'll update

screen shot 2018-01-17 at 1 33 13 pm

Update:
Heads up to anyone who runs into this... Safari 11.0.2 / metal seems to have broken bitstream switching after the spectre patches causing green shrunken video.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

eteubert picture eteubert  路  3Comments

itsjamie picture itsjamie  路  3Comments

phillydogg28 picture phillydogg28  路  4Comments

nickcartery picture nickcartery  路  4Comments

shalommeoded picture shalommeoded  路  3Comments