Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5d098ca

Browse files
committed
Update README.md
1 parent 073e593 commit 5d098ca

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

‎README.md‎

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,20 @@ android-transcoder
33

44
Hardware accelerated transcoder for Android, written in pure Java.
55

6+
## Why?
7+
8+
Android does not offer straight forward way to transcode video.
9+
10+
FFmpeg is the most famous solution for transcoding. But using [FFmpeg binary on Android](https://github.com/WritingMinds/ffmpeg-android) can cause GPL and/or patent issues. Also using native code for Android development can be troublesome because of cross-compiling, architecture compatibility, build time and binary size.
11+
12+
To transcode without any hassle written above, I created this library to provide hardware accelerated transcoding of H.264 (mp4) video without ffmpeg by using [MediaCodec](https://developer.android.com/intl/ja/reference/android/media/MediaCodec.html).
13+
614
## Requirements
715

816
API Level 18 (Android 4.3, JELLY_BEAN_MR2) or later.
917
If your app targets older Android, you should add below line to AndroidManifest.xml:
1018

11-
```
19+
```xml
1220
<!-- Only supports API >= 18 -->
1321
<uses-sdk tools:overrideLibrary="net.ypresto.androidtranscoder" />
1422
```
@@ -17,7 +25,7 @@ Please ensure checking Build.VERSION by your self.
1725

1826
## Usage
1927

20-
```
28+
```java
2129
@Override
2230
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
2331
ParcelFileDescriptor parcelFileDescriptor = resolver.openFileDescriptor(data.getData(), "r");
@@ -52,13 +60,13 @@ See `TranscoderActivity.java` in example directory for ready-made transcoder app
5260

5361
Available from [JCenter](https://bintray.com/bintray/jcenter), which is default repo of gradle script generated by recent android studio.
5462

55-
```
63+
```groovy
5664
repositories {
5765
jcenter()
5866
}
5967
```
6068

61-
```
69+
```groovy
6270
compile 'net.ypresto.androidtranscoder:android-transcoder:0.1.10'
6371
```
6472

@@ -73,7 +81,7 @@ Use [qtfaststart-java](https://github.com/ypresto/qtfaststart-java) to place moo
7381
## License
7482

7583
```
76-
Copyright (C) 2014-2015 Yuya Tanaka
84+
Copyright (C) 2014-2016 Yuya Tanaka
7785
7886
Licensed under the Apache License, Version 2.0 (the "License");
7987
you may not use this file except in compliance with the License.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /