Coder Social home page Coder Social logo

quange / goplay Goto Github PK

View Code? Open in Web Editor NEW

This project forked from letqingbin/goplay

0.0 1.0 0.0 1.96 MB

GoPlay is a media player framework for iOS. Based on FFmpeg and OpenGL ES 2.0. support all formats and custom your own filters by GLSL.

Shell 1.48% Objective-C 96.27% C 0.33% C++ 1.80% Objective-C++ 0.12%

goplay's Introduction

中文介绍 | 原理详解

GoPlay

  • GoPlay is a media player framework for iOS. Based on FFmpeg and OpenGL ES 2.0. support all formats and custom your own filters by GLSL.

Build iOS

build script is based on FFmpeg-iOS-build-script

  • To build everything:
./build-ffmpeg.sh
  • PS
After compile, if you want to custom your own library, you shoud notice three points: 
1) copy ./ffmpeg-3.4.1/libavformat/avc.h  --->  ./FFmpeg-iOS/include/libavformat/
2) copy ./FFmpeg-iOS ---> ./GoPlay/GoPlay/Vendor/FFmpeg/ 
3) config: Build Settings - Header Search Paths - "$(SRCROOT)/GoPlay/Vendor/FFmpeg/FFmpeg-iOS/include"

Features

  • H.264/H.265(hevc) hardware accelerator (VideoToolBox)
  • support FFmpeg software Decode
  • support all formats based on FFmpeg, including RTMP, RTSP, HTTP/HTTPS and so on
  • support custom filter(based on OpenGL ES 2.0 glsl)
  • support filter chain between source and display (refer GPUImage)
  • support watermark filter
  • VR video and arcball control
  • accurate seek support
  • powerful robust algorithm for audio and video synchronization
  • support adaptive frame drop
  • video-output: OpenGL ES 2.0
  • audio-output: AudioUnit

Dependencies

// iOS
- AVFoundation.framework
- AudioToolBox.framework
- VideoToolBox.framework
- libiconv.tbd
- libbz2.tbd
- libz.tbd

- FFmpeg 3.4.1

Basic Usage

PlayViewController* vc = [[PlayViewController alloc]init];
vc.url = @"";	//input video/audio url
[self.navigationController pushViewController:vc animated:YES];

Advanced Usage

//custom your own player based on FFPlay/FFFilter/FFView;
//PlayViewController is a demo.

Screenshots

iOS

  • plane video

GoPlay_Plane

  • vr video

GoPlay_VR

  • video with watermark

GoPlay_Watermark

Communication

License

Copyright (c) 2019 dKingbin
Licensed under LGPLv2.1 or later

GoPlay required features are based on or derives from projects below:

goplay's People

Contributors

letqingbin 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.