Skip to content

Commit 0fed470

Browse files
authored
Tests for #180, Release 0.11.1 (#207)
* Add test for issue 180 * Bump version to 0.11.1
1 parent c962e8f commit 0fed470

File tree

8 files changed

+27
-4
lines changed

8 files changed

+27
-4
lines changed

.idea/gradle.xml

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/deployLocal.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Android codecs available on the device. Works on API 21+.
2929
```kotlin
3030
// build.gradle.kts
3131
dependencies {
32-
implementation("com.otaliastudios:transcoder:0.11.0")
32+
implementation("io.deepmedia.community:transcoder-android:0.11.1")
3333
}
3434
```
3535

docs/changelog.mdx

+6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ New versions are released through GitHub, so the reference page is the [GitHub R
88

99
## 0.11.X
1010

11+
### 0.11.1
12+
13+
- Fix: add unbounded queue for drifted tracks during initialization, thanks to [@jumperson](https://github.com/jumperson) ([#166](https://github.com/deepmedia/Transcoder/pull/166))
14+
15+
[Compare 0.11.0...0.11.1](https://github.com/deepmedia/Transcoder/compare/v0.11.0...v0.11.1).
16+
1117
### 0.11.0
1218

1319
This release focuses on stability and performance, fixing old bugs that were making the library unstable and unreliable.

lib-legacy/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ deployer {
2828
projectInfo {
2929
groupId = "com.otaliastudios"
3030
artifactId = "transcoder"
31-
release.version = "0.11.0" // change :lib and README
31+
release.version = "0.11.1" // change :lib and README
3232
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."
3333
url = "https://opensource.deepmedia.io/transcoder"
3434
scm.fromGithub("deepmedia", "Transcoder")

lib/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ deployer {
6363
projectInfo {
6464
groupId = "io.deepmedia.community"
6565
artifactId = "transcoder-android"
66-
release.version = "0.11.0" // change :lib-legacy and README
66+
release.version = "0.11.1" // change :lib-legacy and README
6767
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."
6868
url = "https://opensource.deepmedia.io/transcoder"
6969
scm.fromGithub("deepmedia", "Transcoder")
337 KB
Binary file not shown.

lib/src/androidTest/java/com/otaliastudios/transcoder/integration/IssuesTests.kt

+16
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import com.otaliastudios.transcoder.TranscoderOptions
1111
import com.otaliastudios.transcoder.common.TrackType
1212
import com.otaliastudios.transcoder.internal.utils.Logger
1313
import com.otaliastudios.transcoder.source.AssetFileDescriptorDataSource
14+
import com.otaliastudios.transcoder.source.BlankAudioDataSource
1415
import com.otaliastudios.transcoder.source.ClipDataSource
1516
import com.otaliastudios.transcoder.source.FileDescriptorDataSource
1617
import com.otaliastudios.transcoder.strategy.DefaultVideoStrategy
@@ -119,4 +120,19 @@ class IssuesTests {
119120
}
120121
Unit
121122
}
123+
124+
@Test(timeout = 16000)
125+
fun issue180() = with(Helper(180)) {
126+
transcode {
127+
val vds = input("party.mp4")
128+
val duration = run {
129+
vds.initialize()
130+
vds.durationUs.also { vds.deinitialize() }
131+
}
132+
check(duration > 0L) { "Invalid duration: $duration" }
133+
addDataSource(TrackType.VIDEO, vds)
134+
addDataSource(TrackType.AUDIO, BlankAudioDataSource(duration))
135+
}
136+
Unit
137+
}
122138
}

0 commit comments

Comments
 (0)