Skip to content

Commit

Permalink
[DEBUG] Disable worker in test run to sample remuxer logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Walch committed Jul 26, 2020
1 parent 383cb7e commit d7d490e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/remux/mp4-remuxer.js
Expand Up @@ -668,13 +668,15 @@ class MP4Remuxer {
mp4Sample.duration = lastSampleDuration;
}
if (nbSamples) {
logger.log(`Audio remuxer nextAudioPts in: ${this.nextAudioPts} inputTimeScale: ${track.inputTimeScale} timescale: ${track.timescale}`);
// next audio sample PTS should be equal to last sample PTS + duration
this.nextAudioPts = nextAudioPts = lastPTS + scaleFactor * lastSampleDuration;
// logger.log('Audio/PTS/PTSend:' + audioSample.pts.toFixed(0) + '/' + this.nextAacDts.toFixed(0));
logger.log(`Audio remuxer nextAudioPts out: ${nextAudioPts}`);
track.samples = outputSamples;
if (rawMPEG) {
moof = new Uint8Array();
} else {
logger.log(`Audio moof ${track.sequenceNumber} @${(toMsFromMpegTsClock(firstPTS / scaleFactor, true) / 1000).toFixed(3)}s (${firstPTS} / ${scaleFactor})`);
moof = MP4.moof(track.sequenceNumber++, firstPTS / scaleFactor, track);
}

Expand Down
4 changes: 2 additions & 2 deletions tests/functional/auto/setup.js
Expand Up @@ -370,8 +370,8 @@ describe(`testing hls.js playback in the browser on "${browserDescription}"`, fu

for (let name in streams) {
stream = streams[name];
let url = stream.url;
let config = stream.config || {};
const url = stream.url;
const config = stream.config || { enableWorker: false };
if (
!stream.blacklist_ua ||
stream.blacklist_ua.indexOf(browserConfig.name) === -1
Expand Down

0 comments on commit d7d490e

Please sign in to comment.