http-streaming icon indicating copy to clipboard operation
http-streaming copied to clipboard

HLS3 playback artefacts, non-native Safari & Edge, playback started mid-segment

Open ghost opened this issue 8 years ago • 9 comments

daliwell commented on Mar 6, 2018, 1:30 PM UTC:

Description

Our service requires that we use non-native playback (i.e. MSE tech):

videojs.options.hls.overrideNative = true;

... in order to pass some authentication values to a proxy to obtain our video:

videojs.Hls.xhr.beforeRequest = function (opt) {};

Our video seems to be encoded correctly at 5 different renditions and each 10s segment starts with a keyframe. However, we get video artefacts until the playback head crosses to the next segment, if the user has initiated playback somewhere during a segment (see "Error output" below for video of the issue).

Sources

These are samples of the content on S3 (CORS enabled): http://temp-hls3.s3-eu-west-1.amazonaws.com/list.html

To see the problem in our player, use this link. This video is free to view, but uses the same proxy. You will need to create a free account to view the video. https://aak2.app.link/nqadfenrMJ

Steps to reproduce

  1. Scrub the playback head to a random position in the video or click a chapter
  2. Video will start playback with artefacts, until a new segment is hit (unless the start of playback coincides with the start of a segment).

Results

Expected

Playback starts without artefacts.

Error output

Playback starts with artefacts. Artefacts don't appear to clear until the next segment is reached.

The problem seems to be restricted to Safari (Mac) and Edge (Windows). Chrome and Firefox are fine. This is how the artefacts look on Safari (they look the same on Edge): Video showing the problem (chpt 5 no artefacts. chpt 6 always artefacts): https://s3-eu-west-1.amazonaws.com/temp-hls3/problem.mov

Additional Information

This reported bug in Edge might explain the problem in Edge: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/14600417/

But we are also seeing the exact same problem in all versions of Safari tested (including 11.0.3)

videojs-contrib-hls version

videojs-contrib-hls 5.12.2 (and also all previous versions tested)

videojs version

video.js 6.4.0 (and also all previous versions tested)

Browsers / Platforms

  • Safari 11.0.3 - MacOS 10.13.3
  • Edge - Windows 10

This issue was moved by forbesjo from videojs/videojs-contrib-hls#1360.

ghost avatar Jul 02 '18 18:07 ghost

daliwell commented on Mar 12, 2018, 8:07 AM UTC:

Anyone any idea with this?

As far as I can tell, this is a problem with contrib-hls.

The fact this is on Safari and Edge makes me think that this issue reported against Edge might actually be a problem with contrib-hls, not the Edge browser: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/14600417/

ghost avatar Jul 02 '18 18:07 ghost

gesinger commented on Mar 13, 2018, 2:00 PM UTC:

Hey daliwell , thanks for the samples and the notes. We should definitely check into what's going on, but one thing to note is that right now we don't have full support for non native Safari playback (we haven't tested it much), but it is something we're hoping to look into soon. As for Edge, that reported issue seems to be a likely case, but we can re-examine it with these new details.

ghost avatar Jul 02 '18 18:07 ghost

daliwell commented on Mar 15, 2018, 8:19 AM UTC:

Hey gesinger - thanks for looking into this. Anything I can do to help, please give me a yell. You can also reach me on the Video.js slack.

ghost avatar Jul 02 '18 18:07 ghost

Hi, This one is beyond me, but if anyone could take this on, it would be great. It's a confirmed issue and makes our app look very bad on certain browsers. If anyone needs any more info, I can fill in any details that are missing. Thanks!

daliwell avatar Jul 03 '18 08:07 daliwell

Seems like this has been fixed some time between when the issue was opened and now. Not getting any issues with VHS 2.1.

gkatsev avatar Sep 01 '20 17:09 gkatsev

Great. We will check this out. I don't think we even made the switch to VHS yet.

daliwell avatar Sep 02 '20 14:09 daliwell

VHS is built-in to Video.js 7+ and will be getting VHS 2.1 soon.

gkatsev avatar Sep 02 '20 16:09 gkatsev

Bildschirmfoto 2020-10-20 um 08 58 38 Any News ? I have the same with Safari. Settings are:

var player = videojs('my_video_1', { liveui: true, html5: { hls: { overrideNative: true }, nativeVideoTracks: false, nativeAudioTracks: false, nativeTextTracks: false } });

(Needed for ID3 Tags).

The Video has many artefacts. If i switch back without overrideNative = true the Video has no artefacts.

EDIT: Mhh, strage: WITH type="application/x-mpegURL"> and overridenative = true i have artefacts, and ID3 Tracks. WITH type="video/mp4"> and overridenative = true i don't have artefacts, BUT no ID3 Tracks.

EDIT2: With VHS2.2 and: var player = videojs('my_video_1', { liveui: true, html5: { vhs: { overrideNative: true }, nativeVideoTracks: false, nativeAudioTracks: false, nativeTextTracks: false } });

are the same. Many artefatcs!

ChR-iSz avatar Oct 20 '20 06:10 ChR-iSz

VHS 2 is in Video.js 7.10.1. We would not recommend using VHS on Safari when playing back HLS. We do not test this on a regular basis. Safari supports ID3 cues in the media.

gkatsev avatar Oct 29 '20 06:10 gkatsev