精简了上游直播源内容,仅保留个人所需的。
https://gist.githubusercontent.com/inkss/0cf33e9f52fbb1f91bc5eb0144e504cf/raw/ipv6.m3u
| #!/bin/bash | |
| m3u="/www/1.m3u" | |
| dvrpath="/mnt/media/" | |
| echo -n "频道名:" | |
| read chan | |
| while [ -z $(cat /www/1.m3u | grep ${chan} -A 1 | head -2 | tail -1) ]; do | |
| echo -n "无此频道,请重新输入:" | |
| read chan | |
| done |
| #EXTINF:-1,北京卫视4K | |
| rtp://239.3.1.22:8001 | |
| #EXTINF:-1,云南卫视 | |
| rtp://239.3.1.26:8108 | |
| #EXTINF:-1,四川卫视 | |
| rtp://239.3.1.29:8288 | |
| #EXTINF:-1,广西卫视 |
Use a Raspberry Pi as a bridge into my home LAN. The pi is plugged into a switch, which is plugged into an airport express, which is plugged into a cable modem; Nothing fancy.
This isn't a tutorial. Just some example output from a working setup.
off the top of my head, here's the order I would do it in:
I screwed up using git ("git checkout --" on the wrong file) and managed to delete the code I had just written... but it was still running in a process in a docker container. Here's how I got it back, using https://pypi.python.org/pypi/pyrasite/ and https://pypi.python.org/pypi/uncompyle6
apt-get update && apt-get install gdb
I screwed up using git ("git checkout --" on the wrong file) and managed to delete the code I had just written... but it was still running in a process in a docker container. Here's how I got it back, using https://pypi.python.org/pypi/pyrasite/ and https://pypi.python.org/pypi/uncompyle6
apt-get update && apt-get install gdb
| to check if the server works - https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice | |
| stun: | |
| stun.l.google.com:19302, | |
| stun1.l.google.com:19302, | |
| stun2.l.google.com:19302, | |
| stun3.l.google.com:19302, | |
| stun4.l.google.com:19302, | |
| stun.ekiga.net, | |
| stun.ideasip.com, |
| #!/usr/bin/env python3 | |
| import asyncio, aiohttp | |
| from argparse import ArgumentParser | |
| from threading import Thread | |
| from urllib.parse import urljoin | |
| import json, logging, os, random, re, requests, signal, sys, tempfile, time | |
| import xml.etree.ElementTree as ET | |
| import aiohttp | |
| from ipdb import set_trace as bp |
| package main | |
| import ( | |
| "fmt" | |
| "net" | |
| "os" | |
| "syscall" | |
| ) | |
| const ( |