Skip to content
This repository was archived by the owner on Dec 23, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions h265ize
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@
/* global __dirname */

const Path = require('path');
const os = require("os");
const readline = require("readline");

const _ = require("lodash");
const colors = require('colors');
const moment = require('moment');
require("moment-duration-format");
const fs = require('fs-extra');
const keypress = require('keypress');
const Promise = require("bluebird");
const Pauser = require('promise-pauser');
Expand Down Expand Up @@ -152,7 +150,6 @@ function runCli() {
process.H265IZE_STOP_REQUEST_COUNT++;
shutdown();
} else if (key && key.name == 'p') {

if (!encoder.paused && encoder.running) {
encoder.pause();
} else if (encoder.paused && !encoder.running) {
Expand Down
3 changes: 2 additions & 1 deletion lib/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ function findVideos(path) {
}

function isSupportedFileType(file) {
if (mime.lookup(file).startsWith('video/') || Path.extname(file) === '.m2ts')
const type = mime.getType(file);
if (type != null && (type.startsWith('video/') || Path.extname(file) === '.m2ts'))
return true;
else
return false;
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@
},
"homepage": "https://github.com/FallingSnow/h265ize#readme",
"dependencies": {
"bluebird": "^3.4.6",
"bluebird": "^3.7.2",
"chokidar": "^1.6.1",
"colors": "^1.1.2",
"filesize": "^3.3.0",
"fluent-ffmpeg": "^2.1.0",
"fs-extra": "^1.0.0",
"filesize": "^3.6.1",
"fluent-ffmpeg": "^2.1.2",
"fs-extra": "^4.0.3",
"gpu-info": "0.0.1",
"hasbin": "^1.2.3",
"keypress": "^0.2.1",
Expand All @@ -43,7 +43,7 @@
"long-stack-traces": "^0.1.2",
"mathjs": "^3.7.0",
"memorystream": "^0.3.1",
"mime": "^1.3.4",
"mime": "^2.4.4",
"moment": "^2.16.0",
"moment-duration-format": "^1.3.0",
"optional": "^0.1.3",
Expand All @@ -52,7 +52,7 @@
"stack-trace": "0.0.9",
"strip-ansi": "^3.0.1",
"winston": "^2.3.0",
"yargs": "^6.3.0"
"yargs": "^15.1.0"
},
"devDependencies": {
"chai": "^3.5.0",
Expand Down
Loading