Skip to content
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.
Branch: master
Clone or download
dKingbin dKingbin
dKingbin and dKingbin fix bugs
Latest commit 8518ec6 May 16, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
GoPlay update logo icon May 14, 2019
image fix bugs May 16, 2019
README.md add QQ Group Communication May 16, 2019
build-ffmpeg.sh update build script May 10, 2019

README.md

中文介绍 | 原理详解

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:

You can’t perform that action at this time.