8000 GitHub - MAXakaWIZARD/ducktaper: If it walks like a video and quacks like a video... dump it to JSON · GitHub
[go: up one dir, main page]

Skip to content
MAXakaWIZARDPublic

About

If it walks like a video and quacks like a video... dump it to JSON

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

DuckTaper

If it walks like a video and quacks like a video... dump it to JSON

What it really is

A console tool for scanning video files and dumping info in JSON format

Dumped info

  • title
  • size (bytes)
  • source (according to config file)
  • subdir (if any)
  • width
  • height
  • bitrate (bytes/sec)
  • duration (secs)
  • framerate (fps)

Env

  • Ruby 3.2
  • Bundler 4
  • Node 22
  • NPM 10

Setup

  1. copy config file and modify to your needs
cp config.example.yml config.yml
  1. install dependencies
bundle install
npm i

Run

ruby ducktaper

Skip mediainfo

ruby ducktaper --skip-mediainfo

Skip checking locations

ruby ducktaper --skip-checking-locations

Prevent cache usage

ruby ducktaper --skip-cache --log-mediainfo

No cache, no mediainfo

ruby ducktaper --skip-cache --skip-checking-locations --skip-mediainfo

Dry run (nothing will be written to disk)

ruby ducktaper --dry-run

Release

npm run release

Tests

bundle exec rake test

Install deps

bundle install

Update deps

bundle update

Docs

download mediainfo: https://mediaarea.net/en/MediaInfo/Download mediainfo file format: https://mediaarea.net/MediaConch/Documentation/DataFormat#structure-of-a-mediainfo-xml

About

If it walks like a video and quacks like a video... dump it to JSON

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0