Skip to content

Instantly share code, notes, and snippets.

View francisuk1989's full-sized avatar

Francis francisuk1989

  • Douglas, Isle of Man
  • 11:14 (UTC +01:00)
View GitHub Profile
@DevStefIt
DevStefIt / ffmpeg_dash.sh
Last active February 8, 2024 22:12
HLS and DASH guide on an Nginx server with RTMP mode enabled, with FFmpeg as support
ffmpeg -re -i INPUT -c:v libx264 -c:a aac -preset slower -f dash ARBITRARY_NAME.mpd
@DevStefIt
DevStefIt / rtmp_server_commands.txt
Created February 9, 2023 08:41
A list of commands to configure a Nginx server to send data through RTMP
# 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
@heri16
heri16 / README.md
Last active March 29, 2024 02:43
Openwrt: Uses CAKE's diffserv4 classifications: Bulk, Best Effort, Video, Voice in combination with act_ctinfo and CONNMARK --set-dscpmark to restore DSCP classifications on ingress.

Smart Queue

Initial Setup

opkg update
opkg install luci-app-sqm kmod-sched-ctinfo iptables-mod-hashlimit ipset nano

# Install modified layer_cake to sqm-scripts
wget https://gist.githubusercontent.com/heri16/06c94b40f0d30f11e3a82166eca718f3/raw/layer_cake_ct.qos -O /usr/lib/sqm/layer_cake_ct.qos

1. Compile nginx with rtmp module

Clone nginx-rtmp-module

$ git clone https://github.com/sergey-dryabzhinsky/nginx-rtmp-module.git

Install nginx dependencies

@diegargon
diegargon / QoS
Last active May 20, 2023 21:20
QoS Ubuntu Script
#!/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
@dangkhoasdc
dangkhoasdc / windows10_speed_up.md
Last active May 20, 2023 21:25
Some tips&tricks to speed up windows 10

Network

Disable Windows Update delivery

Settings > Update & Security > Windows Update > Advanced Options:

  • Turn off the p2p file transfer [Recommend]
  • Limit the p2p transfer to PCs on the local network

Turn off background apps

@Brainiarc7
Brainiarc7 / ffmpeg-livestream-to-streaming-sites-vaapi-nvenc.md
Last active January 1, 2024 09:03
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:

@brimston3
brimston3 / FLOW.sh
Created October 5, 2014 19:40
Linux HTB QoS script with source-based prioritization.
#!/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

Livestreaming via PS4 to a local RTMP server

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