add custom script tag data or metadata at any time of the FLV file
English | 简体中文
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.
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
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 |
FLV video_file_format_spec for AMF
Remult is MIT Licensed