Skip to content

Commit

Permalink
fix: webm background in saving
Browse files Browse the repository at this point in the history
Thanks to @Yife_Playte.

Signed-off-by: Next Alone <[email protected]>
  • Loading branch information
NextAlone committed Mar 29, 2024
1 parent 50af19d commit 5078927
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ class MessageUtils(num: Int) : BaseController(num) {
if (File(outputPath).exists()) {
File(outputPath).delete()
}
val cmd = arrayOf("-y", "-i", path, "-vf", "colorkey=0x000000:0.1:0.1,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse", outputPath)
val cmd = arrayOf("-y", "-vcodec", "libvpx-vp9", "-i", path, "-lavfi", "split[v],palettegen,[v]paletteuse", outputPath)
FFmpeg.executeAsync(cmd) { executionId, returnCode ->
if (returnCode == RETURN_CODE_SUCCESS) {
MediaController.saveFile(outputPath, activity, 0, null, null, callback)
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ ktor-client-okhttp = { module = "io.ktor:ktor-client-okhttp", version.ref = "kto
ktor-client-encoding = { module = "io.ktor:ktor-client-encoding", version.ref = "ktor" }
ktor-client-contentNegotiation = { module = "io.ktor:ktor-client-content-negotiation", version.ref = "ktor" }
ktor-serialization-json = { module = "io.ktor:ktor-serialization-kotlinx-json-jvm", version.ref = "ktor" }
ffmpeg = { module = "com.arthenica:mobile-ffmpeg-min", version = "4.4.LTS" }
ffmpeg = { module = "com.arthenica:mobile-ffmpeg-video", version = "4.4.LTS" }
lottie = { module = "com.airbnb.android:lottie", version = "4.1.0" }

[plugins]
Expand Down

0 comments on commit 5078927

Please sign in to comment.