remove moovatom check

plugin-touch-ups
Moe 2024-09-16 09:58:38 -07:00
parent 09df251267
commit d9653197c3
1 changed files with 25 additions and 25 deletions

View File

@ -941,31 +941,31 @@ module.exports = (s,config,lang) => {
ext: 'mp4' ext: 'mp4'
},chosenVideo); },chosenVideo);
const videoPath = getVideoPath(video); const videoPath = getVideoPath(video);
const moovExists = await hasMoovAtom(videoPath); // const moovExists = await hasMoovAtom(videoPath);
if (moovExists) { // if (moovExists) {
s.debugLog('The file already has a moov atom.'); // s.debugLog('The file already has a moov atom.');
} else { // } else {
return true; // return true;
// const { videoCodec, audioCodec } = getVideoCodecsFromMonitorConfig(video); // // const { videoCodec, audioCodec } = getVideoCodecsFromMonitorConfig(video);
// const tempPath = path.join(s.getVideoDirectory(video), `TEMP_${s.formattedTime(video.time)}.${video.ext}`); // // const tempPath = path.join(s.getVideoDirectory(video), `TEMP_${s.formattedTime(video.time)}.${video.ext}`);
// await addMoovAtom(videoPath, tempPath, videoCodec, audioCodec); // // await addMoovAtom(videoPath, tempPath, videoCodec, audioCodec);
// await moveFile(tempPath, videoPath) // // await moveFile(tempPath, videoPath)
// const newFileSize = (await fsP.stat(videoPath)).size; // // const newFileSize = (await fsP.stat(videoPath)).size;
// const updateResponse = await s.knexQueryPromise({ // // const updateResponse = await s.knexQueryPromise({
// action: "update", // // action: "update",
// table: "Videos", // // table: "Videos",
// update: { // // update: {
// size: newFileSize // // size: newFileSize
// }, // // },
// where: [ // // where: [
// ['ke','=',video.ke], // // ['ke','=',video.ke],
// ['mid','=',video.mid], // // ['mid','=',video.mid],
// ['time','=',video.time], // // ['time','=',video.time],
// ['end','=',video.end], // // ['end','=',video.end],
// ['ext','=',video.ext], // // ['ext','=',video.ext],
// ] // // ]
// }); // // });
} // }
// await saveVideoFrameToTimelapse(video, 0) // await saveVideoFrameToTimelapse(video, 0)
await saveVideoFrameToTimelapse(video, 7) await saveVideoFrameToTimelapse(video, 7)
return true; return true;