Coder Social home page Coder Social logo

bajiertmplive's Introduction

BajieRTMPLive--机身摄像头&&UVC摄像头实现直播方案

1.magicfilter:滤镜库,一共有37种效果。分别有

SUNRISE,SUNSET,WHITECAT,BLACKCAT,SKINWHITEN,BEAUTY,HEALTHY,ROMANCE,SAKURA,WARM,ANTIQUE,NOSTALGIA,CALM,LATTE,TENDER,COOL,EMERALD,EVERGREEN,SKETCH,AMARO,BRANNAN,BROOKLYN,EARLYBIRD,FREUD,HUDSON,INKWELL,KEVIN,N1977,NASHVILLE,PIXAR,RISE,SIERRA,SUTRO,TOASTER2,VALENCIA,WALDEN,XPROII。

2.mp4parser:MP4文件解析器,提供视频录制处理方法。

3.rtmppusher:RTMP协议封装库,提供传输音视频数据给服务器。

4.uvccamera:UVC摄像头封装库,通过UVC协议连接外接摄像头并获取摄像头帧数据。

5.yasea:处理摄像头预览画面,依赖xh264实现软件编码,处理RGBA帧数据转YUV,合成音视频数据

6.文件.bash_profile是我的环境变量,Macbook Pro 64位,使用NDK版本是android-ndk-r17c

下面是预览画面的展示:

主页

a.机身摄像头直播,使用手机OPPO Find X,Android9.0系统

1.未开启直播之前画面

未开启直播之前画面

2.使用前置摄像头

使用前置摄像头

3.使用后置摄像头

使用后置摄像头

4.开启闪光灯

开启闪光灯

5.选择分辨率,分为标清模式640x480,高清模式1280x720,全高清模式1920x1080,默认高清模式1280x720

选择分辨率,分为标清模式640x480,高清模式1280x720,全高清模式1920x1080,默认高清模式1280x720

6.标清模式,640x480

标清模式,640x480

7.全高清模式,1920x1080

全高清模式,1920x1080

8.选择滤镜

选择滤镜

9.选择warm,暖和效果滤镜

选择warm,暖和效果滤镜

10.warm,暖和效果滤镜展示

warm,暖和效果滤镜展示

11.选择传输数据类型,可支持视频+音频、仅视频、仅音频,默认是视频+音频

选择传输数据类型,可支持视频+音频、仅视频、仅音频,默认是视频+音频

12.仅视频

仅视频

13.仅音频

仅音频

14.开启软件编码模式,默认是使用硬件编码

开启软件编码模式,默认是使用硬件编码

15.warm滤镜和没有使用滤镜录制的两段视频

BajieRTMPLive/screenshoot/InternalCamera/with_magicfilter.mp4 BajieRTMPLive/screenshoot/InternalCamera/without_magicfilter.mp4

16.srs流媒体服务器以及播放平台,预览画面展示

竖屏高清模式

竖屏高清模式

横屏高清模式

横屏高清模式

横屏全高清模式

横屏全高清模式

横屏标清模式

横屏标清模式

横屏高清模式warm滤镜效果

横屏高清模式warm滤镜效果

b.UVC摄像头直播,使用Android6.0系统,外接摄像头

bajiertmplive's People

Contributors

wangzhi17 avatar yinyangwu avatar

Forkers

yuessir

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.