Skip to content

Commit

Permalink
修改解码和编码问题
Browse files Browse the repository at this point in the history
  • Loading branch information
AnJoiner committed Nov 25, 2020
1 parent 2f6db48 commit 6d5deaa
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ dependencies {
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation project(path: ':ffmpeg')
implementation project(path: ':ffmpeg-mini')
implementation 'androidx.recyclerview:recyclerview:1.1.0'
// 腾讯bugly
implementation 'com.tencent.bugly:crashreport:latest.release'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ class KFFmpegCommandActivity : AppCompatActivity() {
private fun decodeAudio() {
targetPath = externalCacheDir.toString() + File.separator + "target.pcm"
GlobalScope.launch {
FFmpegCommand.runCmd(FFmpegUtils.decodeAudio(mAudioPath, targetPath, 16000, 1), callback("音频解码PCM完成", targetPath))
FFmpegCommand.runCmd(FFmpegUtils.decodeAudio(mAudioPath, targetPath, 44100, 2), callback("音频解码PCM完成", targetPath))
}
}

Expand Down
2 changes: 1 addition & 1 deletion ffmpeg-mini/bintray.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'

version = "1.2.0-beta" //版本号,以后每次更新library都得更改
version = "1.2.0-beta1" //版本号,以后每次更新library都得更改
def siteUrl = 'https://github.com/AnJoiner/FFmpegCommand' //Homepage URL of the library
def gitUrl = 'https://github.com/AnJoiner/FFmpegCommand.git' //Git repository url
def issueUrl = 'https://github.com/AnJoiner/FFmpegCommand/issues' //issue url of the library
Expand Down
2 changes: 1 addition & 1 deletion ffmpeg/bintray.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'

version = "1.2.0-beta" //版本号,以后每次更新library都得更改
version = "1.2.0-beta1" //版本号,以后每次更新library都得更改
def siteUrl = 'https://github.com/AnJoiner/FFmpegCommand' //Homepage URL of the library
def gitUrl = 'https://github.com/AnJoiner/FFmpegCommand.git' //Git repository url
def issueUrl = 'https://github.com/AnJoiner/FFmpegCommand/issues' //issue url of the library
Expand Down

0 comments on commit 6d5deaa

Please sign in to comment.