Skip to content

Instantly share code, notes, and snippets.

@YukinoAi
YukinoAi / common_db.rb
Created March 28, 2024 03:59 — forked from UserUnknownFactor/common_db.rb
Unpack/repack tools for RPG maker games
require 'zlib'
# Some data structures that are common to both VX and VX Ace.
class Rect
def initialize(x, y, width, height)
@x = x
@y = y
@width = width
@height = height

The following is a small guide on decoding RF laserdisc captures (.lds/.ldf) with ld-decode.

Part A - Determining Decode Settings

  • The following information needs to be known.
  1. PAL or NTSC?
  2. If NTSC, is it NTSCJ?
  3. CAV or CLV?
  4. Analog or Digital Audio?
@YukinoAi
YukinoAi / ld-process.sh
Created October 6, 2020 03:04
Wrapper script for ld-decode toolset.
#/bin/bash
#exit script if an error occurs
set -e
if [ -z "$1" ] || [ "$1" = "--help" ] || [ "$1" = "-h" ] ; then \
echo Syntax: $0 inputFile.ldf cavOrClv ntscOrPal combFilter digitalOrAnalogAudio length startAt white ntscj
echo Examples:
echo $0 /home/user/Downloads/myFile.lds clv ntsc
echo $0 myFile.lds cav ntsc ntsc3d digital 1000 500 true true
echo $0 myFile.ldf clv pal pal2d none 0 500
@YukinoAi
YukinoAi / qbittorrrentgui-build.sh
Last active September 11, 2020 19:14 — forked from jDmacD/qbBuild.sh
qbittorrent from scratch for raspberry pi
#!/bin/bash
# https://github.com/qbittorrent/qBittorrent/wiki/Setting-up-qBittorrent-on-Ubuntu-server-as-daemon-with-Web-interface-(15.04-and-newer)
# https://github.com/qbittorrent/qBittorrent/wiki/Compiling-qBittorrent-on-Debian-and-Ubuntu
# https://github.com/qbittorrent/qBittorrent/wiki/Compiling-qBittorrent-on-Raspbian-for-LeMaker-Banana-Pro
sudo su -
cd /home/pi/
@YukinoAi
YukinoAi / Working with Series of Pictures.txt
Created February 5, 2018 02:22
ffmpeg and avisynth syntax for GoP options
#To create:
ffmpeg -i myvideo.avs -vf "fps=24000/1001" out\image-%06d.png
ffmpeg -i "myvideo.avs" -vf "fps=24000/1001" -pix_fmt rgb24 "out\video-%06d.png"
ffmpeg -i input.avi -vf "fps=24000/1001" -pix_fmt rgba out\image-%06d.tiff
ffmpeg -i input.avi -vf "fps=24000/1001" -pix_fmt rgb24 -compression_algo raw out\image-%06d.tiff
-pix_fmt rgb24, rgba, yuv420p, yuv422p, yuv444p
-output: png, jpg, bmp, tif, tiff
@YukinoAi
YukinoAi / CopyFromMe_AviSynth.avs.txt
Last active June 6, 2022 17:47
AviSynth CopyFromMe Template
#load video
vid="c:\myvideo.mkv"
aud=vid
#load normal video,
#FFM2 does not handle yuv422p or yuv444p video well, regardless of codec, or 10-12 bit-depth.
FFVideoSource(vid)
FFIndex(vid) AudioDub(FFVideoSource(vid), FFAudioSource(aud))
FFIndex(vid) AudioDub(FFVideoSource(vid,fpsnum=24000,fpsden=1001,colorspace="yv12"), FFAudioSource(aud,track=0))
@YukinoAi
YukinoAi / CopyFromMeTemplate_VapourSynth.vpy.txt
Last active November 14, 2020 17:15
VapourSynth CopyFromMe Template
#from vapoursynth import core #
import vapoursynth as vs
core = vs.get_core()
#import mvsfunc as mvf #only import mvsfunc if using BM3D
#load video
vidPath=r"C:\Users\User\video.mkv" #absolute path is required
vidPath=r"myscript.avs"
#ffms2