Skip to content

Instantly share code, notes, and snippets.

View elv-peter's full-sized avatar

Peter Tseng elv-peter

View GitHub Profile
<!doctype html>
<html lang="en">
<head>
<title>dash.js Tests</title>
<link rel="icon" type="image/png"
href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABFElEQVQ4jWNgoB3wq7X9n4EK2p9YxTxga7g9RPWBmEGskU3QNyoShyTiAsyz+A0gF6CWktAChqgTUBSoJwgYkawkmgegjqAdSpAHyBaIGmD5HRQoDPvNA3QDRBxVEkAxRgyFD1JhF+FQvYyoMaRCwaBhgP4BZCQC2EFqs7FELwPpKs+Z/N+/ADUzklXkWo4OaDEyaI0dGFCIgHSgzBmkGkB2MDRGIH5tIAVN5QZJYaygmlIF4ipKArLxXG2FLkiMKUmFsUMyg6QkVkJhDwka6mLLIgmAuCSDQCkBBUSgBz+RZRNEAkE1UG4hcCNAIVADK7pMZoKU8mrEuZlFYAKNgDDaUQEsgNMRMAAAAASUVORK5CYII=">
</head>
<body>
// const url = 'https://dash.akamaized.net/envivio/EnvivioDash3/manifest.mpd'
const url = 'https://host-76-74-91-8.contentfabric.io/qlibs/ilib3C82jGbT41QLSZb35dDwmUWbSuP9/q/hq__CcdV4wnCNq9wv6jXpYeCQ2GE4FLQBFtVSSSt2XKfBJMrH89DFDGsfkpWWvBy16QBGGYeF5mLGo/rep/playout/default/dash-clear/dash.mpd?authorization=ascsj_bFTSWVS9dUhsCBGa96XhfUwrJKzZcJiXN1C5ZfFtpzGbf4HxJtsvMwuWAnbUkM2wNKh1mdMoyTZPqBjAUbyzCMbWHtq3Lq7o8dEUmK3hLnRbBj24oiTD1jdu7rTUVumPCeNNqUyAXmXemv1Kb7VioDfdwW624dUUEpvFcc4MXT7uGy1a1y7VzetBdAYazWbVF6yhWDwnvaNKYkq1We2tyNdmabhuoRyKgPbNJm8EJJg6YiyJSQLwCGRMH88iCZaM6wqX21uVEryWH5BGABNfnRkBRDQxhorbBQT1G1pT6J3VgZdPKLwb9gMLrWzMwxMQupqbDsAi8ojsoWur32XhX7Uekdj9ZFUpGTJnRwePEvN9Wm3EzHrVmGGaH6xqDWSDmpkziw7N8zNWNidxxSbonUuzaPraKfzqjUXm1PpfbansTg5zbhLdXBKht7cq3QqDY14n4BQ3UpXXXpVUddN7H9gmjevxTifM1RMcGXKDhTvjwEWTaPfW3FWXhAGzimCHN9YKLzeWRQ8E7KJkkkp1XHEQVDJNM7AMHZhZwqsrBdk5jdj4cvibvEJN2jrUxjP8wxsnBi7dSoRMuJzAsdPR8NuGgM6Wub7z54gSQxSModvJkoiUtsBpHdJQEiohNYL9Riv64sRRFcXhttFZ8ekXsQXN2EvKYB2ugSihcZSfRrGCm1pQV6vhTmCseGE34WZBsqgFU9Tw
@elv-peter
elv-peter / sync_test.sh
Created March 5, 2020 03:44
Generate live HLS stream that causes audio to be out-of-sync for HLS.js
#!/bin/bash
#
# https://github.com/terabit-software/dynamic-stream-server/blob/master/scripts/sync_test.sh
#
# Tool to check video and audio sync.
# Loop with 1 beep per second with 4 increasing frequencies.
# Can be used to measure delays up to 4 seconds.
# The grid is accurate to about 1ms.
#
# Beep duration: 0.125s
@elv-peter
elv-peter / hellocat.md
Last active March 13, 2019 00:57
Bitcode example instructions

Prerequisites

  • Docker and Git installed
  • These are MacOS instructions

Steps

  1. Clone https://github.com/eluv-io/content-bitcode
  2. Run Docker to get a Linux build environment:
cd content-bitcode
docker run -ti --rm=true -v $(pwd):/content-bitcode eluvio-content-bitcode