GoPlay

 收藏    我在用   1 人在用

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.

 GitHub     下载     同步

2    54    13    about 1 year前

中文介绍 | 原理详解

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

  • GitHub : dKingbin
  • Email : loveforjyboss@163.com

License

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

GoPlay required features are based on or derives from projects below:
- LGPL
- FFmpeg
- ijkplayer
- kxmovie

共收到 1 条回复
96
dkingbin · #1 ·

awesome!

需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up