little-media-box:方便的原子化类,用于表示分布式Node.js DSP管道中的数字多媒体资产

  • L9_611615
    了解作者
  • 1MB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-13 05:47
    上传日期
小媒体盒 方便的原子化类,用于表示分布式Node.js DSP管道中的数字多媒体资产。 安装 $ npm install little-media-box 地位 开发/测试/文档 用法 const { Delivery , Source } = require ( 'little-media-box' ) const uri = 'http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_60fps_normal.mp4' const delivery = new Delivery ( ) delivery . ready ( ( ) => { delivery . source ( uri ) delivery . probe ( console . log ) //delivery.d
little-media-box-master.zip
  • little-media-box-master
  • .gitignore
    940B
  • ffmpeg.js
    614B
  • demux.js
    5.3KB
  • iso-639
  • 3
  • index.js
    90B
  • codes.js
    395B
  • index.js
    226B
  • 2
  • index.js
    90B
  • codes.js
    306B
  • codes.js
    4.5KB
  • 1
  • index.js
    90B
  • codes.js
    204B
  • package.json
    1.2KB
  • settings.js
    612B
  • .npmrc
    58B
  • delivery.js
    3.6KB
  • extensions.js
    4.2KB
  • mux.js
    2.3KB
  • source.js
    6.2KB
  • LICENSE
    1KB
  • index.js
    1.2KB
  • .github
  • workflows
  • nodejs.yml
    431B
  • scripts
  • generate-constants.js
    1.8KB
  • fixtures
  • formats
    14.2KB
  • README.md
    4.1KB
  • signalprocessor.js
    996B
  • mkvmerge.js
    383B
  • example
  • basic-delivery
  • index.js
    318B
  • track-introspection
  • index.js
    780B
  • file-extensions
  • src4
    119.5KB
  • index.js
    922B
  • src3
    118KB
  • src2
    1013.6KB
  • src1
    776KB
  • language
  • example.mkv
    248.8KB
  • index.js
    1021B
  • subtitle-track
  • index.js
    545B
  • subtitles.srt
    441B
  • source-demux
  • index.js
    2.5KB
  • source-probe
  • index.js
    391B
  • sources-mux
  • index.js
    618B
  • subtitles.srt
    441B
  • source-demux-stream
  • index.js
    1.3KB
  • x264.js
    155B
  • configure.js
    1.1KB
  • constants.js
    37.1KB
  • track
  • error.js
    4.6KB
  • index.js
    626B
  • subtitle.js
    951B
  • track.js
    6.2KB
  • audio.js
    1.3KB
  • video.js
    1.8KB
  • properties.js
    5.9KB
  • asset.js
    2.7KB
  • test
  • source.js
    125B
  • subtitles.mkv
    248.8KB
内容介绍
# little-media-box > Convenient atomicized classes for representing digital multimedia assets > in distributed Node.js DSP pipelines. ## Installation ```sh $ npm install little-media-box ``` ## Status > **Development/Testing/Documentation** > [![Actions Status](https://github.com/little-core-labs/little-media-box/workflows/Node%20CI/badge.svg)](https://github.com/little-core-labs/little-media-box/actions) ## Usage ```js const { Delivery, Source } = require('little-media-box') const uri = 'http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_60fps_normal.mp4' const delivery = new Delivery() delivery.ready(() => { delivery.source(uri) delivery.probe(console.log) //delivery.demux(console.log).on('progress', console.log) // { // 'http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_60fps_normal.mp4': // { // streams: [ [Object], [Object], [Object] ], // format: { // filename: 'bbb_sunflower_1080p_60fps_normal.mp4', // nb_streams: 3, // nb_programs: 0, // format_name: 'mov,mp4,m4a,3gp,3g2,mj2', // format_long_name: 'QuickTime / MOV', // start_time: 0, // duration: 634.533333, // size: 'N/A', // bit_rate: 'N/A', // probe_score: 100, // tags: [Object] // }, // chapters: [] // } // } }) ``` See [examples](./example) for additional use-cases. ## API ### `const lmb = require('little-media-box')` Import `little-media-box`. ### `demuxStream = lmb.createDemuxStream(source, [opts])` Extracts the media track from the given `source` and returns it as a `stream.Readable`. ### `delivery = new lmb.Delivery([opts])` An object, which provides one or more `Source` objects. Extends [nanoresource-pool][pr]. ### `lmb.demux(source, [opts], callback)` Extracts one or more media tracks from the given source, and saves each to its own individual Matroska container. ### `lmb.mux(sources, [opts], callback)` The `callback` receives `error` and `output` arguments. ### `{ bin } = lmb.settings` A settings object containing a `bin` object with the following properties: ```js { x264: X264_BIN_PATH, ffmpeg: FFMPEG_BIN_PATH, ffprobe: FFPROBE_BIN_PATH, mkvmerge: MKVMERGE_BIN_PATH, } ``` ### `settings = new lmb.configure([opts])` ### [`lmb.constants`](./constants.js) Contains many constants used in various operations. ### `{1: iso6391, 2: iso6392, 2: iso6393} = lmb.iso639` ### `lmb.extensions` An extended `Array` that contains a set of lexicographically-sorted unique file extension names. Provides various methods like checking the file type for an extension. ### [`asset = new lmb.Asset(uri, [opts])`](./asset.js) Extends [nanoresource][nr]. ### `source = new lmb.Source(uri, [opts])` Extends [nanoresource][nr]. ### [`track = new lmb.Track(source, [opts])`][tr] Extends [nanoresource][nr]. ### [`subtitleTrack = new lmb.SubtitleTrack(source, [opts]`](./track/subtitle.js) Extends [`Track`][tr]. ### [`videoTrack = new lmb.VideoTrack(source, [opts])`](./track/video.js) Extends [`Track`][tr]. ### [`audioTrack = new lmb.AudioTrack(source, [opts])`](./track/audio.js) Extends [`Track`][tr]. ### `lmb.TrackError` Track errors. Contains the following custom properties: ```js { track, code: 'TRACK_ERROR' } ``` ### `lmb.TrackPropertiesError` `code`: `TRACK_PROPERTIES_ERROR`. ### `lmb.TrackPropertiesMissingFormatError` `code`: `TRACK_FORMAT_NOT_FOUND`. ### `lmb.TrackPropertiesMissingStreamError` `code`: `TRACK_STREAM_NOT_FOUND`. ### `lmb.TrackValidationError` `code`: `TRACK_STREAM_NOT_FOUND`. ### `lmb.ffmpeg = require('fluent-ffmpeg')` Forward require of [`fluent-ffmpeg`](https://github.com/fluent-ffmpeg/node-fluent-ffmpeg). ### `lmb.FFPROBE_BIN_PATH` Path to `ffprobe` bin. ### `lmb.FFMPEG_BIN_PATH` Path to `ffmpeg` bin. ### `lmb.MKVMERGE_BIN_PATH` Path to static binary for `mkvmerge`. ### `lmb.X264_BIN_PATH` Path to static binary `x264`. ## License MIT [nr]: https://github.com/mafintosh/nanoresource [pr]: https://github.com/little-core-labs/nanoresource-pool [tr]: ./track/track.js
评论
    相关推荐
    • DevExpress IDETools (CodeRush & Refactor Pro!) v9.2.0注册插件
      DevExpress IDETools v9.2.0原版: http://downloads.devexpress.com/Share/IDE/090618/9.2/IDETools-9.2.0.exe
    • Clonk IDE-开源
      已弃用 :D 转到 http://bitbucket.org/mortimer/c4dt
    • liteide
      NULL 博文链接:https://houlinchun.iteye.com/blog/2382828
    • gegedaa:http
      咯咯哒 微博浏览器扩展 源代码 provider.js 里需要填上 APP ID 以及 APP Secret
    • liteide
      NULL 博文链接:https://houlinchun.iteye.com/blog/2382828
    • Ext官方可视化IDE
      3.解压Ext Designer Preview.7z所有内容到ide安装目录中. --------------------------------------------- 补丁是中文版本的,要下载的朋友请确认自己没有下载过从其它途径得来的资源,以避免下载后抱怨资源已载过或...
    • DevExpress IDETools (CodeRush & Refactor Pro!) v9.2.0注册插件
      DevExpress IDETools (CodeRush & Refactor Pro!...这个插件只能注册DevExpress IDETools v9.2.0. 如果你安装了DevExpress Components v9.1.4...http://downloads.devexpress.com/Share/IDE/090618/9.2/IDETools-9.2.0.exe
    • python IDE
      NULL 博文链接:https://younglibin.iteye.com/blog/1902733
    • vb插件:VB6 IDE 函数过程错误处理代码自动添加插件 VB6IDE_InsertErrHand_Addin
      描述:VB6 IDE 函数过程错误处理代码自动添加插件(VB6IDE_InsertErrHand_Addin) 安装方法: 1.点击菜单“工程-引用”,选择这个dll 2.然后点击菜单“外接程序-外接程序管理器”,选择“Insert Error Hand”,把右...
    • nicovideo:http
      Nicovideo API 客户端 用 Go 编写的API 客户端。 执照 版权所有 (c) 2014 Shouichi Kamiya。