mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Ensure ffmpeg is killed
This commit is contained in:
parent
3e69a6ce19
commit
1a5c4ff11d
3 changed files with 21 additions and 7 deletions
|
@ -303,8 +303,10 @@ export async function muxToMergeVideoFiles (options: {
|
|||
|
||||
logger.info(`Muxing files for video ${video.url}`, { inputs: inputsToLog, ...lTags(video.uuid) })
|
||||
|
||||
const ffmpegContainer = new FFmpegContainer(getFFmpegCommandWrapperOptions('vod'))
|
||||
|
||||
try {
|
||||
await new FFmpegContainer(getFFmpegCommandWrapperOptions('vod')).mergeInputs({
|
||||
await ffmpegContainer.mergeInputs({
|
||||
inputs,
|
||||
output,
|
||||
logError: false,
|
||||
|
@ -329,6 +331,8 @@ export async function muxToMergeVideoFiles (options: {
|
|||
}
|
||||
|
||||
throw err
|
||||
} finally {
|
||||
ffmpegContainer.forceKill()
|
||||
}
|
||||
} finally {
|
||||
for (const destination of tmpDestinations) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue