Skip to content

Commit

Permalink
Tests for #180, Release 0.11.1 (#207)
Browse files Browse the repository at this point in the history
* Add test for issue 180

* Bump version to 0.11.1
  • Loading branch information
natario1 authored Sep 10, 2024
1 parent c962e8f commit 0fed470
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 4 deletions.
1 change: 1 addition & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/runConfigurations/deployLocal.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Android codecs available on the device. Works on API 21+.
```kotlin
// build.gradle.kts
dependencies {
implementation("com.otaliastudios:transcoder:0.11.0")
implementation("io.deepmedia.community:transcoder-android:0.11.1")
}
```

Expand Down
6 changes: 6 additions & 0 deletions docs/changelog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ New versions are released through GitHub, so the reference page is the [GitHub R

## 0.11.X

### 0.11.1

- Fix: add unbounded queue for drifted tracks during initialization, thanks to [@jumperson](https://github.com/jumperson) ([#166](https://github.com/deepmedia/Transcoder/pull/166))

[Compare 0.11.0...0.11.1](https://github.com/deepmedia/Transcoder/compare/v0.11.0...v0.11.1).

### 0.11.0

This release focuses on stability and performance, fixing old bugs that were making the library unstable and unreliable.
Expand Down
2 changes: 1 addition & 1 deletion lib-legacy/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ deployer {
projectInfo {
groupId = "com.otaliastudios"
artifactId = "transcoder"
release.version = "0.11.0" // change :lib and README
release.version = "0.11.1" // change :lib and README
description = "Accelerated video compression and transcoding on Android using MediaCodec APIs (no FFMPEG/LGPL licensing issues). Supports cropping to any dimension, concatenation, audio processing and much more."
url = "https://opensource.deepmedia.io/transcoder"
scm.fromGithub("deepmedia", "Transcoder")
Expand Down
2 changes: 1 addition & 1 deletion lib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ deployer {
projectInfo {
groupId = "io.deepmedia.community"
artifactId = "transcoder-android"
release.version = "0.11.0" // change :lib-legacy and README
release.version = "0.11.1" // change :lib-legacy and README
description = "Accelerated video compression and transcoding on Android using MediaCodec APIs (no FFMPEG/LGPL licensing issues). Supports cropping to any dimension, concatenation, audio processing and much more."
url = "https://opensource.deepmedia.io/transcoder"
scm.fromGithub("deepmedia", "Transcoder")
Expand Down
Binary file added lib/src/androidTest/assets/issue_180/party.mp4
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import com.otaliastudios.transcoder.TranscoderOptions
import com.otaliastudios.transcoder.common.TrackType
import com.otaliastudios.transcoder.internal.utils.Logger
import com.otaliastudios.transcoder.source.AssetFileDescriptorDataSource
import com.otaliastudios.transcoder.source.BlankAudioDataSource
import com.otaliastudios.transcoder.source.ClipDataSource
import com.otaliastudios.transcoder.source.FileDescriptorDataSource
import com.otaliastudios.transcoder.strategy.DefaultVideoStrategy
Expand Down Expand Up @@ -119,4 +120,19 @@ class IssuesTests {
}
Unit
}

@Test(timeout = 16000)
fun issue180() = with(Helper(180)) {
transcode {
val vds = input("party.mp4")
val duration = run {
vds.initialize()
vds.durationUs.also { vds.deinitialize() }
}
check(duration > 0L) { "Invalid duration: $duration" }
addDataSource(TrackType.VIDEO, vds)
addDataSource(TrackType.AUDIO, BlankAudioDataSource(duration))
}
Unit
}
}

0 comments on commit 0fed470

Please sign in to comment.