Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ffmeta

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ffmeta

A pure JavaScript implementation of ffmetadata parsing and serialization

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
20
Maintainers
1
Weekly downloads
 
Created
Source

ffmeta

A pure JavaScript implementation of ffmetadata parsing and serialization. ffmeta follows closely the libavformat's implementation to be as consistent as possible with FFmpeg's tools.

Usage

ffmeta exports two functions, parse() and stringify(). Use parse() to parse a string containing an ffmetadata file, it will throw a SyntaxError if the input is invalid or return an object representation of the metadata. Use stringify() to turn an object representation of the metadata into an ffmetadata file, it may throw a TypeError if a chapter has invalid TIMEBASE, START or END .

Node.js example.

import * as ffmeta from 'ffmeta';
import fs from 'fs';

const metadata = ffmeta.parse(fs.readFileSync('input.ffmeta', 'utf8'));
metadata.metadata.title = 'Some Title';

fs.writeFileSync('output.ffmeta', ffmeta.stringify(metadata));

Keywords

FAQs

Package last updated on 11 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc