Skip to content

Instantly share code, notes, and snippets.

View atroche's full-sized avatar

Alistair Roche atroche

View GitHub Profile
[STREAM]
index=0
codec_name=aac
codec_long_name=AAC (Advanced Audio Coding)
profile=LC
codec_type=audio
codec_time_base=1/44100
codec_tag_string=[15][0][0][0]
codec_tag=0x000f
sample_fmt=fltp
[STREAM]
index=0
codec_name=h264
codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
profile=Main
codec_type=video
codec_time_base=1/50
codec_tag_string=avc1
codec_tag=0x31637661
width=720
[STREAM]
index=0
codec_name=qtrle
codec_long_name=QuickTime Animation (RLE) video
profile=unknown
codec_type=video
codec_time_base=1/25
codec_tag_string=rle
codec_tag=0x20656c72
width=1024
[STREAM]
index=0
codec_name=h264
codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
profile=High
codec_type=video
codec_time_base=1/60
codec_tag_string=[27][0][0][0]
codec_tag=0x001b
width=1024
[STREAM]
index=0
codec_name=h264
codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
profile=High
codec_type=video
codec_time_base=1/60
codec_tag_string=[27][0][0][0]
codec_tag=0x001b
width=1024
objEasy = div => {
const raw = [...div.querySelectorAll(".outcomeCardItems_f4kk892 > div")].map(
el => el.innerText
);
return { [raw[0]]: raw[3], [raw[1]]: raw[4], [raw[2]]: raw[5] };
};
parseHard = div => {
const rows = [...div.querySelectorAll(".outcomeCard_fqa53j6")];
return rows.map(row => [
#!/bin/bash -e
set -e
# defaults for all configuration values
ENC="ffmpeg"
CRF=24
OPTS="-map 0 -c:v libx265 -pix_fmt yuv420p10le -preset fast -x265-params crf=${CRF}:aq-mode=3 -c:a libvorbis -aq 5"
# This is to split out and copy attachment streams, like subtitles
# and fonts, so they only get copied once.
@atroche
atroche / text_nodes
Last active February 21, 2019 22:23
Node {
node_id: 0,
backend_node_id: 8,
children: Some(
[
Node {
node_id: 0,
backend_node_id: 9,
children: None,
parent_id: Some(
extern crate websocket;
extern crate regex;
#[macro_use]
extern crate serde_json;
use std::collections::HashMap;
use std::fmt;
use std::io::Read;
use std::process::{Command, Stdio, Child, ChildStderr};
use regex::Regex;
Recruit Form
Welcome
click Register -> Steps
Steps
click Next -> Final Step?
Final Step?
yes -> Summary
no -> Steps
Summary