3.6.0 • Published 6 months ago

@mediamonks/display-ads-recorder v3.6.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Display Ads Recorder

npm version GitHub Actions Status License: MIT Node Version Dependencies Status PRs Welcome

The Display Ads Recorder is a powerful command-line tool designed to automate the recording of display ads and convert them into multiple formats (video, jpg, and animated gif).

Features

  • 📹 Multiple output formats support (MP4, GIF, JPG)
  • 🎵 Audio integration capabilities
  • ⚡ Parallel processing for better performance
  • 🎨 Customizable FPS settings (15, 30, 60)
  • 📦 Optimized file sizes
  • 🚀 Easy integration with existing display ad projects

Prerequisites

Installation

npm install @mediamonks/display-ads-recorder

Basic Usage

display-ads-recorder

Advanced Usage

Command Line Options

display-ads-recorder [options]

Options:
  -c, --chunkSize      Define chunkSize (default: 10)
  -t, --targetDir      Set target dir
  -a, --all                  Record all ads
  -j, --jpg [size]          Output JPG with optional size in KB
  -g, --gif [loop]          Output animated GIF (once/loop)
  -m, --mp4                  Output MP4 video
  -au, --audio         Add audio file (relative path from target dir)
  -v, --volume       Specify audio volume
  -f, --fps <15|30|60>      Set FPS for recording

Examples

# Record all ads in build directory
display-ads-recorder -t ./build -a

# Record specific ad with multiple outputs
display-ads-recorder -t ./build -m -g loop -j 40 -f 30

# Record with audio
display-ads-recorder -t ./build -m -au ./audio/background.mp3 -v 0.8

Configuration

Required Ad Structure

Integration with Display Temple

import { enableAdsRecorder } from '@mediamonks/display-temple';

// In your ad's main script
enableAdsRecorder(timeline, config);

Output Formats

MP4 Video

  • High-quality video output
  • Customizable FPS
  • Optional audio integration
  • Optimized for web delivery

Animated GIF

  • Loop or single-play options
  • Optimized color palette
  • Configurable frame rate
  • Balanced quality/size ratio

JPG Backup

  • Configurable file size limits
  • Automatic quality optimization

Contribute

View CONTRIBUTING.md

LICENSE

MIT © MediaMonks

3.4.0

10 months ago

3.3.0

10 months ago

3.6.0

6 months ago

3.2.0

2 years ago

2.0.2

3 years ago

3.0.2

3 years ago

3.1.0

3 years ago

3.0.1

3 years ago

3.0.0

3 years ago

2.0.1

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago