Skip to content

Instantly share code, notes, and snippets.

pikassogod

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
pikassogod / ffmpeg-livestream-to-streaming-sites-vaapi-nvenc.md ffmpeg livestreaming to youtube via Nvidia's NVENC and Intel's VAAPI on supported hardware
View ffmpeg-livestream-to-streaming-sites-vaapi-nvenc.md

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"),
jwplayer.audio = document.createElement("audio"),
jwplayer.source = document.createElement("source"),
function() {
@pikassogod
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
-D
# Increase the buffers to survive stress events.
# Make this bigger for busy systems
@pikassogod
pikassogod / install.sh
Created Jan 18, 2020 — forked from asyncee/install.sh
install openvpn on debian 9
View install.sh
# This script helps one to setup openvpn on a Debian 9 under OpenVZ.
# It uses external openvpn-install.sh script (read it carefully! https://git.io/vpn).
# Update system.
apt-get update
apt-get upgrade
# Add new user to system.
useradd -m vpn
@pikassogod
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
#!/bin/bash
## 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
pikassogod / ffmpeg.md
Created Dec 20, 2019 — forked from Jiab77/ffmpeg.md
Compilation FFMpeg / NVENC + QSV + VAAPI + VDPAU + OpenCL
View ffmpeg.md

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: https://developer.nvidia.com/ffmpeg, the implementation is a hack and was never been added to the main FFmpeg tree.

See:

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

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
pikassogod / ffmpeg-minimalist-build-nvenc-static.md
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.
View ffmpeg-minimalist-build-nvenc-static.md

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.

Warning:

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
pikassogod / ffmpeg-qsv-enabled-build-ubuntu-18.04lts-testbed.md 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.
View ffmpeg-qsv-enabled-build-ubuntu-18.04lts-testbed.md

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.