YouTube -- How Youtube HTML5 player Works
plyr -- Kickass HTML5 Video Player
ಠ_ಠ | |
<|> | |
/ω\ |
#!/bin/bash | |
base=$1 | |
function prepimg { | |
echo "prepping $2 $3" | |
convert "$1" -flatten -resize "$3" -unsharp 1x4 "$2" | |
} | |
mkdir -p mipmap-ldpi/ | |
mkdir -p mipmap-mdpi/ |
sudo apt-get install git build-essential linux-headers-generic linux-headers-$(uname -r) | |
git clone https://github.com/lwfinger/rtl8723au.git | |
cd rtl8723au/ | |
make | |
sudo make install | |
sudo modprobe -r r8723au | |
sudo modprobe 8723au | |
cd .. |
#/bin/bash | |
# ffmpeg convert wav audio to opus audio | |
ffmpeg -i uploads/audio.wav -c:a opus -strict -2 -y uploads/output.opus | |
# ffmpeg combine webm and wav into a new webm with opus audio | |
ffmpeg -i uploads/video.webm -i uploads/audio.wav -c:a opus -strict -2 -y uploads/output.webm |
YouTube -- How Youtube HTML5 player Works
plyr -- Kickass HTML5 Video Player
Posted Nov 20, 2014 by Nick Vogt
This is a technical post on how the YouTube player works, including the kinds of http requests it makes and how it streams video and audio. This information was researched with the HTML5 player, but may be applicable to the Flash player as well. The HTML5 player uses JavaScript and is the default player for Chrome and newer Internet Explorer.
When the YouTube video player is started, either on a youtube.com page or an embed, it first sends a request to http://www.youtube.com/get_video_info
with about 13 query string parameters. These parameters contain information such as the video ID, the player width/height, and what host is requesting the video.
#/bin/bash | |
phonenum="+10000000000" | |
smsbody="hello world" | |
# use adb to say "start the app we use for SMS" | |
# with the following information | |
adb shell am start \ | |
-a android.intent.action.SENDTO \ | |
-d sms:"$phonenum" \ |
<!DOCTYPE html> | |
<meta name="robots" content="noindex"> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Video Box</title> | |
<style id="jsbin-css"> | |
#videobox { |
#/bin/bash | |
wget http://geolite.maxmind.com/download/geoip/database/GeoLite2-City-CSV.zip | |
unzip GeoLite2-City-CSV.zip | |
# TODO: do fancy magics for importing into mysql | |
# something like this: | |
mysqlimport --ignore-lines=1 \ | |
--fields-terminated-by=, \ |
<?php | |
$maxrows = 500; | |
if (!isset($argv[1])) { | |
echo "\n"."csv2sql.php"."\n"; | |
echo "What this does: Reads a CSV file"."\n"; | |
echo "and guesses a mildly appropriate"."\n"; | |
echo "MySQL table structure"."\n\n"; | |
echo "Usage: php csv2sql.php something.csv"."\n\n"; |