mux.js
mux.js copied to clipboard
Stutters in video playback on Firefox/Win7+8
HLS on Firefox/Win7+8 stutters significantly during video playback. The problem doesn't occur on any other browser or any other OS.
The same stream works on hls.js so I wonder if maybe that specific Firefox build is very strict or specific in terms of its interpretation of MP4 boxes.
I did a comparison between the output of hls.js and mux.js. Here's some differences:
-
The sizes are different. hls.js:
moov.size= 701;moov.trak.size= 533; etc... mux.js:moov.size= 649;moov.track.size= 493; etc... -
The versions are different hls.js:
moov.mvhd.version= 1;moov.trak.tkhd.version= 1 mux.js:moov.mvhd.version= 0;moov.trak.tkhd.version= 0 -
The durations are wildly different, for some reason? hls.js:
moov.mvhd.duration= 900900 mux.js:moov.mvhd.duration= 4294967295 -
hls.js includes
paspbox, which mux.js does not -
mux.js includes some
trafinfo that hls.js does not mux.js:
sampleDescriptionIndex: 1
defaultSampleDuration: 0
defaultSampleSize: 0
defaultSampleFlags: 0
size: 3216
hls.js just has size
trunsamples have differentisNonSyncSampleflags hls.js: all except first haveisNonSyncSample= 1 mux.js: all haveisNonSyncSample= 0
^ that was on an SD segment, but it looks like it only happens with HD segments, so I will retest with an HD segment
I made a comparison between a working HLS feed I found on the internet and the one that wasn't worked. My media is using the base profile with no constraint flags and a level of 30 or 31. Changing the profile to main caused the problem to disappear. I'm not sure why there would be a problem with mux.js but not hls.js if it's the video bits that are caused the problem. But that seems to be the case.