mirror of
https://github.com/Myzel394/Alibi.git
synced 2025-06-18 23:05:26 +02:00
fix: Fix ffmpeg
This commit is contained in:
parent
0d618380fa
commit
3cee858b56
@ -138,14 +138,15 @@ abstract class BatchesFolder(
|
||||
filePaths,
|
||||
outputFile,
|
||||
parameter,
|
||||
)
|
||||
).await()
|
||||
return outputFile
|
||||
} catch (e: MediaConverter.FFmpegException) {
|
||||
continue
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return outputFile
|
||||
throw MediaConverter.FFmpegException("Failed to concatenate")
|
||||
}
|
||||
|
||||
fun exportFolderForSettings(): String {
|
||||
|
@ -70,13 +70,16 @@ class MediaConverter {
|
||||
" -safe 0" +
|
||||
" -i ${listFile.absolutePath}" +
|
||||
extraCommand +
|
||||
" -strict normal" +
|
||||
" -y" +
|
||||
" $outputFile"
|
||||
|
||||
FFmpegKit.executeAsync(
|
||||
command
|
||||
) { session ->
|
||||
listFile.delete()
|
||||
runCatching {
|
||||
listFile.delete()
|
||||
}
|
||||
|
||||
if (!ReturnCode.isSuccess(session!!.returnCode)) {
|
||||
Log.d(
|
||||
|
Loading…
x
Reference in New Issue
Block a user