Skip to content

Instantly share code, notes, and snippets.

View JySzE's full-sized avatar
💭
In Goldenrod City

JySzE JySzE

💭
In Goldenrod City
View GitHub Profile

Guide to Generating Keyframes with Batch

This guide explains how to use the provided batch script to generate keyframes from video files.

The script is designed for use with AviSynth and requires specific tools and configurations.


Requirements

  1. AviSynth+ (64-bit version)

Parsing Video Metadata with Batch

Note: This script can be easily adapted or reduced to extract different metadata entries by modifying the findstr lines to match the desired fields.

The metadata is saved in a text file named output.txt.


Prerequisites

  1. FFmpeg: Ensure you have FFmpeg installed on your system.

How to Offset Chapter Timecodes Using Python

This script processes XML files in a specified directory, adjusting the chapter start times based on a user-defined offset. It reads the XML files, identifies <ChapterTimeStart> tags, and updates their time values accordingly.

Here’s a step-by-step guide on how to use the script:

Prerequisites

  1. Python 3.x: The script is written in Python and requires Python 3.x to run.
  2. XML Files: The script is designed to work with XML files that contain chapter timecodes in the <ChapterTimeStart> tags.
  3. Text Editor: You can edit the script with any text editor, like VSCode or Sublime.