GithubHelp home page GithubHelp logo

letqingbin / goplay Goto Github PK

View Code? Open in Web Editor NEW
262.0 13.0 73.0 1.91 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 letqingbin
Licensed under LGPLv2.1 or later

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

goplay's People

Contributors

letqingbin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

goplay's Issues

Build, run, no audio

Hi, I was not able to get any audio.

Tried with different video URL's, no luck.

工程跑不起来

Ld /Users/l_wcx/Library/Developer/Xcode/DerivedData/GoPlay-fiamenkbxaxnbqclkhxyrwdpstrd/Build/Products/Debug-iphoneos/GoPlay.app/GoPlay normal arm64 (in target: GoPlay)
cd /Users/l_wcx/Desktop/我的代码/gitHub/GoPlay/GoPlay
export IPHONEOS_DEPLOYMENT_TARGET=8.0
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk -L/Users/l_wcx/Library/Developer/Xcode/DerivedData/GoPlay-fiamenkbxaxnbqclkhxyrwdpstrd/Build/Products/Debug-iphoneos -L/Users/l_wcx/Desktop/我的代码/gitHub/GoPlay/GoPlay/GoPlay/Vendor/FFmpeg/FFmpeg-iOS/lib -F/Users/l_wcx/Library/Developer/Xcode/DerivedData/GoPlay-fiamenkbxaxnbqclkhxyrwdpstrd/Build/Products/Debug-iphoneos -filelist /Users/l_wcx/Library/Developer/Xcode/DerivedData/GoPlay-fiamenkbxaxnbqclkhxyrwdpstrd/Build/Intermediates.noindex/GoPlay.build/Debug-iphoneos/GoPlay.build/Objects-normal/arm64/GoPlay.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -miphoneos-version-min=8.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/l_wcx/Library/Developer/Xcode/DerivedData/GoPlay-fiamenkbxaxnbqclkhxyrwdpstrd/Build/Intermediates.noindex/GoPlay.build/Debug-iphoneos/GoPlay.build/Objects-normal/arm64/GoPlay_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fembed-bitcode-marker -stdlib=libc++ -fobjc-arc -fobjc-link-runtime -lavfilter -lbz2 -lz -lavformat -lswresample -liconv -framework VideoToolbox -lavutil -framework AVFoundation -lavdevice -lswscale -framework AudioToolbox -lavcodec -Xlinker -dependency_info -Xlinker /Users/l_wcx/Library/Developer/Xcode/DerivedData/GoPlay-fiamenkbxaxnbqclkhxyrwdpstrd/Build/Intermediates.noindex/GoPlay.build/Debug-iphoneos/GoPlay.build/Objects-normal/arm64/GoPlay_dependency_info.dat -o /Users/l_wcx/Library/Developer/Xcode/DerivedData/GoPlay-fiamenkbxaxnbqclkhxyrwdpstrd/Build/Products/Debug-iphoneos/GoPlay.app/GoPlay

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.