Giter Club home page Giter Club logo

flv2fmp4's Introduction

icon

flv2fmp4

博客的mp4软编码系列文章的demo

借鉴了flv.js的代码

精简版的flv转fmp4工程,没有任何mse,io方面操作,只有flv转fmp4,可以当做核心解码使用,自己实现io,mse操作 支持点播,直播,拖拽操作 http://blog.csdn.net/g332065255/article/details/71158863


npm install 

node debug.js

浏览器访问  127.0.0.1:8080即可

现在扔进去一个flv就可以直接播放了

支持拖拽啦,代码在seekDemo.html里面,拖拽想实现的话,稍微有些复杂

如果想把本工程嵌入到自己的项目中

import f2m from './js/flv2fmp4.js'

let kernel=new f2m({})

kernel.setflv(这里放flv数据);
剩下的看代码的注释吧 



抽离出了npm包


npm install chimee-flv2fmp4 -S

var cpu= require("chimee-flv2fmp4")

new cpu();

flv2fmp4's People

Contributors

332065255 avatar

Watchers

unixcc avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.