GithubHelp home page GithubHelp logo

625833348 / rtsp-web-converter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yy1261633791/rtsp-web-converter

0.0 1.0 0.0 197 KB

转码RTSP,RTMP或其他格式的流用于浏览器播放

License: Apache License 2.0

Java 93.18% HTML 6.82%

rtsp-web-converter's Introduction

rtsp-web-converter

转码RTSP,RTMP或其他格式的流用于h5播放
成品下载:http://119.84.133.13:8090/converter-flv-2.0.5.RELEASE.jar

SpringBoot

Javacv

测试页面:http://127.0.0.1:8081/video.html

前端使用flvjs播放

转码接口

http://127.0.0.1:8081/live/{url}/live.flv url=base64(视频流地址)
(该接口直接响应flv格式视频流)

示列

var flvPlayer = flvjs.createPlayer({type: 'flv',url:'http://127.0.0.1:8081/live/{base64加密后的流地址}/live.flv',isLive: true},{isLive: true,enableStashBuffer: false,enableWorker: true,stashInitialSize: 128,videoStateMonitorInterval: 1000,decreaseDurationStep: 1,enableDurationMonitor: true,enableVideoFrozenMonitor: true});
flvPlayer.attachMediaElement(document.getElementById(id));
flvPlayer.load();
flvPlayer.play();

性能消耗

对于转包装方式一路流在i5 7500配置下cpu占用在1%左右

2020-07-17
更新了转码的方法,现在对输入的流没有任何要求了,对于符合H264,AAC的流会使用低性能消耗的转包装方式进行,其他格式会先进行转码操作

rtsp-web-converter's People

Contributors

yy1261633791 avatar

Watchers

 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.