Skip to content

Instantly share code, notes, and snippets.

View pandamoon21's full-sized avatar
๐Ÿš€
:)

pandamoon21 pandamoon21

๐Ÿš€
:)
View GitHub Profile
@pandamoon21
pandamoon21 / btn-site-tags.md
Created January 31, 2023 05:06 — forked from rlaphoenix/btn-site-tags.md
BTN Site Tags
Site/Network Abbreviation
9Now 9NOW
A&E AE
ABC (AU) iView AUBC
ABC (US) AMBC
Adult Swim AS
Al Jazeera English AJAZ
All4 (Channel 4, ex-4oD) ALL4
Amazon AMZN
@pandamoon21
pandamoon21 / _restream_cenc.md
Created July 17, 2022 03:36 — forked from rlaphoenix/_restream_cenc.md
Ways to re-stream and decrypt MPEG-CENC live streams. (or just play on desktop)

Disclaimer

  1. All content keys were redacted, they should be 128-bit hex strings.
  2. These methods involve the use of ffmpeg and -cenc_decryption_key which is not part of stable releases as of July 2022. Use nightlies from gyan.dev or some other autobuild in the meantime. Hopefully it gets added in the next stable release.
  3. On my end none of these were particularly reliable. This may change in the future as FFmpeg evolves. The direct method of playing with ffplay is currently the most reliable out of the listed methods.

xTeVe (for Emby/Plex)

import base64
import uuid
from pymp4.parser import Box
def get_moov_pssh(fd):
while True:
x = Box.parse_stream(fd)
if x.type == b'moov':
@pandamoon21
pandamoon21 / mktor_functions.sh
Created April 2, 2022 04:52
bash/zsh functions for easy torrent creation on private trackers
TORRENT_WATCH_DIR="$HOME/rtorrent/watch/load"
ANNOUNCE_BTN='http://landof.tv/YOUR_PASSKEY/announce'
ANNOUNCE_PTP='http://please.passthepopcorn.me:2710/YOUR_PASSKEY/announce'
ANNOUNCE_HDB='http://tracker.hdbits.org/announce.php?passkey=YOUR_PASSKEY'
mkt() {
tracker="$1"
announce=$(eval printf -- "'%s'" "\$ANNOUNCE_$tracker")
if [[ -z "$announce" ]]; then
printf 'Error: $ANNOUNCE_%s is not set\n' "$tracker" >&2