Live stream from your PS4 to a local computer running an RTMP server by intercepting the twitch.tv stream.
Requirements
- DD-WRT enabled Router (or router with iptables compatibility)
- nix Envirment
- nginx with the nginx-rtmp-module
#!/bin/sh | |
# Bandwidth flow controller. Should decrease overall latency. | |
: <<'EOF' | |
Copyright (C) February 30, 2006, Andrew Domaszek | |
(MIT License) | |
Update history: | |
May 30, 2014 - add internal flow limit |
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:
Set the buffer size (-bufsize:v
) equal to the target bitrate (-b:v
). You want to ensure that you're encoding in CBR mode.
Set up the encoders as shown:
#!/bin/bash | |
# Diego García Gonzalez (diegargon) diego@envigo.net | |
# v1.0 | |
### BEGIN INIT INFO | |
# Provides: myQoS | |
# Required-Start: networking, myFirewall | |
# Required-Stop: | |
# Should-Start: | |
# Should-Stop: | |
# Default-Start: 2 3 4 5 |
Apple runs a fleet of stratum 1 NTP servers at time.apple.com. In my experience, ntpd/chronyd are very happy with them.
It looks like, instead of doing anycast, they maybe use DNS to steer you to the closest one.
time.apple.com
is a CNAME for time-osx.g.aaplimg.com
. Querying a handful of DNS servers, I've identified the following locations:
IP | Hostname | Location |
---|---|---|
17.253.2.125 | usdal4-ntp-001.aaplimg.com. | Dallas |
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb | |
sudo dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb |
# All the commands have been tested on a Xubuntu 22.04 | |
# First we update our machine | |
sudo apt update | |
sudo apt upgrade | |
# We install the Nginx server | |
sudo apt install nginx | |
# We test and enable the firewall if it is disabled | |
sudo ufw status |