running:
bash create-vod-hls.sh beach.mkv
will produce:
beach/
|- playlist.m3u8
|- 360p.m3u8
#!/usr/bin/env bash | |
# Released into the Public Domain. | |
# | |
# Original implementation in C by Brad Conte ([email protected]) <https://github.com/B-Con/crypto-algorithms> | |
# Ported to Bash (lol) by Josh Junon ([email protected]) <https://github.com/qix-> | |
# | |
# Yes, it's absolutely as slow as it looks. | |
# | |
# The only external dependency it has is on a utility called `od`, |
running:
bash create-vod-hls.sh beach.mkv
will produce:
beach/
|- playlist.m3u8
|- 360p.m3u8
# Bash History Replacement Script | |
# Author: Caesar Kabalan | |
# Last Modified: June 6th, 2017 | |
# Description: | |
# Modifies the default Bash Shell prompt to be in the format of: | |
# [CWD:COUNT:BRANCH:VENV] | |
# [USER:HOSTNAME] _ | |
# Where: | |
# CWD - Current working directory (green if last command returned 0, red otherwise) | |
# COUNT - Session command count |
FFMPEG '-i', file, '-c:v', 'libopenjpeg', "jpeg2000\\" + name + ".jp2"\ | |
Convert image to jpeg2000 | |
ffmpeg -i in.png -c:v libopenjpeg out.jp2 | |
Hex Edit out.jp2 | |
ffmpeg -i in.jp2 -c:v png out.png | |
General Edit | |
ffmpeg -i input.avi -c:v mpeg2video -g 999 -q:v 1 output.avi | |
*edit in avidemux/whatever* |
(function start_embed_generator(window, document) { | |
var my_token = "-YOUR_TOKEN_HERE-"; | |
var color_reg = /(\#.+?)(\s|$)/; | |
var text_bar_color = "rgb(92, 156, 199)"; | |
window.addEventListener('keydown' , handle_event); | |
window.addEventListener('keyup' , revert_bar ); | |
return !console.log("Embed generator up!"); |
Direct copy of pre-encoded file:
$ ffmpeg -i filename.mp4 -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls filename.m3u8
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.IO; | |
using System.Net; | |
using System.Text; | |
/* EXAMPLE USAGE | |
FileDownloader fileDownloader = new FileDownloader(); |
// Unity C# Cheat Sheet | |
// I made these examples for students with prior exerience working with C# and Unity. | |
// Too much? Try Unity's very good tutorials to get up to speed: https://unity3d.com/learn/tutorials/topics/scripting |
<template> | |
<require from="./logger.js"></require> | |
<require from="aurelia-kendoui-bridge/progressbar/progressbar"></require> | |
<div id="example"> | |
<div class="demo-section k-content"> | |
<h4>ProgressBar</h4> | |
<div id="eventsProgressBar" | |
ak-progress-bar="k-min: 0; | |
k-max: 10; |