Skip to content

Instantly share code, notes, and snippets.

View rlaphoenix's full-sized avatar

rlaphoenix

View GitHub Profile
@rlaphoenix
rlaphoenix / p2p_filename_ideas.md
Last active September 25, 2024 18:28
P2P Filename Suggestions/Ideas

P2P Blu-ray Filename Ideas

All of these are ideas to improve the Blu-ray P2P filenaming landscape.
None of these are particularly used yet apart from maybe my own releases or a handful of other people who had the same idea.

If you need current P2P filename rules, go to https://phoeniix.dev/filenames.

Discs

We should use a capacity nomenclature in place of what's typically the "Source Tag" (i.e. where WEB-DL or BluRay would be).

@rlaphoenix
rlaphoenix / fhfif-fyc-2007.md
Last active November 28, 2022 03:18
Foster's Home for Imaginary Friends FYC 2007 DVD Screener
@rlaphoenix
rlaphoenix / victorious_2010_recuts.md
Last active November 1, 2022 08:06
Victorious (2010) Recuts, Extended Editions, and such info

Victorious (2010) Recuts, Extended Editions, and such info

Extended Editions

I only know of two episodes having a true extended edition, and one of them isn't considered a Victorious episode.

S01E01 "Pilot"

+3m8s

@rlaphoenix
rlaphoenix / switch-usb-c-port-repair.md
Last active October 9, 2022 20:39
Nintendo Switch USB-C Port Repair

Removing Silver Solder

  1. Apply some Flux.
  2. Add some 60/40 solder.
  3. Use Wick (not too much force, don't want to pull a pad).
  4. Clean.
  5. Repeat until the pads look realy clean and solder melts onto the pads very easily.

Tips:

@rlaphoenix
rlaphoenix / adobe_field_bug.md
Last active May 19, 2024 04:21
The Adobe Bug - A video artifact plaguing a lot of old animated media

The Adobe Bug - A video artifact plaguing a lot of old animated media

This is also known as the 'Klasky-Csupo effect', after an animation studio of the same name, though there is no evidence suggesting the studio to blame for the artifact. Though, it is possible that most or a lot of animation coming out of this studio have this artifact.

What does the bug look like?

Adobe Bug Example #1 Adobe Bug Example #2

Outlines will have a sort of shadow or vertical blur to it. In most occurrences of this bug it will alternate which direction/side of the outline the 'shadow' will be, sometimes switching every frame or every n frames. This causes a very noticeable artifact that can destroy perceptual quality and structural integrity. To the layman this will look like and can be described as a 'flicker'.

@rlaphoenix
rlaphoenix / mitm_decrypt_enc_client_id.py
Last active July 27, 2024 10:17
Recover Client ID from most Widevine License Servers, CDM Implementations, and CDM APIs (if forcing privacy mode)
"""
Super trivial 'exploit' to Recover Client IDs from Challenges where it's Encrypted by Privacy Mode.
This can be done on 90% of third-party CDM Implementations, APIs, Proxies. It might work on some
license servers which they use their own certificate, but only if they forget to verify the signature
of the service certificate. So this wont work on any License Server that proxies to Google's Server.
The attack effectively boils down to the missing verification of Service Certificate signatures.
So just replace the public key of a service cert with one you have the private key for, and then
give it that. Now you can decrypt.
@rlaphoenix
rlaphoenix / mkvtoolnix_merge_pts_freeze.md
Last active July 26, 2022 22:04
MKVToolNix Merge PTS Freeze Issue

MKVToolNix Merge PTS Freeze Issue

This is an issue where the player will freeze or drop FPS to 0(or so) for a bit when switching from video a to b (passing the merge point). The player will eventually unfreeze but when it does, it speeds the FPS up until it reaches the right PTS, then plays as normal.

The Issue

It seems to be related to the timestamps of the Video file overall extending past the Video/Audio track timestamps. This seems to be caused mainly by some Subtitle files display times causing it to extend a bit further. This issue does not happen on all players. This bug is confirmed to happen on MPV.

The Fix

@rlaphoenix
rlaphoenix / _restream_cenc.md
Last active January 8, 2025 21:14
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)

@rlaphoenix
rlaphoenix / add_root_cert.bat
Last active July 5, 2023 23:00
Add Cert and Trust It without Magisk Modules/Rebooting/Emulator Flags. Works on Windows Subsystem for Android. Credit: HTTPToolkit
adb shell "mkdir -m 700 /data/local/tmp/htk-ca-copy"
adb shell "cp /system/etc/security/cacerts/* /data/local/tmp/htk-ca-copy/"
adb shell "su -c 'mount -t tmpfs tmpfs /system/etc/security/cacerts'"
adb shell "su -c 'mv /data/local/tmp/htk-ca-copy/* /system/etc/security/cacerts/'"
adb shell "su -c 'cp ""/sdcard/Download/1075b9da.0"" /system/etc/security/cacerts/'"
adb shell "su -c 'chown root:root /system/etc/security/cacerts/*'"
adb shell "su -c 'chmod 644 /system/etc/security/cacerts/*'"
adb shell "su -c 'chcon u:object_r:system_file:s0 /system/etc/security/cacerts/*'"
adb shell "su -c 'rm -r /data/local/tmp/htk-ca-copy'"
echo "Done"
"""
Script to scrape FilmOn for all channels and returns as tvg m3u8.
Includes Channel Name, Logo, and Category.
URI is an example proxied stream from https://gist.github.com/rlaphoenix/e18170c950a917890823eb53777a15a0
as using the official URI will just expire, useless.
"""
import sys
import requests
from pathlib import Path