Skip to content

Instantly share code, notes, and snippets.

@nwgat
nwgat / gist:1f12e61cfce99b5e1e798c5f91e83b09
Created March 9, 2018 19:55
2200G/RavenRidge GPU-Z video decoder support
DXVA 2.0 Video Decode
Supported Yes
H.264 multiview
9901ccd3-ca12-4b7e-867a-e2223d9255c3
Supported Yes
480p Yes
720p Yes
1080p Yes
4K Yes
@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 / letsencrypt.yourdomain.conf
Last active April 4, 2017 20:09
lighttpd letsencrypt ssl conf
$SERVER["socket"] == ":443" {
ssl.engine = "enable"
ssl.pemfile = "/etc/letsencrypt/live/yourdomain/ssl.pem"
ssl.ca-file = "/etc/letsencrypt/live/yourdomain/fullchain.pem"
ssl.dh-file = "/etc/ssl/certs/dhparam.pem"
ssl.ec-curve = "secp384r1"
ssl.honor-cipher-order = "enable"
ssl.cipher-list = "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH"
ssl.use-compression = "disable"
setenv.add-response-header = (
@nwgat
nwgat / ryzen memcopy 32.txt
Created March 15, 2017 18:13
ryzen memcopy 32
Size: 33177600 byte (Width: 3840, Height: 2160, Depth: 4)
Iterations: 100
Initializing...
| Name | Calls | Valid | Average Time | Minimum Time | Maximum Time | Bandwidth |
+------------------+----------+----------+--------------+--------------+--------------+----------------------+
| C | 100 | 100 | 4088401 ns | 2808109 ns | 6085061 ns | 8115054098 B/s |
| C++ | 100 | 100 | 4066675 ns | 2847848 ns | 7064794 ns | 8158408929 B/s |
| MOVSB | 100 | 100 | 6174592 ns | 4662324 ns | 15836649 ns | 5373245131 B/s |
| MT: 2 Threads | 100 | 100 | 2675723 ns | 2540197 ns | 3048641 ns | 12399487743 B/s |
| MT: 3 Threads | 100 | 100 | 2534039 ns | 2442978 ns | 2847848 ns | 13092772992 B/s |
@nwgat
nwgat / 960evo_990FX.txt
Created February 6, 2017 22:59
960evo_990FX.md
AS SSD Benchmark 1.9.5986.35387
------------------------------
Name: NVMe Samsung SSD 960 SCSI Disk Device
Firmware: 2B7Q
Controller: secnvme
Offset: 132096 K - OK
Size: 465.76 GB
Date: 2/6/2017 23:44:21
------------------------------
Sequential:
@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",