Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block pikassogod

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
pikassogod / ffmpeg livestreaming to youtube via Nvidia's NVENC and Intel's VAAPI on supported hardware

Streaming your Linux desktop to Youtube and Twitch via Nvidia's NVENC and VAAPI:

Considerations to take when live streaming:

The following best practice observations apply when using a hardware-based encoder for live streaming to any platform:

  1. Set the buffer size (-bufsize:v) equal to the target bitrate (-b:v). You want to ensure that you're encoding in CBR mode.

  2. Set up the encoders as shown:

View jwplayer.js
"undefined" === typeof jwplayer && (jwplayer = function() {
if (jwplayer.api)
return jwplayer.api.selectPlayer.apply(this, arguments)
jwplayer.version = "6.12.4956",
jwplayer.vid = document.createElement("video"), = document.createElement("audio"),
jwplayer.source = document.createElement("source"),
function() {
pikassogod / audit.rules
Created Jan 18, 2020 — forked from CHEF-KOCH/audit.rules
BSD hardened settings 2015 Edition
View audit.rules
# This file contains the auditctl rules that are loaded
# whenever the audit daemon is started via the initscripts.
# The rules are simply the parameters that would be passed
# to auditctl.
# First rule - delete all
# Increase the buffers to survive stress events.
# Make this bigger for busy systems
pikassogod /
Created Jan 18, 2020 — forked from asyncee/
install openvpn on debian 9
# This script helps one to setup openvpn on a Debian 9 under OpenVZ.
# It uses external script (read it carefully!
# Update system.
apt-get update
apt-get upgrade
# Add new user to system.
useradd -m vpn
pikassogod / cuda_10.0_installation_on_Ubuntu_18.04
Created Dec 20, 2019 — forked from Mahedi-61/cuda_10.0_installation_on_Ubuntu_18.04
Cuda 10.0 complete installation procedure for ubuntu 18.04 LTS
View cuda_10.0_installation_on_Ubuntu_18.04
## This gist contains step by step instructions to install cuda v10.0 and cudnn 7.5 in Ubuntu 18.04
### steps ####
# verify the system has a cuda-capable gpu
# download and install the nvidia cuda toolkit and cudnn
# setup environmental variables
# verify the installation
pikassogod /
Created Dec 20, 2019 — forked from Jiab77/
Compilation FFMpeg / NVENC + QSV + VAAPI + VDPAU + OpenCL

Compilation FFMpeg / NVENC + NVRESIZE + QSV + VAAPI + VDPAU + OpenCL

nVidia nvresize patch is outdated and not more compatible to the latest version of FFmpeg, so it's not included in this documentation.

(even if I've passed a lot of time at trying to make it compile... without any success)

Please don't rely on this page:, the implementation is a hack and was never been added to the main FFmpeg tree.


pikassogod /
Created Oct 25, 2019 — forked from zenofile/
FFmpeg build for NVIDIA PRIME-enabled systems on Ubuntu 18.04LTS+. NVENC, QuickSync and VAAPI hwaccels are enabled.

FFmpeg build for Optimus and dual-GPU (Intel+NVIDIA) systems on Ubuntu 18.04LTS:

Build platform: Ubuntu 18.04LTS

Goals: Generate an FFmpeg build that can utilize NVENC, QuickSync and VAAPI-based hardware acceleration on NVIDIA-PRIME-based systems on Ubuntu 18.04LTS+.

Ensure the platform is up to date:

sudo apt update && sudo apt -y upgrade && sudo apt -y dist-upgrade

pikassogod /
Created Oct 25, 2019
This gist will show you how to build a minimalist, statically-linked ffmpeg binary under the ~/bin subdirectory on your home on Ubuntu 16.04LTS. Comes with (optiona) NPP, CUDA and NVENC capabilities. See notes in the warning section.

Minimalist static FFmpeg build on Ubuntu 18.04 with Nvidia NVENC enabled.

Original guide with a standard build is here.

With this guide, I'm adding more instructions to enable support for NVIDIA CUVID and NVIDIA NPP for enhanced encode and decode performance.


If all you require is NVENC's enablement, you do NOT need the CUDA SDK. The nv-codec-headers (below) is ALL you require.

pikassogod / This gist will generate an Intel QSV-enabled FFmpeg build using the open source Intel Media SDK. Testbed used: Ubuntu 18.04LTS. A fallback is also provided for the intel vaapi driver where needed.

Build FFmpeg with Intel's QSV enablement on an Intel-based validation test-bed:

Build platform: Ubuntu 18.04LTS

Ensure the platform is up to date:

sudo apt update && sudo apt -y upgrade && sudo apt -y dist-upgrade

Install baseline dependencies first (inclusive of OpenCL headers+)

You can’t perform that action at this time.