pacmd load-module module-null-sink sink_name=rtp format=s16le channels=1 rate=16000
pacmd load-module module-rtp-send source=rtp.monitor
This sets up a multicast socket for RTP streams. When I tested this was 224.0.0.56:46136
Retrieve hosted zones with aws route53 list-hosted-zones
then enter the zone Id below:
aws route53 list-resource-record-sets --hosted-zone-id "/hostedzone/xxxxxxxxxxx" | \
jq -r '.ResourceRecordSets[] | [.Name, .Type, (.ResourceRecords[]? | .Value), .AliasTarget.DNSName?] | @tsv'
package main | |
import ( | |
"encoding/binary" | |
"fmt" | |
"math/rand" | |
"net" | |
) | |
func main() { |
#!/bin/bash | |
# | |
# Update the ipset that iptables references for allowing/blocking based on country. | |
# Takes 2 parameters: ipset name (no spaces), country name e.g. 'Australia' | |
# | |
# iptables should have an existing '--match-set' rule e.g | |
# $ iptables -I INPUT -p tcp --dport 22 -m set --match-set australia4 src -j ACCEPT | |
# $ ip6tables -I INPUT -p tcp --dport 22 -m set --match-set australia6 src -j ACCEPT | |
# |
#!/usr/bin/perl | |
# Credit to Ryan Barnett at Spiderlabs.com for original idea | |
# | |
# Usage: modgrep.pl -a <logfile> | |
# -s <search keyword> (optional) | |
# | |
use strict; | |
use warnings; | |
use Getopt::Std; |
Using ffmpeg-3.1.6-1.fc25.x86_64
on Fedora 25, available from rpmfusion-free repo. It has been built with va-api support.
The following ffmpeg invocation works for me.
ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -vaapi_device /dev/dri/renderD128 \
-i input.mkv -vf 'format=nv12,hwupload' -map 0:0 -map 0:1 -threads 4 \
-acodec copy -vcodec h264_vaapi -qp:v 23 \
output.mp4
How to install phpredis extension on Centos6 using pecl:
# Enable EPEL repository
yum install epel-release
# Install Autoconf v2.68
yum install autoconf268
# Install the extension