Skip to content

Instantly share code, notes, and snippets.

@on-three
on-three / gist:04def3c93156671bbdd8
Created June 18, 2014 16:23
VLC Settings for transcoding relay
:sout=#transcode{vcodec=h264,venc=x264{crf=18,keyint=250,vbv-maxrate=1700,vbvbufsize=3400,preset=medium,threads=auto},vfilter=croppadd{croptop=36,cropbottom=36,cropleft=64,cropright=64},width=1280,height=720,acodec=mpga,ab=128,channels=2,samplerate=48000}
@on-three
on-three / gist:f6bc18204767a2b545f1
Created May 14, 2014 01:49
Extracting .zip files with Shift-JIS (Japanese) filenames
unzip -O shift-jis <filename>.zip
@on-three
on-three / gist:11358874
Created April 28, 2014 00:23
convert an image to an N second webm
avconv -loop 1 -i stannis_behead.jpg -t 00:00:07 -c:v libvpx test.webm
@on-three
on-three / gist:11326444
Created April 26, 2014 17:48
AVI synth montage script
This is the avisynth script ("montage.avs"):
---
Setmemorymax(512)
SetMTMode(2,4)
grid=24
a1=directshowsource("input1.webm",audio=false).converttorgb
l=ceil(float(a1.framecount)/(grid*grid))
function HRepeat(clip c, int g, int l, int x, int y) {
@on-three
on-three / gist:11035094
Created April 18, 2014 09:53
Downloading video off NHK Educational site. File parameters drawn out of wireshark logs.
rtmpdump -r "rtmp://flv9.nhk.or.jp:1935/flv9/_definst_/mp4:das/D0005110/D0005110302_00000_V_000.f4v" -o nhk.flv
Note that closed captions for this can be snatched from local browser cached files as .ttml files. Format of the .ttml files reminds me of Arib closed caption format.