npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

video-testdata-loader

v2.1.3

Published

Provides methods to easily access the files in "video-testdata"

Downloads

50

Readme

This module is a loader for the test video-files contained in the video-testdata package Those can be used to test video-conversion to different formats.

Usage

Syntax: const file = await loadData("<filename>",["<innerFile>"], [options])

The call returns a promise that resolves to the target file once it is ready. If the file is a tar-file, it is automatically extracted and file will point to a temporary directory containing the extracted data. If the file is a tar-file, an innerFile may be provided. file will then point to this file within the extracted tar-file.

Options

"options" is an object that can have the following properties

  • to: The file to copy the media file to, or the name of the directory to extract the tar file to.

Examples


var loadData = require("video-testData-loader");

const file = await loadData("2-video-unstreamable.mp4")

// ... or,

const file = await loadData("2-video-unstreamable.mp4", { to: "testTmp/video.mp4" })

// ... or, for tar-files ...

const file = await loadData("panasonic-lumix-dmc-zx3.tar","PRIVATE/AVCHD/BDMV/STREAM/00000.MTS")

// ... or ... ,

const directory = loadData("panasonic-lumix-dmc-zx3.tar")
// directory is the root of the extracted tar-file

Files

The following files can be used

0-novideo.mp4

This file is not actually a video but a text file containing "123". Can be used as "broken" video"

1-video-streamable.mp4

An mp4-video with H264/AAC streams with the "moov" box near the beginning, so that ffmpeg can perform a streaming decode

2-video-unstreamable.mp4

An mp4-video with H264/AAC streams with the "moov" box not near the beginning, so that ffmpeg does not accept this video via stdin.

panasonic-lumix-dmc-zx3.tar

A tar-file containing the sd-card content of Panasonic Lumix after recording a single video. In particular, the inner file PRIVATE/AVCHD/BDMV/STREAM/00000.MTS is a AVHCD MPEG2-Transport- Stream file.

samsung-smx-f40bp-edc.tar

A tar-file containing the sd-card content of Samsung-Camcorder after recording a single video. In particular, the inner file VIDEO/100VIDEO/SDV_0999.MP4 is a mp4-file.