Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests for #180, Release 0.11.1 #207

Merged
merged 2 commits into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
}
}