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