Skip to content

zhuguibiao/flv-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flv data· npm version

add custom script tag data or metadata at any time of the FLV file

English | 简体中文

Why Do It?

There is an FLV live stream in my project, and the result of algorithm analysis needs to be displayed in real time. Therefore, I will add custom script tag data to each frame of the FLV file, and then display it.

Demo

flv-data online demo

Usage Instructions

npm / yarn / pnpm

# Using npm
npm install flv-data -g

# Using yarn
yarn global add flv-data

# Using pnpm
pnpm install flv-data -g

flv-data run demo

flv-data -i input.flv -data test.json --t=1000 -o test.flv

API

Field Type Description
-i url string input file url
-data url string or JSONString metadata, is json url or JSONString
-t timestamp video timestamp
-o url string output file url

Other

flv.js online test

FLV video_file_format_spec for AMF

License

Remult is MIT Licensed