running:
bash create-vod-hls.sh beach.mkv
will produce:
beach/
|- playlist.m3u8
|- 360p.m3u8
| [Adblock Plus 2.0] | |
| ! Title: Honey Smart Shopping - Most Trackers Removed | |
| ! Expires: 2 days (update frequency) | |
| ! Homepage: https://www.joinhoney.com/ | |
| !Honey | |
| @@||joinhoney.com*$document | |
| @@||joinhoney.com*$elemhide | |
| ! | |
| ! Cash Back Trackers | |
| @@||joinhoney.com^* |
| worker_processes auto; | |
| events { | |
| use epoll; | |
| } | |
| http { | |
| log_format main '$remote_addr $remote_user [$time_local] "$request" ' | |
| '$status "$http_referer" "$http_user_agent"'; |
| version: '3.4' | |
| services: | |
| mc: | |
| image: itzg/minecraft-server | |
| environment: | |
| EULA: "true" | |
| TYPE: PAPER | |
| SEED: "-7381235180058670651" | |
| CONSOLE: "false" |
| # /bin/bash | |
| # **be warned:** this might not work as an actual bash script | |
| # set up docker | |
| curl -fsSL https://get.docker.com -o get-docker.sh | |
| sudo sh get-docker.sh | |
| # create and add your user to the "docker" group | |
| sudo groupadd docker | |
| sudo usermod -aG docker $USER |
| { | |
| "version": 1, | |
| "notes": "", | |
| "documentation": "\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n", | |
| "keyboard": "massdrop/alt", | |
| "keymap": "dropalt_miwa", | |
| "layout": "LAYOUT_65_ansi_blocker", | |
| "layers": [ | |
| [ | |
| "KC_ESC", |
| import React, { useEffect, useRef } from "react"; | |
| import Plyr from "plyr"; | |
| import "plyr/dist/plyr.css"; | |
| import Hls from "hls.js"; | |
| import "./player.css"; | |
| export default function Player({ isLive = false, playbackURL }) { | |
| const videoRef = useRef(null); | |
| const playerRef = useRef(null); | |
| // const previewSrc = `https://image.mux.com/${playbackId}/storyboard.png`; |
| #!/bin/bash | |
| # Note(Mike): Avoid using `command` like the plague, prefer $(command) | |
| underline=$( tput smul ) | |
| nounderline=$( tput rmul ) | |
| bold=$( tput bold ) | |
| normal=$( tput sgr0 ) | |
| # Note(Mike): Not sure what these do... | |
| # W="\e[0;39m" |
running:
bash create-vod-hls.sh beach.mkv
will produce:
beach/
|- playlist.m3u8
|- 360p.m3u8
| <body> | |
| <script src="https://cdn.jsdelivr.net/npm/hls.js"></script> | |
| <script src="https://gist.githack.com/kanbaru/e049b1c99a27639f48146aeeb7acb70c/raw/a3c7b51b0dba1e09de20909a01768eb39c7b1cc6/plyr.min.js"></script> | |
| <script src="./script.js"></script> | |
| <div class="container"> | |
| <video controls crossorigin playsinline > | |
| <source | |
| type="application/x-mpegURL" | |
| src="https://stream.mux.com/S5F00JLz00E9Is8lc9MICneE7sHoCmjuiaI01C6ssA9Xh4.m3u8" |
| "object"==typeof navigator&&function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Plyr",t):(e=e||self).Plyr=t()}(this,(function(){"use strict";function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}function n(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function a(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function s(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?a(Object(i),!0).forEach((function(t){n(e,t,i[t])} |