Skip to content

Instantly share code, notes, and snippets.

View alexanderzobnin's full-sized avatar

Alexander Zobnin alexanderzobnin

View GitHub Profile
@nikolaev-rd
nikolaev-rd / Grafana_ZabbixPlugin_compatibility.md
Last active November 4, 2022 08:21
Таблица совместимости версий Grafana и Zabbix-плагина
Grafana Zabbix Plugin Zabbix Нюансы
8.2.6 4.1.5 поднять версию выше не получается из-за grafana-zabbix/issue#1335
8.3.4 4.2.4 работает не у всех
8.3.5 4.2.5 sudo mkdir /var/lib/grafana/plugins/alexanderzobnin-zabbix-app/datasource-zabbix/datasource-zabbix
sudo mkdir /var/lib/grafana/plugins/alexanderzobnin-zabbix-app/datasource-zabbix/datasource-zabbix/partials/
sudo ln -s /var/lib/grafana/plugins/alexanderzobnin-zabbix-app/datasource-zabbix/partials/query.editor.html /var/lib/grafana/plugins/alexanderzobnin-zabbix-app/datasource-zabbix/datasource-zabbix/partials/query.editor.html
sudo mv /var/lib/grafana/plugins/alexanderzobnin-zabbix-app/MANIFEST.txt /var/lib/grafana/plugins/alexanderzobnin-zabbix-app/MANIFEST.txt.backup
`sudo chown -R grafana:grafana /var/lib/grafana
@jbboehr
jbboehr / ffmpeg-hevc-encode-nvenc.md
Created February 23, 2017 21:58
This gist shows you how to encode specifically to HEVC with ffmpeg's NVENC on supported hardware, with a two-pass profile and optional CUVID-based hardware-accelerated decoding.

Encoding high-quality HEVC content in a two-pass manner with FFmpeg - based NVENC encoder on supported hardware:

If you've built ffmpeg as instructed here on Linux and the ffmpeg binary is in your path, you can do fast HEVC encodes as shown below, using NVIDIA's NPP's libraries to vastly speed up the process.

Now, to do a simple NVENC encode in 1080p, (that will even work for Maxwell Gen 2 (GM200x) series), start with:

ffmpeg  -i <inputfile> -pass 1 \
-filter:v hwupload_cuda,scale_npp=w=1920:h=1080:format=nv12:interp_algo=lanczos,hwdownload,format=nv12 \

-c:v hevc_nvenc -profile main -preset slow -rc vbr_2pass \