Skip to content

Instantly share code, notes, and snippets.

@nwgat
nwgat / ti
Created February 3, 2017 20:53
mediainfo simple templete
General;Name.........: %FileName%.%FileExtension%\r\nSize.........: %FileSize/String%\r\nDuration.....: %Duration/String3%\r\n
Video;Resolution...: %Width%x%Height% %DisplayAspectRatio/String%\r\nCodec........: %Codec/String% %Format_Profile%%BitRate/String% %FrameRate% fps\r\n
Audio;Audio........: %Codec/String% %BitRate/String% %BitRate_Mode% %Channel(s)% Channel
f=matroska
acodec=flac
ar=48000
vcodec=libvpx-vp9
threads=8
vb=2800k
minrate=2400k
maxrate=3000k
rc_lookahead=16
f=matroska
acodec=flac
ar=48000
vcodec=libvpx-vp9
threads=8
vb=2800k
minrate=2500k
maxrate=3000k
rc_lookahead=16
minrate=2500k
maxrate=3000k
rc_lookahead=16
quality=good
speed=1
slices=4
tile-columns=6
frame-parallel=1
auto-alt-ref=1
lag-in-frames=25
[Parsed_loudnorm_0 @ 00000000024f1480]
{
"input_i" : "-22.82",
"input_tp" : "-10.50",
"input_lra" : "3.50",
"input_thresh" : "-32.83",
"output_i" : "-15.27",
"output_tp" : "-2.82",
"output_lra" : "2.30",
"output_thresh" : "-25.28",
@nwgat
nwgat / loudness.rb
Created January 29, 2017 04:57 — forked from kylophone/loudness.rb
FFmpeg loudnorm filter - dual pass loudness normalization example - http://k.ylo.ph/2016/04/04/loudnorm.html
#!/usr/bin/env ruby
require 'open3'
require 'json'
ffmpeg_bin = '/usr/local/bin/ffmpeg'
target_il = -24.0
target_lra = +11.0
target_tp = -2.0
samplerate = '48k'
@nwgat
nwgat / kodiupdate.sh
Created January 26, 2017 19:55
kodiupdate.sh
user=kodi
pw=kodi
ip=localhost:8080
echo scaning video libary
curl --data-binary '{ "jsonrpc": "2.0", "method": "VideoLibrary.Scan", "id": "mybash"}' -H 'content-type: application/json;' http://kodi:kodi@$ip/jsonrpc
echo scanning audio libary
curl --data-binary '{ "jsonrpc": "2.0", "method": "AudioLibrary.Scan", "id": "mybash"}' -H 'content-type: application/json;' http://kodi:kodi@$ip/jsonrpc
@nwgat
nwgat / README.md
Last active December 9, 2016 21:16 — forked from sandfox/README.md
Quick and dirty instructions for building nginx with rtmp support

#Compiling Nginx with RTMP module

  1. Install the following packages sudo apt-get install python-software-properties dpkg-dev git
  2. Add Nginx repo sudo add-apt-repository ppa:nginx/stable
  3. Update package list sudo apt-get update
  4. Get nginx source (put this in it's own dir like /build sudo apt-get source nginx-full
@nwgat
nwgat / deluge-web.service
Created November 19, 2016 21:50
/etc/systemd/system/
[Unit]
Description=Deluge Bittorrent Client Web Interface
After=network-online.target
[Service]
Type=simple
User=deluge
Group=deluge
UMask=027
@nwgat
nwgat / deluged.service
Created November 19, 2016 21:49
/etc/systemd/system/
[Unit]
Description=Deluge Bittorrent Client Daemon
After=network-online.target
[Service]
Type=simple
User=deluge
Group=deluge
UMask=000