View VAAPI-hwaccel-encode-Linux-Ffmpeg&Libav-setup.md

Using VAAPI's hardware accelerated video encoding on Linux with Intel's hardware on FFmpeg and libav

Hello, brethren :-)

As it turns out, the current version of FFmpeg (version 3.1 released earlier today) and libav (master branch) supports full H.264 and HEVC encode in VAAPI on supported hardware that works reliably well to be termed "production-ready".

View gist:76bee1ed238cb79cc444
#!/bin/bash
if [[ ! -f PKGBUILD ]]; then
echo "PKGBUILD not found"
exit 1
fi
# gitignore by default ignores everything but
# - PKGBUILD
# - .SRCINFO
View README.md

Font Face

A mixin for writing @font-face rules in SASS.

Usage

Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.

@include font-face(Samplino, fonts/Samplino);
View php-cs-fixer
parameters
--level=psr2 --verbose fix $FileDir$/$FileName$
working directory
$ProjectFileDir$
View dashboard.html
{# ******************** EXTENDS ******************** #}
{% extends "master.template.html" %}
{# ******************** TITLE ******************** #}
{% block title %}Dashboard{% endblock %}
{# ******************** BODY ******************** #}
{% block body %}
View generate-gifs.bash
#!/bin/bash
# Generate gifs from jpg sequence
convert +repage -fuzz 0.0%% -delay 4 -loop 0 *.jpg -layers OptimizePlus -layers OptimizeTransparency "gif-00.gif"
convert +repage -fuzz 0.5%% -delay 4 -loop 0 *.jpg -layers OptimizePlus -layers OptimizeTransparency "gif-05.gif"
convert +repage -fuzz 1.0%% -delay 4 -loop 0 *.jpg -layers OptimizePlus -layers OptimizeTransparency "gif-10.gif"
convert +repage -fuzz 1.5%% -delay 4 -loop 0 *.jpg -layers OptimizePlus -layers OptimizeTransparency "gif-15.gif"
convert +repage -fuzz 2.0%% -delay 4 -loop 0 *.jpg -layers OptimizePlus -layers OptimizeTransparency "gif-20.gif"
convert +repage -fuzz 2.5%% -delay 4 -loop 0 *.jpg -layers OptimizePlus -layers OptimizeTransparency "gif-25.gif"
convert +repage -fuzz 3.0%% -delay 4 -loop 0 *.jpg -layers OptimizePlus -layers OptimizeTransparency "gif-30.gif"
View nginx.conf
#
# CORS header support
#
# One way to use this is by placing it into a file called "cors_support"
# under your Nginx configuration directory and placing the following
# statement inside your **location** block(s):
#
# include cors_support;
#
# As of Nginx 1.7.5, add_header supports an "always" parameter which
View mozconfig.sh
# Make options
mk_add_options MOZ_MAKE_FLAGS="-j8"
mk_add_options AUTOCLOBBER=1
# Artifact build
ac_add_options --enable-artifact-builds
mk_add_options MOZ_OBJDIR=./objdir-frontend
# Browser
ac_add_options --enable-application=browser
View command.txt
ffprobe -v quiet -print_format json -show_format -show_streams "lolwut.mp4" > "lolwut.mp4.json"