Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
baka3k committed Dec 15, 2020
2 parents 539121a + 3d3ef16 commit 599bdb3
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 0 deletions.
69 changes: 69 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# IJKPlayer Sample
In previous time, I added 2 functions: RecordVideo & Capture Frame Video to IJKPlayer
(https://github.com/baka3k/IjkPlayerRecorder)

Someone sent email to me that they can not build .so file, because they met issue with environment

So, I created sample project(included .so file) - Hope this help

Good luck !!!

## Table of contents

- [Features](#features)
- [Requirements](#requirements)
- [Usage](#usage)
- [Sample](#sample)
- [Authors](#authors)
- [License](#license)

## Features

- [x] RTSP Player By IJKPlayer
- [x] Support Get Frame Video
- [x] Support Record Video
- [x] Support Add Filter Video
- [ ] Record Video withFilter: Not at this time

## Requirements

- Android 5.1+

## Usage
Capture Video Frame
```Java
// 1280 x 720 is frame size video
Bitmap bitmap = Bitmap.createBitmap(1280, 720, Bitmap.Config.ARGB_8888);
mVideoView.getCurrentFrame(bitmap);
```
RecordVideo
```Java
mVideoView.startRecord(mOutPutRecord);
//then MUST call stop Record
mVideoView.stopRecord();
```


Add Filter to video:
(Many thanks to MasayukiSuda https://github.com/MasayukiSuda/GPUVideo-android)
```Java
GlHazeFilter hazeFilter = new GlHazeFilter();
hazeFilter.setSlope(-0.8f);
contentView.setFilter(hazeFilter);
```

## Sample

![Output sample](https://github.com/baka3k/RecorderIJKPlayerSample/blob/master/sample.gif)

refer sample in below package
```Java
com.hi.sample.videoplayer.sample.VideoActivity
com.hi.sample.videoplayer.sample.VideoFilterActivity
```
## Authors

baka3k@gmail.com

## License
Apache licensed
Binary file added sample.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed sample.mp4
Binary file not shown.

0 comments on commit 599bdb3

Please sign in to comment.