├── android ├── app │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── values │ │ │ │ │ ├── strings.xml │ │ │ │ │ ├── colors.xml │ │ │ │ │ └── styles.xml │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ │ ├── ic_launcher.xml │ │ │ │ │ └── ic_launcher_round.xml │ │ │ │ ├── layout │ │ │ │ │ ├── activity_pick_video.xml │ │ │ │ │ └── activity_main.xml │ │ │ │ ├── drawable-v24 │ │ │ │ │ └── ic_launcher_foreground.xml │ │ │ │ └── drawable │ │ │ │ │ └── ic_launcher_background.xml │ │ │ ├── cpp │ │ │ │ └── native-lib.cpp │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── tuesda │ │ │ │ │ └── gouzi │ │ │ │ │ ├── GLog.kt │ │ │ │ │ ├── VideoInfo.kt │ │ │ │ │ ├── MainActivity.kt │ │ │ │ │ ├── PickVideoActivity.kt │ │ │ │ │ └── Util.kt │ │ │ └── AndroidManifest.xml │ │ ├── test │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── tuesda │ │ │ │ └── gouzi │ │ │ │ └── ExampleUnitTest.kt │ │ └── androidTest │ │ │ └── java │ │ │ └── com │ │ │ └── tuesda │ │ │ └── gouzi │ │ │ └── ExampleInstrumentedTest.kt │ ├── proguard-rules.pro │ ├── build.gradle │ └── CMakeLists.txt ├── settings.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── .gitignore ├── build.gradle ├── gradle.properties ├── gradlew.bat └── gradlew ├── doc ├── issues │ └── 20181113_部分机型硬压视频和IOS播放器不兼容的问题 │ │ ├── imgs │ │ ├── issue_video.jpg │ │ ├── issue_video_nal_log.jpg │ │ ├── mp4_sps_pps_location.jpg │ │ ├── normal_video_nal_log_1.jpg │ │ └── normal_video_nal_log_2.jpg │ │ └── 20181113_部分机型硬压视频和IOS播放器不兼容的问题.md ├── plan.md └── h264 │ └── concept.md └── README.md /android/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Gouzi 3 | 4 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuesda/Gouzi/HEAD/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | **/.idea 3 | .gradle 4 | /local.properties 5 | .DS_Store 6 | /build 7 | /captures 8 | .externalNativeBuild -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuesda/Gouzi/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuesda/Gouzi/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuesda/Gouzi/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuesda/Gouzi/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuesda/Gouzi/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuesda/Gouzi/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuesda/Gouzi/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuesda/Gouzi/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuesda/Gouzi/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuesda/Gouzi/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /doc/issues/20181113_部分机型硬压视频和IOS播放器不兼容的问题/imgs/issue_video.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuesda/Gouzi/HEAD/doc/issues/20181113_部分机型硬压视频和IOS播放器不兼容的问题/imgs/issue_video.jpg -------------------------------------------------------------------------------- /doc/issues/20181113_部分机型硬压视频和IOS播放器不兼容的问题/imgs/issue_video_nal_log.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuesda/Gouzi/HEAD/doc/issues/20181113_部分机型硬压视频和IOS播放器不兼容的问题/imgs/issue_video_nal_log.jpg -------------------------------------------------------------------------------- /doc/issues/20181113_部分机型硬压视频和IOS播放器不兼容的问题/imgs/mp4_sps_pps_location.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuesda/Gouzi/HEAD/doc/issues/20181113_部分机型硬压视频和IOS播放器不兼容的问题/imgs/mp4_sps_pps_location.jpg -------------------------------------------------------------------------------- /doc/issues/20181113_部分机型硬压视频和IOS播放器不兼容的问题/imgs/normal_video_nal_log_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuesda/Gouzi/HEAD/doc/issues/20181113_部分机型硬压视频和IOS播放器不兼容的问题/imgs/normal_video_nal_log_1.jpg -------------------------------------------------------------------------------- /doc/issues/20181113_部分机型硬压视频和IOS播放器不兼容的问题/imgs/normal_video_nal_log_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuesda/Gouzi/HEAD/doc/issues/20181113_部分机型硬压视频和IOS播放器不兼容的问题/imgs/normal_video_nal_log_2.jpg -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #008577 4 | #00574B 5 | #D81B60 6 | 7 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /android/app/src/main/cpp/native-lib.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | extern "C" JNIEXPORT jstring JNICALL 5 | Java_com_tuesda_gouzi_MainActivity_stringFromJNI( 6 | JNIEnv *env, 7 | jobject /* this */) { 8 | std::string hello = "Hello from C++"; 9 | return env->NewStringUTF(hello.c_str()); 10 | } 11 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/tuesda/gouzi/GLog.kt: -------------------------------------------------------------------------------- 1 | package com.tuesda.gouzi 2 | 3 | import android.util.Log 4 | 5 | object GLog { 6 | 7 | private const val TAG = "GLog" 8 | 9 | fun i(tag: String, info: String) { 10 | Log.i(tag, info) 11 | } 12 | 13 | fun e(t: Throwable) { 14 | Log.e(TAG, t.toString()) 15 | } 16 | } -------------------------------------------------------------------------------- /android/app/src/main/java/com/tuesda/gouzi/VideoInfo.kt: -------------------------------------------------------------------------------- 1 | package com.tuesda.gouzi 2 | 3 | class VideoInfo( 4 | private val path: String, 5 | private val width: Int, 6 | private val height: Int, 7 | private val durationUs: Long 8 | ) { 9 | override fun toString(): String { 10 | return "VideoInfo(path='$path', width=$width, height=$height, durationUs=$durationUs)" 11 | } 12 | } -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /android/app/src/test/java/com/tuesda/gouzi/ExampleUnitTest.kt: -------------------------------------------------------------------------------- 1 | package com.tuesda.gouzi 2 | 3 | import org.junit.Test 4 | 5 | import org.junit.Assert.* 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * See [testing documentation](http://d.android.com/tools/testing). 11 | */ 12 | class ExampleUnitTest { 13 | @Test 14 | fun addition_isCorrect() { 15 | assertEquals(4, 2 + 2) 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /android/app/src/main/res/layout/activity_pick_video.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 |